error when compiling

Asked by Miguel Ramos Galrinho

I cannot compile any template of moderncv. I have tried with previously made templates, and even something as simple as

\documentclass[11pt,a4paper,sans]{moderncv}

\firstname{Miguel}
\familyname{Galrinho}

\begin{document}

\makecvtitle

\end{document}

gives errors like:
"missing endcsname inserted \begin{document}"
"Extra endcsname \begin{document}"

If I use something more complex, as the templates that are given as example, I get other similar errors like:
"Missing endcsname inserted \settowidth{\listitemsymbolwidth}{\listitemsymbol}"
in the moderncvstyleclassic.sty.

Thanks for any help.

Miguel Galrinho

Question information

Language:
English Edit question
Status:
Invalid
For:
moderncv Edit question
Assignee:
Xavier Danaux Edit question
Last query:
Last reply:
Revision history for this message
Xavier Danaux (xdanaux) said :
#1

Something is clearly wrong, either with your installation, or with the way you compile. Do you compile using latex / pdflatex / xelatex / lualatex, and not tex / pdftex / xetex / luatex on the command line or through your editor?

To pinpoint the issue, can you try to compile a minimal file, i.e.
  \documentclass{article}
  \begin{document}
  Hello world!
  \end{document}

If that works, then change "article" to "moderncv" and retry. If you cannot compile the "article" minimal file, make sure you are using the correct compiling command and reinstall latex if you do. If you can compile the "article" minimal example above but not when replacing "article" with "moderncv", please post your .log file.

Kind regards,

Xavier

Revision history for this message
Miguel Ramos Galrinho (miguelrgalrinho) said :
#2

Thank you for your help. I can compile if the document class is article, I use latex for articles everyday. But if I change it to moderncv, the same thing happens. I compile using LaTeX + dvips + View PS. The log file is huge, but here it is:

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=latex 2012.5.27) 25 SEP 2012 10:21
entering extended mode
**tentativa.tex
(D:\KTH\moderncv-1.1.3\moderncv\tentativa.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
(D:\KTH\moderncv-1.1.3\moderncv\moderncv.cls
Document Class: moderncv 2012/08/10 v1.1.3 modern curriculum vitae and letter d
ocument class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size11.clo"
File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
(D:\KTH\moderncv-1.1.3\moderncv\etoolbox.sty
Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
\et@xins=\count79
)
\etb@tempcnta=\count80
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty"
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
)
(D:\KTH\moderncv-1.1.3\moderncv\xcolor.sty
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: dvips.def on input line 225.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\dvips.def"
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\lm\lmodern.sty"
Package: lmodern 2009/10/30 v1.6 Latin Modern Fonts
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> OT1/lmr/m/n on input line 22.
LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
(Font) OML/cmm/m/it --> OML/lmm/m/it on input line 23.
LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
(Font) OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> OML/lmm/b/it on input line 27.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\url.sty"
\Urlmuskip=\muskip10
Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: dvips.def on input line 91.
)
\Gin@req@height=\dimen102
\Gin@req@width=\dimen103
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fancyhdr\fancyhdr.sty"
\fancy@headwidth=\skip41
\f@ncyO@elh=\skip42
\f@ncyO@erh=\skip43
\f@ncyO@olh=\skip44
\f@ncyO@orh=\skip45
\f@ncyO@elf=\skip46
\f@ncyO@erf=\skip47
\f@ncyO@olf=\skip48
\f@ncyO@orf=\skip49
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\calc.sty"
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count81
\calc@Bcount=\count82
\calc@Adimen=\dimen104
\calc@Bdimen=\dimen105
\calc@Askip=\skip50
\calc@Bskip=\skip51
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
\calc@Ccount=\count83
\calc@Cskip=\skip52
)
(D:\KTH\moderncv-1.1.3\moderncv\xargs.sty
Package: xargs 2008/03/22 v1.1 extended macro definitions (mpg)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
\XKV@toks=\toks15
\XKV@tempa@toks=\toks16
\XKV@depth=\count84
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
))
\xargs@max=\count85
\xargs@toksa=\toks17
\xargs@toksb=\toks18
)
(D:\KTH\moderncv-1.1.3\moderncv\microtype.sty
Package: microtype 2005/02/02 v1.6a Micro-typography with pdfTeX (RS)
\MT@count=\count86
Package microtype Info: Trying to load local config file `microtype.cfg' ...

Package microtype Warning: ... local config file not found! This will
(microtype) almost certainly lead to undesired results.

Package microtype Info: Generating DVI output.
Package microtype Info: Character protrusion enabled (level 2).
Package microtype Info: Using default protrusion set `alltext'.
Package microtype Info: No font expansion.
) (D:\KTH\moderncv-1.1.3\moderncv\moderncvcompatibility.sty
Package: moderncvcompatibility 2012/08/10 v1.1.3 modern curriculum vitae and le
tter compatibility patches
)
(D:\KTH\moderncv-1.1.3\moderncv\suffix.sty
Package: suffix 2006/07/15 1.5 Variant command support
)
\bibindent=\skip53

(D:\KTH\moderncv-1.1.3\moderncv\tweaklist.sty))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
Package: hyperref 2011/04/17 v6.82g Hypertext links for LaTeX

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
Package: hobsub-hyperref 2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"
Package: hobsub-generic 2011/04/23 v1.4 Bundle oberdiek, subset generic (HO)
Package: hobsub 2011/04/23 v1.4 Subsetting bundle oberdiek (HO)
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO)
Package: ltxcmds 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
Package ifvtex Info: VTeX not detected.
Package: intcalc 2007/09/27 v1.1 Expandable integer calculations (HO)
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is not detected.
Package: etexcmds 2011/02/16 v1.5 Prefix for e-TeX command names (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
Package: kvsetkeys 2011/04/07 v1.13 Key value parser (HO)
Package: kvdefinekeys 2011/04/07 v1.3 Defining keys (HO)
Package: pdftexcmds 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode is ignored in DVI mode.
Package: pdfescape 2011/04/04 v1.12 Provides string conversions (HO)
Package: bigintcalc 2011/01/30 v1.2 Expandable big integer calculations (HO)
Package: bitset 2011/01/30 v1.1 Data type bit set (HO)
Package: uniquecounter 2011/01/30 v1.2 Provides unlimited unique counter (HO)
)
Package hobsub Info: Skipping package `hobsub' (already loaded).
Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
Package: hopatch 2011/01/30 v1.0 Wrapper for package hooks (HO)
Package: xcolor-patch 2011/01/30 xcolor patch
Package: atveryend 2011/04/23 v1.7 Hooks at very end of document (HO)
Package: atbegshi 2011/01/30 v1.15 At begin shipout hook (HO)
Package: refcount 2010/12/01 v3.2 Data extraction from references (HO)
Package: hycolor 2011/01/30 v1.7 Color options of hyperref/bookmark (HO)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty"
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2010/12/23 v3.10 Keyval support for LaTeX options (HO)
)
\@linkdim=\dimen106
\Hy@linkcounter=\count87
\Hy@pagecounter=\count88

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def"
File: pd1enc.def 2011/04/17 v6.82g Hyperref: PDFDocEncoding definition (HO)
)
\Hy@SavedSpaceFactor=\count89

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg"
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
Package hyperref Info: Option `unicode' set `true' on input line 3905.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\puenc.def"
File: puenc.def 2011/04/17 v6.82g Hyperref: PDF Unicode definition (HO)
)
Package hyperref Info: Option `pdfpagelabels' set `false' on input line 3905.
Package hyperref Info: Hyper figures OFF on input line 4026.
Package hyperref Info: Link nesting OFF on input line 4031.
Package hyperref Info: Hyper index ON on input line 4034.
Package hyperref Info: Plain pages OFF on input line 4041.
Package hyperref Info: Backreferencing OFF on input line 4046.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4264.
\c@Hy@tempcnt=\count90
LaTeX Info: Redefining \url on input line 4617.
\Fld@menulength=\count91
\Field@Width=\dimen107
\Fld@charsize=\dimen108
Package hyperref Info: Hyper figures OFF on input line 5701.
Package hyperref Info: Link nesting OFF on input line 5706.
Package hyperref Info: Hyper index ON on input line 5709.
Package hyperref Info: backreferencing OFF on input line 5716.
Package hyperref Info: Link coloring OFF on input line 5721.
Package hyperref Info: Link coloring with OCG OFF on input line 5726.
Package hyperref Info: PDF/A mode OFF on input line 5731.
LaTeX Info: Redefining \ref on input line 5771.
LaTeX Info: Redefining \pageref on input line 5775.
\c@Item=\count92
\c@Hfootnote=\count93
)

Package hyperref Message: Driver (default): hdvips.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hdvips.def"
File: hdvips.def 2011/04/17 v6.82g Hyperref driver for dvips

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pdfmark.def"
File: pdfmark.def 2011/04/17 v6.82g Hyperref definitions for pdfmark specials
\pdf@docset=\toks19
\pdf@box=\box26
\pdf@toks=\toks20
\pdf@defaulttoks=\toks21
\Fld@listcount=\count94
\c@bookmark@seq@number=\count95

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"
Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
82.
)
\Hy@SectionHShift=\skip54
))
Package hyperref Info: Option `breaklinks' set `true' on input line 2.
Package hyperref Info: Option `bookmarksopen' set `true' on input line 2.

! Undefined control sequence.
<argument> \@firstname
                       {}~\@familyname {}
l.2 \begin{document}

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.
<argument> \@firstname {}~\@familyname
                                       {}
l.2 \begin{document}

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.
<argument> \@firstname
                       {}~\@familyname {} -- \@title {}
l.2 \begin{document}

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.
<argument> \@firstname {}~\@familyname
                                       {} -- \@title {}
l.2 \begin{document}

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.
<argument> Resum\'{e} of \@firstname
                                     {}~\@familyname {}
l.2 \begin{document}

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.
<argument> ...'{e} of \@firstname {}~\@familyname
                                                  {}
l.2 \begin{document}

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.
<argument> \@firstname
                       {}~\@familyname {}, curriculum vit\ae {}, resum\'{e}
l.2 \begin{document}

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.
<argument> \@firstname {}~\@familyname
                                       {}, curriculum vit\ae {}, resum\'{e}
l.2 \begin{document}

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.

(D:\KTH\moderncv-1.1.3\moderncv\tentativa.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 2.
LaTeX Font Info: ... okay on input line 2.
LaTeX Font Info: Try loading font information for T1+lmr on input line 2.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\lm\t1lmr.fd"
File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
! Missing endcsname inserted.
<to be read again>
                   MT@protcodes@name
l.2 \begin{document}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra endcsname.
MT@let@nc #1->expandafter let csname #1endcsname

l.2 \begin{document}

I'm ignoring this, since I wasn't doing a \csname.

! Undefined control sequence.
<argument> ...protcodes@nameendcsname }@undefined
                                                  ifMT@selected@exp MT@vinfo...
l.2 \begin{document}

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.

Package microtype Warning: I cannot find a prot. list for `T1/lmr/m/n/10.95'.
(microtype) Switching off prot. for this font on input line 2.

! Missing endcsname inserted.
<to be read again>
                   MT@protcodes@name
l.2 \begin{document}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra endcsname.
MT@ifdefined@n #1->ifcsname #1endcsname
                                        expandafter @firstoftwo else expanda...
l.2 \begin{document}

I'm ignoring this, since I wasn't doing a \csname.

! Missing endcsname inserted.
<to be read again>
                   MT@protcodes@name
l.2 \begin{document}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! LaTeX Error: Missing begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
 ...

l.2 \begin{document}

You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

! Extra endcsname.
MT@ifdefined@n #1->ifcsname #1endcsname
                                        expandafter @firstoftwo else expanda...
l.2 \begin{document}

I'm ignoring this, since I wasn't doing a \csname.

! Missing endcsname inserted.
<to be read again>
                   MT@protcodes@name
l.2 \begin{document}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra endcsname.
MT@let@cn ...let expandafter #1csname #2endcsname

l.2 \begin{document}

I'm ignoring this, since I wasn't doing a \csname.

! Missing endcsname inserted.
<to be read again>
                   MT@protcodes@name
l.2 \begin{document}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra endcsname.
MT@let@cn ...let expandafter #1csname #2endcsname

l.2 \begin{document}

I'm ignoring this, since I wasn't doing a \csname.

! Missing endcsname inserted.
<to be read again>
                   MT@protcodes@name
l.2 \begin{document}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra endcsname.
MT@let@cn ...let expandafter #1csname #2endcsname

l.2 \begin{document}

I'm ignoring this, since I wasn't doing a \csname.

\AtBeginShipoutBox=\box27
Package hyperref Info: Link coloring OFF on input line 2.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
Package: nameref 2010/04/30 v2.40 Cross-referencing by name of section

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"
Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)
)
\c@section@level=\count96
)
LaTeX Info: Redefining \ref on input line 2.
LaTeX Info: Redefining \pageref on input line 2.
LaTeX Info: Redefining \nameref on input line 2.
\@outlinefile=\write3
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 4.

[1

]
Package atveryend Info: Empty hook `AfterLastShipout' on input line 4.
 (D:\KTH\moderncv-1.1.3\moderncv\tentativa.aux)
Package atveryend Info: Empty hook `AtVeryEndDocument' on input line 4.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 4.

Package rerunfilecheck Warning: File `tentativa.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.

Package rerunfilecheck Info: Checksums for `tentativa.out':
(rerunfilecheck) Before: <no file>
(rerunfilecheck) After: D41D8CD98F00B204E9800998ECF8427E;0.

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
Here is how much of TeX's memory you used:
 7456 strings out of 494050
 103705 string characters out of 3146085
 195895 words of memory out of 3000000
 10705 multiletter control sequences out of 15000+200000
 7699 words of font info for 17 fonts, out of 3000000 for 9000
 715 hyphenation exceptions out of 8191
 34i,11n,45p,789b,319s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on tentativa.dvi (1 page, 2888 bytes).

Revision history for this message
Miguel Ramos Galrinho (miguelrgalrinho) said :
#3

I have updated to the most recent version of TexStudio and downloaded the moderncv again, and it works now. Thanks anyway for your help and thank you for your service with the moderncv!

Revision history for this message
Xavier Danaux (xdanaux) said :
#4

Great to hear that! There was definitely something wrong with your installation.

Good luck with any job application :)

Revision history for this message
Xavier Danaux (xdanaux) said :
#5

Problem not linked to a bug in moderncv, but a faulty installation / latex setup.