![MikTex 및 moderncv 업데이트 후에 Moderncv template.tex를 컴파일할 수 없습니다.](https://rvso.com/image/328837/MikTex%20%EB%B0%8F%20moderncv%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%20%ED%9B%84%EC%97%90%20Moderncv%20template.tex%EB%A5%BC%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
\moderncv
최근에 패키지를 사용하여 이력서를 작성했습니다 . MikTex 및 moderncv 패키지(MikTex 패키지 관리자를 통해)를 업데이트하기 전까지는 모두 잘 작동했습니다. 이제 저는 64비트 Windows 7 컴퓨터에서 MikTex 2.9와 moderncv 2.0.0을 사용합니다. 불행하게도 나의 아름다운 이력서는 모두 더 이상 편집할 수 없습니다.
더 나쁜 것은 CTAN(template.tex)에 제공된 템플릿을 사용해 보면 다음과 같습니다.
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
\moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
\usepackage[scale=0.75]{geometry}
% personal data
\name{John}{Doe}
\title{Resumé title} % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
\phone[mobile]{+1~(234)~567~890} % optional, remove / comment the line if not wanted; the optional "type" of the phone can be
\email{[email protected]} % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com} % optional, remove / comment the line if not wanted
\begin{document}
%\begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
%----- resume ---------------------------------------------------------
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\end{document}
TexStudio는 다음과 같은 오류 메시지를 표시합니다.
- \name 명령이 이미 정의되어 있습니다. \새명령*{\이름}1{{\이름글꼴#1}}
- 정의되지 않은 제어 순서. \moderncvstyle
- \begin{문서}가 누락되었습니다. \moderncvstyle{c
나는 Tex 초보자이고 어디서부터 시작해야 할지 모른다는 것을 인정해야 합니다. 누군가 이 문제를 해결하도록 도와주실 수 있나요?
편집하다
여기는로그 파일의 파일 목록문제를 명확히하는 데 도움이되기를 바랍니다.
*File List*
moderncv.cls 2015/07/28 v2.0.0 modern curriculum vitae and letter document c
lass
size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
etoolbox.sty 2015/08/02 v2.2a e-TeX tools for LaTeX (JAW)
ifthen.sty 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)
ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
colortbl.sty 2012/02/13 v1.0a Color table columns (DPC)
array.sty 2014/10/28 v2.4c Tabular extension package (FMi)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
lmodern.sty 2009/10/30 v1.6 Latin Modern Fonts
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
graphicx.sty 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
graphics.sty 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
fancyhdr.sty
tweaklist.sty
calc.sty 2014/10/28 v4.3 Infix arithmetic (KKT,FJ)
xparse.sty 2016/01/19 v6377 L3 Experimental document command parser
expl3.sty 2016/01/19 v6377 L3 programming layer (loader)
expl3-code.tex 2016/01/19 v6377 L3 programming layer
l3pdfmode.def 2015/11/11 v6250 L3 Experimental driver: PDF mode
microtype.sty 2013/05/23 v2.5a Micro-typographical refinements (RS)
microtype-pdftex.def 2013/05/23 v2.5a Definitions specific to pdftex (RS)
microtype.cfg 2013/05/23 v2.5a microtype main configuration file (RS)
moderncvcollection.sty 2015/07/28 v2.0.0 moderncv collections
moderncvcompatibility.sty 2015/07/28 v2.0.0 modern curriculum vitae and lett
er compatibility patches
moderncvcolorblue.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter c
olor scheme: blue
geometry.sty 2010/09/12 v5.6 Page Geometry
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
geometry.cfg
hyperref.sty 2012/11/06 v6.83m Hypertext links for LaTeX
hobsub-hyperref.sty 2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty 2012/04/25 v1.12 Bundle oberdiek, subset generic (HO)
hobsub.sty 2012/04/25 v1.12 Construct package bundles (HO)
intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO)
etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)
kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)
pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO)
bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO)
uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO)
letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
hopatch.sty 2011/06/24 v1.1 Wrapper for package hooks (HO)
xcolor-patch.sty 2011/01/30 xcolor patch
atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO)
atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO)
refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO)
hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)
kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)
hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX
rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
supp-pdf.mkii
mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman (
RS)
t1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern
nameref.sty 2012/10/27 v2.43 Cross-referencing by name of section
gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)
template.out
template.out
***********
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 27.
Package rerunfilecheck Info: File `template.out' has not changed.
(rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
)
편집하다
그리고 여기에는처음 두 개의 완전한 오류 메시지로그 파일에서:
첫 번째:
! LaTeX Error: Command \name already defined.
Or name \end... illegal, see p.192 of the manual.
두번째:
! Undefined control sequence. l.5 \moderncvstyle
{casual} % style options are '... 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.
편집하다
컴파일 후(허용된 답변 참조) 다른 사용자 결과와 비교하여 로그 파일에 이름이 지정된 패키지를 확인할 때 몇 가지 차이점이 있습니다. 먼저, 다음과 같은 패키지가 있습니다.이전 버전, 비록 이틀 전에 MikTeX를 설치했지만:
- Graphics.sty (2014/10/28 v1.0p)
- trig.sty (1999/03/16 v1.09)
- graphic.cfg (2007/01/18 v1.5)
그런 다음 내 목록에서 허용된 답변에 없는 패키지가 하나 있습니다.
- moderncvcolorblue.sty (2015/07/28 v2.0.0)
그리고 마지막으로 내 목록에는 없는 몇 가지 패키지가 있습니다.
- moderncvstylecasual.sty 2015/07/28 v2.0.0
- moderncviconsawesome.sty 2015/07/28 v2.0.0
- Fontawesome.sty 2015/07/30 v4.4.0
- Fontawesomesymbols-generic.tex
- Fontawesomesymbols-pdftex.tex
- moderncvheadii.sty 2015/07/28 v2.0.0
- moderncvbodyi.sty 2015/07/28 v2.0.0
- ufontawesometwo.fd 2015/07/30
- moderncvfooti.sty 2015/07/28 v2.0.0
- moderncvcolorblue.sty 2015/07/28 v2.0.0
- epstopdf-base.sty 2010/02/09 v2.5
- grfext.sty 2010/08/19 v1.1
- ot1lmr.fd 2009/10/30 v1.6
- omllmm.fd 2009/10/30 v1.6
- omslmsy.fd 2009/10/30 v1.6
- omxlmex.fd 2009/10/30 v1.6
- umvs.fd
- mt-mvs.cfg 2006/07/05 v1.1
- omslmr.fd 2009/10/30 v1.6
또한 내 MikTex 설정이 다르게 보입니다.
나보다 더 많은 것을 배우는 사람이 있습니까?
답변1
현재 MiKTeX 2.9를 사용하면 pdflatex
오류 없이 다음 MWE 로 컴파일할 수 있으며 moderncv
클래스의 오류로 인해 발생하는 세 가지 경고만 가능합니다.
MWE와의 차이점은 두 줄을 추가했다는 것입니다.
\moderncvicons{marvosym} % marvosym awesome % for pdflatex!
\setlength{\footskip}{37pt} % to avoid warning ...
fontawesome
및 에 대한 경고를 제거합니다 \footskip is too small
.
사용된 패키지 및 버전의 결과 목록을 비교하면
*File List*
moderncv.cls 2015/07/28 v2.0.0 modern curriculum vitae and letter document class
size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
etoolbox.sty 2015/08/02 v2.2a e-TeX tools for LaTeX (JAW)
ifthen.sty 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO)
ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
colortbl.sty 2012/02/13 v1.0a Color table columns (DPC)
array.sty 2014/10/28 v2.4c Tabular extension package (FMi)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
lmodern.sty 2009/10/30 v1.6 Latin Modern Fonts
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
graphicx.sty 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
graphics.sty 2016/01/03 v1.0q Standard LaTeX Graphics (DPC,SPQR) <============
trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
fancyhdr.sty
tweaklist.sty
calc.sty 2014/10/28 v4.3 Infix arithmetic (KKT,FJ)
xparse.sty 2016/01/19 v6377 L3 Experimental document command parser
expl3.sty 2016/01/19 v6377 L3 programming layer (loader)
expl3-code.tex 2016/01/19 v6377 L3 programming layer
l3pdfmode.def 2015/11/11 v6250 L3 Experimental driver: PDF mode
microtype.sty 2013/05/23 v2.5a Micro-typographical refinements (RS)
microtype-pdftex.def 2013/05/23 v2.5a Definitions specific to pdftex (RS)
microtype.cfg 2013/05/23 v2.5a microtype main configuration file (RS)
moderncvcollection.sty 2015/07/28 v2.0.0 moderncv collections
moderncvcompatibility.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter compatibility patches
moderncvstylecasual.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter style scheme: casual
moderncviconsawesome.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter icons: awesome
fontawesome.sty 2015/07/30 v4.4.0 font awesome icons
fontawesomesymbols-generic.tex
fontawesomesymbols-pdftex.tex
moderncvheadii.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter header variant: 2
moderncvbodyi.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter body variant: 1
ufontawesometwo.fd 2015/07/30 Font definitions for U/fontawesometwo.
moderncvfooti.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter footer variant: 1
moderncvcolorblue.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter color scheme: blue
geometry.sty 2010/09/12 v5.6 Page Geometry
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
geometry.cfg
moderncviconsmarvosym.sty 2015/07/28 v2.0.0 modern curriculum vitae and letter icons: marvosym
tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151)
pgf.sty 2015/08/07 v3.0.1a (rcs-revision 1.15)
pgfrcs.sty 2015/08/07 v3.0.1a (rcs-revision 1.31)
everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
pgfrcs.code.tex
pgfcore.sty 2010/04/11 v3.0.1a (rcs-revision 1.7)
pgfsys.sty 2014/07/09 v3.0.1a (rcs-revision 1.48)
pgfsys.code.tex
pgfsyssoftpath.code.tex 2013/09/09 (rcs-revision 1.9)
pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4)
pgfcore.code.tex
pgfcomp-version-0-65.sty 2007/07/03 v3.0.1a (rcs-revision 1.7)
pgfcomp-version-1-18.sty 2007/07/23 v3.0.1a (rcs-revision 1.1)
pgffor.sty 2013/12/13 v3.0.1a (rcs-revision 1.25)
pgfkeys.sty
pgfkeys.code.tex
pgfmath.sty
pgfmath.code.tex
pgffor.code.tex
tikz.code.tex
hyperref.sty 2012/11/06 v6.83m Hypertext links for LaTeX
hobsub-hyperref.sty 2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty 2012/04/25 v1.12 Bundle oberdiek, subset generic (HO)
hobsub.sty 2012/04/25 v1.12 Construct package bundles (HO)
intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO)
etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO)
kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO)
pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO)
bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO)
uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO)
letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
hopatch.sty 2011/06/24 v1.1 Wrapper for package hooks (HO)
xcolor-patch.sty 2011/01/30 xcolor patch
atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO)
atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO)
refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO)
hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
auxhook.sty 2011/03/04 v1.3 Hooks for auxiliary files (HO)
kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO)
pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
puenc.def 2012/11/06 v6.83m Hyperref: PDF Unicode definition (HO)
hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX
rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
supp-pdf.mkii
epstopdf-base.sty 2010/02/09 v2.5 Base part for package epstopdf
grfext.sty 2010/08/19 v1.1 Manage graphics extensions (HO)
mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman (RS)
t1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern
nameref.sty 2012/10/27 v2.43 Cross-referencing by name of section
gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)
295654.out
295654.out
ot1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
omllmm.fd 2009/10/30 v1.6 Font defs for Latin Modern
omslmsy.fd 2009/10/30 v1.6 Font defs for Latin Modern
omxlmex.fd 2009/10/30 v1.6 Font defs for Latin Modern
umvs.fd
mt-mvs.cfg 2006/07/05 v1.1 microtype config. file: Marvosym Euro (RS)
omslmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
***********
내 시스템이 graphics.sty
귀하의 시스템보다 최신 버전을 사용했기 때문에 귀하의 문제는 최신 MiKTeX 시스템이 아니거나 귀하의 목록에 나열되지 않은 다른 패키지일 수 있습니다.
복사해주세요나의MWE를 따라 시스템에서 컴파일하십시오. 오류 없이 컴파일되어야 합니다. 그렇지 않다면 시스템에 결함이 있는 것 같습니다. 결과 목록을 위의 목록과 비교하십시오.
변경된 MWE:
\listfiles
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\email{[email protected]}
\homepage{www.johndoe.com}
\moderncvicons{marvosym} % marvosym awesome % for pdflatex! <===========
\setlength{\footskip}{37pt} % to avoid warning ... <===========
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\end{document}
로컬 texmf 트리를 사용하고 있는지 확인하려면 MiKTeX 설정을 열고 루트를 선택한 후 다음 이미지와 비교하세요.
빨간색 화살표로 표시된 내가 사용한 localtexmf 트리를 볼 수 있습니다.
어떤 것이 사용되었는지 확인하려면 moderncv
로그 파일을 확인하세요. 처음에는 다음과 같은 내용을 찾을 수 있습니다.
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2016.1.29) 26 FEB 2016 16:04
entering extended mode
**./295654.tex
(295654.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9n> and hyphenation patterns for 69 languages loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\moderncv\moderncv.cls"
Document Class: moderncv 2015/07/28 v2.0.0 modern curriculum vitae and letter document class
마지막 줄에서 내가 사용한 디렉토리를 볼 수 있습니다 moderncv.cls
.
귀하가 제공한 메시지는 \name already defined
귀하의 코드나 사용된 클래스에서 잘못된 명령이 사용되었다는 의미입니다.
\newcommand*{\name}[1]{{\namefont#1}}
현재 클래스 moderncv
명령은 \name
이름과 성이라는 두 개의 매개변수를 가져오도록 정의되어 있습니다. 다른 사항이 도움이 되지 않으면 이 줄을 검색하여 \newcommand*{\name}[1]{{\namefont#1}}
주석 처리해야 합니다.
현재 MiKTeX와 현재 moderncv
컴파일 중인 MWE 결과를 사용하면 오류 없이 pdflatex mwe.tex
.
또 다른 시도는 MiKTeX를 다시 설치하는 것입니다(설치하는 것뿐만 아니라 나중에 MiKTeX 패키지 관리자를 실행하여 모든 패키지가 최신 상태인지 확인). 그건 아닌거같아지금 이 순간 내가 볼 수 있는 한.
주어진 정보로는 더 이상 도움을 드릴 수 없습니다.