# Undefined control sequence makecvtitle in moderncv package

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}

• 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

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}