This question already has an answer here:

https://www.writelatex.com/2006263vsgfgk#/5055479/

I want to add references to a resume template.

In order to do this I added :

\section{References}

\cvdoublecolumn{\cvreference{Nicolai Reshetikhin}
    {Department of Mathematics}
    {University of California}
    {Berkeley, CA 94720-3840}
    {}
    {reshetik@math.berkeley.edu}
    {510-643-6234}%
    }
    {\cvreference{Mikhail Khovanov}
    {Department of Mathematics}
    {Columbia University}
    {990 Broadway}
    {New York, NY 10027}
    {khovanov@columbia.edu}
    {212-854-4186}%
    }

\cvdoublecolumn{\cvreference{Roman Bezrukavnikov}
    {Department of Mathematics}
    {Massachusetts Institute of Technology}
    {77 Massachusetts Avenue}
    {Cambridge, MA 02139}
    {bezrukav@math.mit.edu}
    {617-253-2684}
    }
    {\cvreference{Tom Braden}
    {Department of Mathematics}
    {University of Massachusetts}
    {Amherst, MA 94720-3840}
    {}
    {braden@math.umass.edu}
    {413-545-1732}
    }

The code is

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% "ModernCV" CV and Cover Letter
% LaTeX Template
% Version 1.11 (19/6/14)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Xavier Danaux (xdanaux@gmail.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template requires the moderncv.cls and .sty files to be in the same 
% directory as this .tex file. These files provide the resume style and themes 
% used for structuring the document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman
\moderncvstyle{casual}
\moderncvtheme{casual}

\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template

\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name

%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{John} % Your first name
\familyname{Smith} % Your last name

% All information in this block is optional, comment out any lines you don't need
\title{Curriculum Vitae}
\address{123 Broadway}{City, State 12345}
\mobile{(000) 111 1111}
\phone{(000) 111 1112}
\fax{(000) 111 1113}
\email{john@smith.com}
\homepage{staff.org.edu/~jsmith}{staff.org.edu/$\sim$jsmith} % The first argument is the url for the clickable link, the second argument is the url displayed in the template - this allows special characters to be displayed such as the tilde in this example
\extrainfo{additional information}
\photo[70pt][0.4pt]{pictures/picture} % The first bracket is the picture height, the second is the thickness of the frame around the picture (0pt for no frame)
\quote{"A witty and playful quotation" - John Smith}
\newcommand{\cvdoublecolumn}[2]{%
  \cvline[0.75em]{}{%
    \begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#1\end{minipage}%
    \hfill%
    \begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}%
    }%
}

% usage: \cvreference{name}{address line 1}{address line 2}{address line 3}{address line 4}{e-mail address}{phone number}
% Everything but the name is optional
% If \addresssymbol, \emailsymbol or \phonesymbol are specified, they will be used.
% (Per default, \addresssymbol isn't specified, the other two are specified.)
% If you don't like the symbols, remove them from the following code, including the tilde ~ (space).

\newcommand{\cvreference}[7]{%
    \textbf{#1}\newline% Name
    \ifthenelse{\equal{#2}{}}{}{\addresssymbol~#2\newline}%
    \ifthenelse{\equal{#3}{}}{}{#3\newline}%
    \ifthenelse{\equal{#4}{}}{}{#4\newline}%
    \ifthenelse{\equal{#5}{}}{}{#5\newline}%
    \ifthenelse{\equal{#6}{}}{}{\emailsymbol~\texttt{#6}\newline}%
    \ifthenelse{\equal{#7}{}}{}{\phonesymbol~#7}}
%----------------------------------------------------------------------------------------

\begin{document}

\makecvtitle % Print the CV title

%----------------------------------------------------------------------------------------
%   EDUCATION SECTION
%----------------------------------------------------------------------------------------

\section{Education}

\cventry{2011--2012}{Masters of Commerce}{The University of California}{Berkeley}{\textit{GPA -- 8.0}}{First Class Honours}  % Arguments not required can be left empty
\cventry{2007--2010}{Bachelor of Business Studies}{The University of California}{Berkeley}{\textit{GPA -- 7.5}}{Specialized in Commerce}

\section{Masters Thesis}

\cvitem{Title}{\emph{Money Is The Root Of All Evil -- Or Is It?}}
\cvitem{Supervisors}{Professor James Smith \& Associate Professor Jane Smith}
\cvitem{Description}{This thesis explored the idea that money has been the cause of untold anguish and suffering in the world. I found that it has, in fact, not.}

%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE SECTION
%----------------------------------------------------------------------------------------

\section{Experience}

\subsection{Vocational}

\cventry{2012--Present}{1\textsuperscript{st} Year Analyst}{\textsc{Lehman Brothers}}{Los Angeles}{}{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.
\newline{}\newline{}
Detailed achievements:
\begin{itemize}
\item Learned how to make amazing coffee
\item Finally determined the reason for \textsc{PC LOAD LETTER}:
\begin{itemize}
\item Paper jam
\item Software issues:
\begin{itemize}
\item Word not sending the correct data to printer
\item Windows trying to print in letter format
\end{itemize}
\item Coffee spilled inside printer
\end{itemize}
\item Broke the office record for number of kitten pictures in cubicle
\end{itemize}}

%------------------------------------------------

\cventry{2010--2011}{Summer Intern}{\textsc{Lehman Brothers}}{Los Angeles}{}{Rated "truly distinctive" for Analytical Skills and Teamwork.}

%------------------------------------------------

\subsection{Miscellaneous}

\cventry{2008--2009}{Computer Repair Specialist}{Buy More}{Burbank}{}{Worked in the Nerd Herd and helped to solve computer problems by asking customers to turn their computers off and on again.}

%----------------------------------------------------------------------------------------
%   AWARDS SECTION
%----------------------------------------------------------------------------------------

\section{Awards}

\cvitem{2011}{School of Business Postgraduate Scholarship}
\cvitem{2010}{Top Achiever Award -- Commerce}

%----------------------------------------------------------------------------------------
%   COMPUTER SKILLS SECTION
%----------------------------------------------------------------------------------------

\section{Computer skills}

\cvitem{Basic}{\textsc{java}, Adobe Illustrator}
\cvitem{Intermediate}{\textsc{python}, \textsc{html}, \LaTeX, OpenOffice, Linux, Microsoft Windows}
\cvitem{Advanced}{Computer Hardware and Support}

%----------------------------------------------------------------------------------------
%   COMMUNICATION SKILLS SECTION
%----------------------------------------------------------------------------------------

\section{Communication Skills}

\cvitem{2010}{Oral Presentation at the California Business Conference}
\cvitem{2009}{Poster at the Annual Business Conference in Oregon}

%----------------------------------------------------------------------------------------
%   LANGUAGES SECTION
%----------------------------------------------------------------------------------------

\section{Languages}

\cvitemwithcomment{English}{Mothertongue}{}
\cvitemwithcomment{Spanish}{Intermediate}{Conversationally fluent}
\cvitemwithcomment{Dutch}{Basic}{Basic words and phrases only}

%----------------------------------------------------------------------------------------
%   INTERESTS SECTION
%----------------------------------------------------------------------------------------

\section{Interests}
\section{References}

\subsection{set in separate rows}
\cvdoublecolumn{\cvreference{Nicolai Reshetikhin}
    {Department of Mathematics}
    {University of California}
    {Berkeley, CA 94720-3840}
    {}
    {reshetik@math.berkeley.edu}
    {510-643-6234}%
    }
    {\cvreference{Mikhail Khovanov}
    {Department of Mathematics}
    {Columbia University}
    {990 Broadway}
    {New York, NY 10027}
    {khovanov@columbia.edu}
    {212-854-4186}%
    }

\cvdoublecolumn{\cvreference{Roman Bezrukavnikov}
    {Department of Mathematics}
    {Massachusetts Institute of Technology}
    {77 Massachusetts Avenue}
    {Cambridge, MA 02139}
    {bezrukav@math.mit.edu}
    {617-253-2684}
    }
    {\cvreference{Tom Braden}
    {Department of Mathematics}
    {University of Massachusetts}
    {Amherst, MA 94720-3840}
    {}
    {braden@math.umass.edu}
    {413-545-1732}
    }

\subsection{set in one row only (like your example)}

\cvdoublecolumn{\cvreference{Nicolai Reshetikhin}
    {Department of Mathematics}
    {University of California}
    {Berkeley, CA 94720-3840}
    {}
    {reshetik@math.berkeley.edu}
    {510-643-6234}\\[1em]
    \cvreference{Roman Bezrukavnikov}
    {Department of Mathematics}
    {Massachusetts Institute of Technology}
    {77 Massachusetts Avenue}
    {Cambridge, MA 02139}
    {bezrukav@math.mit.edu}
    {617-253-2684}
    }
    {\cvreference{Mikhail Khovanov}
    {Department of Mathematics}
    {Columbia University}
    {990 Broadway}
    {New York, NY 10027}
    {khovanov@columbia.edu}
    {212-854-4186}\\[1em]
    \cvreference{Tom Braden}
    {Department of Mathematics}
    {University of Massachusetts}
    {Amherst, MA 94720-3840}
    {}
    {braden@math.umass.edu}
    {413-545-1732}
    }
\renewcommand{\listitemsymbol}{-~} % Changes the symbol used for lists

\cvlistdoubleitem{Piano}{Chess}
\cvlistdoubleitem{Cooking}{Dancing}
\cvlistitem{Running}

%----------------------------------------------------------------------------------------
%   COVER LETTER
%----------------------------------------------------------------------------------------

% To remove the cover letter, comment out this entire block

\clearpage

\recipient{HR Department}{Corporation\\123 Pleasant Lane\\12345 City, State} % Letter recipient
\date{\today} % Letter date
\opening{Dear Sir or Madam,} % Opening greeting
\closing{Sincerely yours,} % Closing phrase
\enclosure[Attached]{curriculum vit\ae{}} % List of enclosed documents

\makelettertitle % Print letter title

\lipsum[1-3] % Dummy text

\makeletterclosing % Print letter signature

%----------------------------------------------------------------------------------------

\end{document}

but the compile is showing "undefined control system". How to get rid of this?

EDIT:

I can now add the reference to the input and i compiled it successfully. But the problem is before the reference i see there are some numbers. How to remove these? enter image description here

marked as duplicate by Joseph Wright Jan 3 '15 at 22:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Astrinus Dec 15 '14 at 19:43
  • You have took code from tex.stackexchange.com/questions/34881/… but you forgot to define \newcommands. – Astrinus Dec 15 '14 at 20:00
  • Thanks, got it:) but can you please check the edit? – Complex Guy Dec 16 '14 at 21:12
  • The comment under the answer you copied the code from contains the solution. – Astrinus Dec 16 '14 at 21:15
  • 1
    As stated by that comment you don't want to read, after \newcommand{cvdoublecolumn} you should substitute \cvline (which is deprecated) with \cvitem – Astrinus Dec 17 '14 at 7:48

Browse other questions tagged or ask your own question.