PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : moderncv "! Undefined control sequence. \NewDocumentCommand"



Kakao
09-09-2013, 18:33
Hallo,

nach der Neuinstalltion von MikTeX konnte ich meinen alten Lebenslauf (mittels moderncv) nicht mehr übersetzen. Jetzt habe ich moderncv über den Packagemanager neu installiert und von der Internetseite

http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/examples

die Datei template.tex heruntergeladen. Aber sie lässt sich nicht übersetzen. Ich erhalte folgende Meldungen:

LOG FILE :
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.2.14) 9 SEP 2013 16:47
entering extended mode
**lebnslauf-template.tex
...
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ...
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\moderncv\moderncv.cls"
Document Class: moderncv 2013/04/29 v1.5.1 modern curriculum vitae and letter document class
...
Package: moderncvcompatibility 2013/04/29 v1.5.1 modern curriculum vitae and le
tter compatibility patches
)
! Undefined control sequence.
l.234 \NewDocumentCommand
{\address}{mG{}G{}}{\def\@addressstreet{#1}\def\@a d...
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.
l.234 \NewDocumentCommand{\address
}{mG{}G{}}{\def\@addressstreet{#1}\def\@ad...
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.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.234 \NewDocumentCommand{\address}{m
G{}G{}}{\def\@addressstreet{#1}\def\@ad...
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Illegal parameter number in definition of \@addressstreet.
<to be read again>
1
l.234 ...\address}{mG{}G{}}{\def\@addressstreet{#1
}\def\@addresscity{#2}\def...
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \@addresscity.
<to be read again>
2
l.234 ...ef\@addressstreet{#1}\def\@addresscity{#2
}\def\@addresscountry{#3}}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \@addresscountry.
<to be read again>
3
l.234 ...f\@addresscity{#2}\def\@addresscountry{#3
}}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
\c@collection@phones@count=\count88
\c@collection@socials@count=\count89
! Undefined control sequence.
<recently read> \NewDocumentCommand
l.254 \NewDocumentCommand
{\social}{O{}O{}m}{%
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.
l.254 \NewDocumentCommand{\social
}{O{}O{}m}{%
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.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.254 \NewDocumentCommand{\social}{O
{}O{}m}{%
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Illegal parameter number in definition of \@gtempa.
<to be read again>
2
l.255 \ifthenelse{\equal{#2}{}}
%
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \@tempa.
<to be read again>
2
l.255 \ifthenelse{\equal{#2}{}}
%
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \collection@socials@item.
<to be read again>
3
l.261 ...[#1]{socials}{\protect\httplink[#3]{#2}}}
}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \collection@socials@item.
<to be read again>
2
l.261 ...[#1]{socials}{\protect\httplink[#3]{#2}}}
}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \collection@socials@key.
<to be read again>
1
l.261 ...[#1]{socials}{\protect\httplink[#3]{#2}}}
}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Undefined control sequence.
l.343 \NewDocumentCommand
{\photo}{O{64pt}O{0.4pt}m}{\def\@photowidth{#1}\de f...
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.
l.343 \NewDocumentCommand{\photo
}{O{64pt}O{0.4pt}m}{\def\@photowidth{#1}\def...
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.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.343 \NewDocumentCommand{\photo}{O
{64pt}O{0.4pt}m}{\def\@photowidth{#1}\def...
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Illegal parameter number in definition of \@photowidth.
<to be read again>
1
l.343 ...to}{O{64pt}O{0.4pt}m}{\def\@photowidth{#1
}\def\@photoframewidth{#2}...
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \@photoframewidth.
<to be read again>
2
l.343 ...f\@photowidth{#1}\def\@photoframewidth{#2
}\def\@photo{#3}}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Illegal parameter number in definition of \@photo.
<to be read again>
3
l.343 ...1}\def\@photoframewidth{#2}\def\@photo{#3
}}
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
! Undefined control sequence.
l.389 \NewDocumentCommand
{\section}{sm}{}
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.
l.389 \NewDocumentCommand{\section
}{sm}{}
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.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.389 \NewDocumentCommand{\section}{s
m}{}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
l.393 \NewDocumentCommand
{\subsection}{sm}{}
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.
l.393 \NewDocumentCommand{\subsection
}{sm}{}
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.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.393 \NewDocumentCommand{\subsection}{s
m}{}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
\c@cvcolumnscounter=\count90
\c@cvcolumnsautowidthcounter=\count91
\c@tmpiteratorcounter=\count92
\cvcolumnsdummywidth=\skip54
\cvcolumnswidth=\skip55
\cvcolumnsautowidth=\skip56
\cvcolumnautowidth=\skip57
\bibindent=\skip58
) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\moderncv\moderncvstylecasual.st
y"
Package: moderncvstylecasual 2013/04/29 v1.5.1 modern curriculum vitae and lett
er style scheme: casual
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\moderncv\moderncvstyleclassic.sty
"
Package: moderncvstyleclassic 2013/04/29 v1.5.1 modern curriculum vitae and let
ter style scheme: classic
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\moderncv\moderncviconsmarvosym.st
y"
Package: moderncviconsmarvosym 2013/04/29 v1.5.1 modern curriculum vitae and le
tter icons: marvosym

! LaTeX Error: File `tikz.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.30
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
3652 strings out of 493921
53373 string characters out of 3144873
145158 words of memory out of 3000000
6928 multiletter control sequences out of 15000+200000
4709 words of font info for 16 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
37i,0n,45p,784b,90s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!


Wo finde ich denn eine Beispieldatei, die zu meiner moderncv-Version passt? Oder kann ich das Problem auch so fixen?

u_fischer
09-09-2013, 19:14
Die template.tex lässt sich bei mir (miktex 2.9) tadellos übersetzen.


LOG FILE :
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.2.14) 9 SEP 2013 16:47
entering extended mode
**lebnslauf-template.tex
...
LaTeX2e <2011/06/27>
Babel and hyphenation patterns for english, afrikaans, ...
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\moderncv\moderncv.cls"
Document Class: moderncv 2013/04/29 v1.5.1 modern curriculum vitae and letter document class
...

Die wichtigen Teile der log-Datei hast du entfernt. Aber wenn ich raten muss: Mach mal ein Update - und zwar als User + als Admin.

Kakao
10-09-2013, 07:59
Jetzt habe ich MikTeX upgedatet, aber es lässt sich immer noch nicht übersetzen.

Dieses Mal habe ich die ganze log-Datei angehängt.

klops
10-09-2013, 08:12
Du hast in C:\Users\Monika\Documents\0_selbst erstellt\Bewerbungen eine total veraltete Version des l3-Pakets xparse. In aktuellen Versionen davon wird beispielsweise \NewDocumentCommand definiert. Du solltest also dafür sorgen, dass dieser alte Krempel nicht mehr gefunden wird.

Kakao
10-09-2013, 10:57
Vielen Dank! Jetzt funktioniert es. :)