A blog by Rob J Hyndman 

Twitter Gplus RSS

A LaTeX template for a CV

Published on 27 November 2010

Every researcher needs a Cur­ricu­lum Vitae (Latin for “course of life”) or CV. You will need it for job appli­ca­tions, for annual per­for­mance appraisal, and just for keep­ing track of your pub­li­ca­tions. A CV typ­i­cally con­tains lists of achieve­ments includ­ing qual­i­fi­ca­tions, pub­li­ca­tions, pre­sen­ta­tions, awards, plus teach­ing experience.

I’ve cre­ated a LaTeX style for a CV to make it easy to pro­duce some­thing that looks good and is easy to main­tain. You will need an up-​​to-​​date imple­men­ta­tion of LaTeX because I’m using the won­der­ful bibla­tex pack­age (more on that in another post) which has only just become avail­able as part of Mik­TeX and TeXLive.

The pre­am­ble of your CV should look some­thing like this:

\documentclass[a4paper,11pt]{article}
\usepackage{cv}
\name{Rob J Hyndman}
\info{Address: & Department of Econometrics \& Business Statistics, Monash University, VIC 3800, Australia.\\
      Phone: & +61 3 9905 2358\\
      Email: & Rob.Hyndman@monash.edu\\
      WWW: & robjhyndman.com}
 
\bibliography{rjhpubs}
 
\addtocategory{books}{MWH3,ITSM91,ITSM94,expsmooth08}
\addtocategory{papers}{BHG91,BH92,YW93,Hyndman94,HDRF95}
\addtocategory{papers}{HDR96,HBG96,HF96,GHH97,HW97,LFSH97,GH98}
  • Include your name in the \name command.
  • The \info com­mand con­tains infor­ma­tion to go in the header box on the first page. This is struc­tured as for a tab­u­lar envi­ron­ment. You can include any infor­ma­tion you like in the \info com­mand includ­ing addi­tional rows. Some peo­ple include their date of birth, cit­i­zen­ship, fam­ily details, etc.
  • All your pub­li­ca­tions should be in a bib file (mine is called rjhpubs.bib) loaded with the \bibliography command.
  • The final three lines allo­cate items from the bib file to cat­e­gories. These will appear in sep­a­rate sec­tions in the CV. My real CV has sev­eral more lines like these so that all my pub­li­ca­tions are added to cat­e­gories. Each of the codes is the key for a bib item.
  • The style file has the fol­low­ing pre-​​defined cat­e­gories:
    books Books
    papers Ref­er­eed research papers
    chap­ters Book chap­ters
    con­fer­ences Papers in con­fer­ence proceedings
    techre­ports Unpub­lished work­ing papers
    bookre­views Book reviews
    edi­to­ri­als Edi­to­ri­als
    phd PhD the­sis
    sub­pa­pers Sub­mit­ted papers
    cur­pa­pers Cur­rent projects

    It is easy to add your own cat­e­gories and titles if these are not suit­able. For exam­ple, if you want to include posters in your CV, put the fol­low­ing in the preamble:

    \makebibcategory{posters}{Conference posters}
  • After the pre­am­ble, my CV looks like this:
    \begin{document}
    \maketitle
     
    \section{Education and Qualifications}
    \begin{tabular}{lll}
    1988 & B.Sc.(Hons) & University of Melbourne\\
    1992 & Ph.D. & University of Melbourne\\
    2000 & A.Stat. & Statistical Society of Australia.
    \end{tabular}

    The \maketitle puts in the header box. After that it is a nor­mal LaTeX doc­u­ment with \section com­mands for each section.

  • It is com­mon to have sec­tions list­ing qual­i­fi­ca­tions, employ­ment his­tory, awards, research grants, teach­ing expe­ri­ence and pub­li­ca­tions. The order of these varies depend­ing on what you want to empha­sise. Have a look at sev­eral CVs to see what other peo­ple do. Here are some exam­ples from some well-​​known sta­tis­ti­cians: Andrew Gel­man, Rob Tib­shi­rani, Matt Wand.
  • To add my pub­li­ca­tions, I have the fol­low­ing lines:
    \begin{publications}
    \printbib{books}
    \printbib{papers}
    \printbib{chapters}
    \printbib{conferences}
    \printbib{techreports}
    \printbib{bookreviews}
    \printbib{editorials}
    \end{publications}

    Each \printbib com­mand will add a sec­tion with all the pub­li­ca­tions in that cat­e­gory, listed in chrono­log­i­cal order and sorted by name within each year.

  • The total num­ber of pub­li­ca­tions listed inside the publications envi­ron­ment is cal­cu­lated and the page num­bers for the pub­li­ca­tions sec­tions are stored. So I have the fol­low­ing line in the Research sec­tion of my CV:
    I have authored \ref{sumpapers} papers, chapters or books on statistical topics. A list of these appears on pages \pageref{papersstart}--\pageref{papersend}.

    You can have addi­tional \printbib com­mands out­side the pub­li­ca­tions envi­ron­ment, but the asso­ci­ated bib items will not be counted in the sumpapers value.

Here is my CV using this style file (although I use dif­fer­ent fonts from those loaded in the style file).

Down­load the style file and use it your­self. Feel free to mod­ify it as you want.


Related Posts:


 
Tags: ,
51 Comments  comments 
  • http://robjhyndman.com Rob J Hyndman

    There was a small bug in the first ver­sion, now fixed. If you down­loaded ear­lier today, please do so again. Sorry.

  • http://vladtn.net Vlad

    Thanks, it looks good!

  • nan qu

    Is it pos­si­ble to sort pub­li­ca­tions in reverse chrono­log­i­cal order?

    Thanks.

    • http://robjhyndman.com Rob J Hyndman

      Yes. Replace “sorting=ynt” by “sorting=ydnt” in cv.sty.

  • http://www.cvtemplate.net/ CV Tem­plate

    Highly rec­om­mended, thanks for shar­ing such an excel­lent stuff with us.

  • Lin­wei

    Thank you Rob for shar­ing this.
    I have encoun­tered two minor errors:
    1) The ?? is higher than the actural num­ber by one;
    2) For the book chap­ter bib­li­og­ra­phy, it shows this a sequence: … book ‘title’ in ‘chap­ter’ …
    I won­der if it is just my prob­lem some­where else. I am a new LaTex user.

    • http://robjhyndman.com Rob J Hyndman
      1. Oh dear. Sorry about that. It’s now fixed. Please down­load the new ver­sion.
      2. You have prob­a­bly switched the fields in the bib file. A book chap­ter should be part of an inbook record. The “title” field should con­tain the chap­ter title and the “book­ti­tle” field should con­tain the book title.
  • Lin­wei

    Thanks a lot!

  • Daniele

    Very nice. I’ll sure still part of it for my own CV. How­ever I think it would be worth to say that in the PDF file you show as an exam­ple you used dif­fer­ent fonts than in the .sty file you pro­vide. It took me a while (I know I’m dumb) to under­stand why I was get­ting a dif­fer­ent look.

    • http://robjhyndman.com Rob J Hyndman

      I’ve now added a com­ment about the fonts. Thanks for point­ing it out.

  • Lin­wei Tian

    Hi Bob,
    Is there a way to high­light cer­tain author names in the bib­li­og­ra­phy? Say, I may want my name in bold font. Many thanks.

    • MYaseen208

      Hello,

      Yes you can high­light cer­tain author names in the bib­li­og­ra­phy. If you want to put cer­tain names in bold font use \bold{author name} in your bib file.

      • Lin­wei Tian

        It works. Thanks a lot.
        I used \textbf{author name} in my bib file.

  • Wayne Gray

    Bob,

    Very nice. Thanks for shar­ing. I am still climb­ing the LaTeX pow­er­curve and appre­ci­ate being able to study your .sty file.

    Two dif­fer­ent sorts of ques­tions for you.

    1. For each of the info lines in my header I see: “Address: amp; Cog­ni­tive …” “amp;” — if I delete the “&” then all of the info stuff gets printed in one long line (appar­ently off the page).

    2. I would like to be able to add by-​​year cat­e­gories to my pub­li­ca­tions list. So for con­fer­ence papers, I would like to add the sub­cat­e­gories of “2011”, “2010”, … “pre-​​1990″.

    I could sim­ply edit your .sty file to include these, but they would not appear as sub­cat­e­gories. Plus it would seem more ele­gant (and in keep­ing with your sty file) to have them sort them­selves out. I sus­pect that fig­ur­ing out how to do this would be a good devel­op­men­tal exer­cise for me, but in case this is really easy to do I would appre­ci­ate know­ing how (and sav­ing all that work).

    Cheers,

    Wayne Gray

    • http://robjhyndman.com Rob J Hyndman

      1. The & are nec­es­sary because the top info box is set in tab­u­lar for­mat. There was a for­mat­ting prob­lem with the post which I have now fixed and I think that was caus­ing you prob­lems. The “amp;” bits should be deleted.

      2. The sim­plest way would be to set up new bib cat­e­gories using
      \makebibcategory{2011conf}{2011 Con­fer­ence papers}
      for exam­ple. If you wanted sub­sec­tions under “Con­fer­ence papers” you will have to do some hacking.

  • Jan Tauber

    Thanks for the very nice CV tem­plate.
    I am using Bibla­tex 0.9 and am try­ing to sort ref­er­ences in reverse chrono­log­i­cal order, using sorting=ydnt.
    But it doesn’t seem to work at all…
    Any ideas as to what I could be doing wrong ?
    thanks for any feed­back.
    Jan

    • http://robjhyndman.com Rob J Hyndman

      Use the lat­est ver­sion of bibla­tex. It is now 1.4c.

  • Jian Ma

    Thanks for your very nice CV tem­plate. I like the font you used in your sam­ple, is it kozuka gothic pro? I have a Mac, and I found this font in my com­puter. How to use this font in latex? Thanks for you help.

    • http://robjhyndman.com Rob J Hyndman

      I use Min­ion Pro and Myr­iad Pro. You need to use XeLa­TeX with the fontspec pack­age to com­pile the file. Read the fontspec man­ual to learn how to use addi­tional fonts.

      • Jian Ma

        I see. Thank you! ^_^

  • H P

    Hello,
    Is there some way to get BibLa­TeX to encode the ref­er­ences labels with J for Jour­nals, C for Con­fer­ences, and so on? In addi­tion, refer­ring to them would use these J1, C1 sort of citations?

    Thanks.

  • http://Website Mar­i­ana

    Hi!

    Thanks for the great tem­plate. It looks great. I was won­der­ing if it’s pos­si­ble to have a pic­ture in the header. I am a basic user, so I don’t really know how to mess with the style file…

    Thanks!

    • http://robjhyndman.com Rob J Hyndman

      You could over­lay a pic­ture using the textpos pack­age. Oth­er­wise, you might just have to hack the sty file.

  • http://Website tonyv

    Hi Rob
    Thanks for the CV tem­plate, but I am hav­ing a prob­lem get­ting it to run, as I am get­ting an unde­fined con­trol sequence at line 153 which is \defbibenvironment{bibliography}
    I’m using ubuntu and have all the required pack­ages as far as I can tell, but I’m still new to latex. Any suggestions?

    • http://robjhyndman.com Rob J Hyndman

      bibla­tex had changed some of its pack­age options which meant my cv style file was bro­ken. I’ve now updated it and it should work with the lat­est ver­sion of bibla­tex (v1.6).

  • http://Website tonyv

    Thanks Rob, I down­loaded the new style sheet but I’m still get­ting the same error mes­sage. The file looks like the same cv.sty that I was using — says updated 27 Novem­ber 2010?

  • Patrick Widener

    Very nice. I’ve been accom­plish­ing this trick by con­vert­ing bib­tex to XML with Python, and then using XSLT trans­for­ma­tions to gen­er­ate dif­fer­ent out­puts: LaTeX for CV inclu­sion, HTML for my web page, and DocuWiki. That way my pubs list on my web page and my CV are always in sync.

    I wasn’t aware of bibla­tex, though, and this is so sim­ple that I might just ditch my cur­rent setup and just pro­vide a PDF CV on the web page.

  • http://Website tonyv

    Rob
    I’ve noticed in your cv that the author ini­tials are mixed between after the first sur­name, then before the sur­name for sub­se­quent authors, as per your ref 33:
    Hyn­d­man, R. J., M. L. King, I. Pitrun, and M. B. Bil­lah etc
    Is there a way to change this so that all are after the sur­name?
    Thanks

    • http://robjhyndman.com Rob J Hyndman

      This is a style issue. It is eas­ily changed by edit­ing the bib­li­og­ra­phy style. Read the bibla­tex man­ual for details.

  • Enrico Bertini

    I just used it for my CV. I needed only a very few tweaks here and there. Thanks a lot!!!

  • MYaseen208

    Nice CV tem­plate. I won­der how to omit or change date. I tried \date{} but it did not work. Any sug­ges­tion. Thanks

    • http://robjhyndman.com Rob J Hyndman

      The date is inserted using \today. So you could just rede­fine it. For exam­ple, to omit the date, put in the pre­am­ble
      \def\today{}

      • MYaseen208

        Thanks a lot. It works fine.

  • Malak Bokhari

    I have been try­ing to open the file with texshop. So I down­load the link as .sty and save in ~library/​texmf/​tex/​latex/​misc folder. But when I try and open with teashop, it doesn’t work. It keeps open­ing an older tem­plate for AMS. Can you please give detailed instruc­tions for mac users. Thank you

  • http://naveda.info/ Luiz Naveda

    Hi Rob,

    Many thanks for your initiative!As far as I under­stood you have to place the citekey of the pub­li­ca­tions in advance in order to place the items in your CV. Have you though about look­ing at an cus­tom bib­tex field and per­form this action auto­mat­i­cally via bib­tex edi­tor? For exam­ple, I have all my cv items orga­nized and I defined the bib­tex field “series” as the main clas­si­fier of my cv items. So I have “Invited lec­ture, Pub­li­ca­tion in Pro­ceed­ings, etc” and these items are used in my actual cv (http://​naveda​.info/​c​u​r​r​i​culum). It would be really inter­est­ing to just define a field and then the style adds all citekeys or items automatically.I was going to try it but maybe you already have it implemented.Many thanks for your advices…I am actu­ally look­ing for a job after my PhD and despite I con­sider my PhD a suc­cess I is not reflect­ing in good job oppor­tu­ni­ties in Brazil…Luiz Naveda 

    • http://robjhyndman.com Rob J Hyndman

      Hi Luiz. Yes, that is pos­si­ble. I’ve done it using the field “key­words” in the bib entry and then 
      printbibliography[heading=reports,keyword=consulting]
      to print out all my con­sult­ing reports with­out hav­ing to list their citekeys. See the bibla­tex man­ual for infor­ma­tion on using key­words. I think you can do it using other clas­si­fiers such as cat­e­gory as well.

      • http://naveda.info/ Luiz Naveda

        Thanks, Rob!

        It is a good start­ing point! I keep you informed if I man­age to go for­ward.
        Best
        Luiz

      • http://naveda.info/ Luiz Naveda

        This is per­fect!!! You should include it in your pack­age! For art/​science CV’s like mine it makes a great difference!

        • http://robjhyndman.com Rob J Hyndman

          Glad it worked. There’s noth­ing to include in the pack­age. Just edit your bib file accord­ingly and use the key­word argu­ment when using printbibliography.

  • Wayne Gray

    Rob,

    Thanks again for shar­ing your tem­plate. I would like to use parts of it with the apa6 doc­u­ment class but have hit the lim­its of my LaTeX skills on this. I espe­cially like your header and the sec­tion head­ings but my simple-​​minded attempts to cre­ate a mod­i­fied style sheet have hit the wall. I sus­pect there are depen­den­cies that you are set­ting that Bibla­Tex and APA6 are also set­ting. But there is a sim­ple ques­tion embed­ded in this com­ment; namely, how would I mod­ify your file so that the cita­tions show us as “Gray, W. D. (2012) etc” rather than as “W. D. Gray (2012) etc”.

    Thanks,

    Wayne Gray

    • http://robjhyndman.com Rob J Hyndman

      I don’t know any­thing about apa6. The bib­li­og­ra­phy style is con­trolled with bibla­tex. It gives bib items of the form “Gray, W.D. (2012)” as you require. It is only the sec­ond and sub­se­quent authors whose the ini­tials are placed before their sur­names. If you want all ini­tials after sur­names, you need to change the bib­style from authoryear-​​comp to some­thing else.

  • The­jesh Bandi

    Hi Rob,
    Firstly, thank you for the class file, the lay­out is really nice.
    I have two ques­tions:
    1. The pub­li­ca­tion list is not dis­played on my CV. Yes, I did fol­low the steps of proper com­pi­la­tion on Texs­tu­dio.
    2. As my table con­tent is too long, towards the end of the page it goes invis­i­ble.
    Please sug­gest what should I do to get them right.
    Thank you,
    Thejesh

    • http://robjhyndman.com Rob J Hyndman

      1. TexStudio’s Quick­Build does not always run bib­tex for some rea­son. Some­times you need to bib­tex the file your­self.
      2. Use the longtable package.

  • The­jesh Bandi

    Thank you Rob. Bingo! It works now.

  • Pingback: Bibliography style in CV | web technical support

  • http://www.facebook.com/people/YuBo-Wang/100001530350287 YuBo Wang

    Hi, Rob

    Thanks for your great tem­plate. It looks great when i check your pdf file.
    How­ever, when i start to com­pile it, there are sev­eral errors. I tried with the code you give in this web­page. I have tried to solve it by updat­ing Mik­Tex, but i failed. Here is the error infor­ma­tion i copied from Texs­tu­dio
    MyCv.tex, error, Line 0, Emer­gency stopMyCv.tex, error, Line 0, Rerun to get/​PageLabels entry­Please sug­gest How can i fix it.Thank youYubo Wang

    • http://www.facebook.com/people/YuBo-Wang/100001530350287 YuBo Wang

      I have fixed the prob­lem. Thanks again for your great template.

  • Caillin

    This is great.
    Thanks.

  • Pingback: Research tips - LaTeX templates

  • Pingback: Writing a CV in LaTeX « LaTeX Matters

  • Rakesh

    Thank you for shar­ing the nice template.