0

I am using texmaker on ubuntu, and I was trying to create a cv. I downloaded this template from sharelatex. I tried compiling with, LaTeX, XeLaTex, and PDFLaTeX and all of them had the same error "Undefined control sequence." I linked the source below, is it a question of the compiler being used or is it something in the latex code?

These are the errors that keep being repeated.

! Undefined control sequence.
\cftdotfill #1->\def \@tempa 
                         {#1}\def \@tempb {\cftnodots }\ifx \@tempa \@te...
l.69 ... MSc, PhD, or something else}{2009 - 2013}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
\cftdotfill #1->\def \@tempa {#1}\def \@tempb 
                                          {\cftnodots }\ifx \@tempa \@te...
l.69 ... MSc, PhD, or something else}{2009 - 2013}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Missing control sequence inserted.
<inserted text> 
            \inaccessible 
l.69 ... MSc, PhD, or something else}{2009 - 2013}

Please don't say `\def cs{...}', say `\def\cs{...}'.
I've inserted an inaccessible control sequence so that your
definition will be completed without mixing me up too badly.
You can recover graciously from this error, if you're
careful; see exercise 27.2 in The TeXbook.

! Missing control sequence inserted.
<inserted text> 
            \inaccessible 
l.69 ... MSc, PhD, or something else}{2009 - 2013}

Please don't say `\def cs{...}', say `\def\cs{...}'.
I've inserted an inaccessible control sequence so that your
definition will be completed without mixing me up too badly.
You can recover graciously from this error, if you're
careful; see exercise 27.2 in The TeXbook.

! Missing control sequence inserted.
<inserted text> 
            \inaccessible 
l.69 ... MSc, PhD, or something else}{2009 - 2013}

https://www.sharelatex.com/templates/cv-or-resume/clean-cv

  • please always post the fill error message form the log in a {} code section. the full error message would say which command was undefined – David Carlisle May 14 '16 at 8:26
  • @DavidCarlisle Added the error messages. – ultrainstinct May 14 '16 at 8:33
  • 1
    Change line 55 to look like \begin{tabular*}{6.5in}{l@{\extracolsep{\fill}}r}. – Johannes_B May 14 '16 at 8:43
  • Word of advice, that template is bad. I wouldn't trust it. – Johannes_B May 14 '16 at 8:44
  • @Johannes_B it might be bad, but after looking at a bunch of CV templates. This one looked the best to me – ultrainstinct May 14 '16 at 8:45
4

You have a fragile command in an array preamble, the simplest way to fix that is to add

\usepackage{array}

compare

\documentclass{article}
\usepackage{tocloft}
\begin{document}
\begin{tabular}{l@{\cftdotfill{\cftdotsep}\extracolsep{\fill}}r}
    w
\end{tabular}
\end{document}

and

\documentclass{article}
\usepackage{tocloft}
\usepackage{array}
\begin{document}
\begin{tabular}{l@{\cftdotfill{\cftdotsep}\extracolsep{\fill}}r}
    w
\end{tabular}
\end{document}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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