Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When simply trying to compile the CTAN template.tex available here http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples I receive the following errors after compiling:

 ! Undefined control sequence. \name
 ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help.
  etc ...

EDIT Same problem with \social; \cvcolomn

As you can see on the website, the last update of the templates date back to 2013-04-23 08:14:47 . Since it is barely recent, I doubt that it is because of old content. Please note that I checked that package textlive-latex-extra was updated.

I have no idea why I got so much errors using some official templates. Thank you in advance for your help.

share|improve this question
1  
This came up before: there was a change to the syntax I can't remember if \name was the old or new version, check the documentation for the one you have.. –  David Carlisle Apr 29 '13 at 15:48
1  
Welcome to TeX.sx! –  Peter Jansson Apr 29 '13 at 16:01
    
@DavidCarlisle: Note that there is no documentation for this class yet... But the class file is well commented. –  strpeter Feb 20 at 12:19

1 Answer 1

up vote 5 down vote accepted

\name{}{} is the new syntax; the old syntax was \firstname{} and \familyname{}; there are also some other changes, which you can read in the CHANGELOG file. You need to make sure that all your moderncv files are updated to 2013-04-23. Take into acount that the last update to CTAN was made when TeX Live2012 was already frozen, so perhaps the last update didn't make it to your system. You can either use the old interface, or manually install the updated versions (or perhaps try the pre-test TeX Live2013)

share|improve this answer
    
I see your point, and I think that you are right about the "not updated" official version. Where could I find this last package you are mentionning please? And how would you suggest me to install it on linux please? Thanks for all –  JohnDoe Apr 29 '13 at 16:26
    
@JohnDoe you can download the pre.test TeX Live2013 from TUG; installation instructions are available following the link I provided. Take into account, however, that the pre-test version can still contain some bugs. Instead, I would suggest you to manually download the newly updated files for moderncv and to work with them locally (you can simple copy-paste them to your local tree or to your current working directory). –  Gonzalo Medina Apr 29 '13 at 16:32
    
Thats what I did, and it worked actually. Thank you for your help. –  JohnDoe Apr 29 '13 at 17:04
    
This also works for LyX users out there! Note that you have to update the package which is in /usr/share/texmf/tex/latex/moderncv with the version available on ctan.org/tex-archive/macros/latex/contrib/moderncv . Then go to Tools/Reconfigure and restart LyX. –  ChrisR Sep 11 '13 at 18:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.