I am making my CV using the TeX package moderncv
. I wish to enter references in my CV. I am getting an error when I use the command for double column. The error is
undefined control sequence \listdoublecolumnwidth
Following is my code. Many thanks in advance.
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\firstname{Ridhima}
\familyname{Gupta}
\begin{document}
\maketitle
\newcommand{\cvdoublecolumn}[2]{%
\cvitem[0.75em]{}{%
\begin{minipage}[t]{\listdoubleitemcolumnwidth}#1\end{minipage}%
\hfill%
\begin{minipage}[t]{\listdoubleitemcolumnwidth}#2\end{minipage}%
}%
}
\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}}
\cvdoublecolumn{\cvreference{E. Somanathan}
{Professor}
{Economics and Planning Unit}
{Indian Statistical Institute}
{Delhi-110016}
{som@isid.ac.in}
{+91-11-41493939}
}
Best Answer
Well, you have several errors in your code.
You defined two commands with different number of parameters:
Then you have to use them as follows in your code (please see that I moved the definitions before line
\begin{document}
:and the result: