0

I am using moderncv package in a tex document. I am compiling with pdflatex, and full texlive package downloaded from CTAN. The error I'm getting is:

line 7: Undefined control sequence \makecvtitle

Here is a minimum working example:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\name{Holmes}{Sherlock}
\insti{Institute Name}

\begin{document}
\makecvtitle
\end{document}
  • 2
    There are 2 \documentclass statements ;-) Remove one of them and it should work... Welcome to TeX.SX! ;-) – user31729 Sep 3 '14 at 11:55
  • You are right. I have updated the CLS file. But, now facing a new problem. The resume template is using \insti command which is not supported by this newer version of the CLS file. Any workaround? Thank you for your help. – Holmes.Sherlock Sep 3 '14 at 13:31
  • I have added the MWE reproducing this issue. It compiles with 2013-02-09 v1.3.0 of moderncv package. For your convenience, I am uploading that specific version of moderncv. – Holmes.Sherlock Sep 3 '14 at 13:46
  • Yeah, I did. The latest one does not recognize \insti command. – Holmes.Sherlock Sep 4 '14 at 20:40
1

A command \insti should not be accessed. You are not an institute but a person that hopefully is able to change it if desired.

I hope the following MWE (illustrating an institution of education and an institute where you have worked at or are currently working at) helps to explain why:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\name{Holmes}{Sherlock}

\begin{document}
\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{Grade}{Majors}

\section{Work}
\cvitem{year--year}{Dishwasher at Institute Name}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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