# Preparing an Academic CV in LaTeX using Mendeley

Applying for grants recently, I found it high time to update my curriculum vitae. I looked at the folder of Word .docs with names like Bergey_CV_2010_07_01.doc and CMB_CV_20111012_final.doc and CMB_CV_20111012_final_FINAL.doc and despaired. Guilt over my unideal system grappled with inertia and laziness, but finally I decided to make a change. I’d been meaning to start making more use of LaTeX, the document preparation system anyway.

Why LaTex? In a nutshell, because it’s easier to update plain text files than Word documents. You type up your CV’s text with mark-up, or special character combos that tell the software how to format your text. Then you can compile it straight to PDF format. Updating takes seconds, as do formatting changes like different margin sizes. You can easily comment out a section to temporarily delete it. LaTeX files also lend themselves to version control, which can keep track of changes for you, though that is the subject of a later post.

I stole very heavily from some online examples (linked to below), as I hope that anybody looking to try LaTeX CV might steal from mine. You can download the .tex file and corresponding PDF, if you care to. Here’s an image of the final product’s first page:

I spent a good bit of time figuring out how my papers’ bibliographic info, exported from Mendeley in BibTeX format, could be quickly added to my CV. (One might argue that the hours spent figuring out how to add papers to your CV might be better spent writing papers. They’d be correct, but I stubbornly proceeded until success.) Here’s how I did it, with much help from the sites linked below.

I put all of my publications into a folder in Mendeley, which I called CV_Bergey_pubs. I made sure that all the info was correct and added the HTML markup for italicized text around species names (<i>…</i>), because I get anxious when I see, say, Papio kindae with normal font.

I then exported my Mendeley file to BibTeX format. This created a bunch of .bib files, one of which, CV_Bergey_pubs.bib corresponded to the folder of my publications. This file consisted of entries for all the papers, that looked something like this for my most recent paper:

@article{Pickett2012,
abstract = {Descriptions of primate diets[...]},
author = {Pickett, Sarah B and Bergey, Christina M. and {Di Fiore}, Anthony},
doi = {10.1002/ajp.22014},
file = {:Network/Servers/primate.anthro.nyu.edu/Users/bergey/Documents/Mendeley
Desktop/Pickett, Bergey, Di Fiore\_2012\_A metagenomic study of primate insect
diet diversity.pdf:pdf},
issn = {1098-2345},
journal = {American Journal of Primatology},
keywords = {dietary ecology,metagenomics,neotropical primates},
month = jul,
number = {7},
pages = {622--31},
pmid = {22553123},
title = {{A metagenomic study of primate insect diet diversity.}},
url = {http://www.ncbi.nlm.nih.gov/pubmed/22553123},
volume = {74},
year = {2012}
}

I link to this BibTex file in my .tex file with the following line at the end of my CV:

\nobibliography{/path/to/CV_Bergey_pubs}

These lines at the top tell LaTeX to load the natbib and bibentry libraries, and not to just start spitting out references, but rather wait until I say to do so:

\usepackage{natbib}
\usepackage{bibentry}
\nobibliography*

This line at the top of the .tex file tells the compiler what format I’d like my bibliography in, APA-like:

\bibliographystyle{apalike}

After that I can quickly add the bibliographic info for my papers. The first line, @article{Pickett2012, shows the short name of the file, Pickett2012. You can edit this in Mendeley in the info window for each article. The default is AuthorYear. If I want to add the bibliographic entry for this article, I simply type:

\bibentry{Pickett2012}

So my full (relatively short) table of papers looks like this:

\begin{longtable}{p{0.5in}|p{5.5in}}
2012 & \bibentry{Pickett2012} \\
2011 & \bibentry{Bergey2011} \\
& \bibentry{Jolly2011} \\
2010 & \bibentry{Hodgson2010} \\
2008 & \bibentry{Bergey2008} \\
\end{longtable}

I wish there were a bit more of those. Anyway, with a bit of help from an intro to LaTeX website, anyone should be able to take out my info and replace it with their own. Time will tell if I ever take the plunge and attempt to write my dissertation in LaTeX, but for now, the CV is working out well. Below are some links for those more interested in CVs in LaTeX and integration with Mendeley.