刚刚开始 - miktex 无法编译

刚刚开始 - miktex 无法编译

我正在尝试在此处加载模板: http://www.latextemplates.com/template/wilson-resume-cv

我刚刚下载了 miktex,这里:http://miktex.org/download

我打开 cv13.tex,并尝试使用每种排版方式对其进行编译。但都不起作用。为什么会发生这种情况?我需要安装其他东西吗?

以下是控制台输出:

This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9 64-bit)
entering extended mode
(C:\Users\Daniel\Resume\cv_13.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> 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-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
(C:\Users\Daniel\Resume\structure.tex
("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files\MiKTeX 2.9\tex\xelatex\xetexconfig\geometry.cfg"))
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\fancyhdr\fancyhdr.sty)
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\lastpage\lastpage.sty

LaTeX Warning: You have requested release `2014/05/01' of LaTeX,
               but only release `2011/06/27' is available.

) ("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\url\url.sty))

Package hyperref Message: Driver (autodetected): hxetex.

("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\hxetex.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\puenc.def")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\stringenc.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\utf8.def"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.dfu")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ot1enc.dfu")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\omsenc.dfu")))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"))
("C:\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\expl3.sty
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\expl3-code.tex
("C:\Program Files\MiKTeX 2.9\tex\latex\misc\etex.sty"))
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3unicode-data.d
ef)
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\l3xdvipdfmx.def)
)
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3packages\xparse\xparse.
sty) ("C:\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec-patches.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fixltx2e.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec-xetex.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu1enc.def")
("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu1lmr.fd"))
("C:\Program Files\MiKTeX 2.9\tex\xelatex\xunicode\xunicode.sty"
*** you should *not* be loading the inputenc package
*** XeTeX expects the source to be in UTF8 encoding
*** some features of other encodings may conflict, resulting in poor output.

======================================================================
starting package maintenance...
installation directory: C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 8096508 bytes
going to install 181 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/tipa.tar.lzma...
8096508 bytes, 895.44 KB/Sec
extracting files from tipa.tar.lzma...
======================================================================
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\\tex\latex\tipa\t3enc.def
("C:\Program Files\MiKTeX 2.9\tex\latex\euenc\eu1lmss.fd"))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
======================================================================
starting package maintenance...
installation directory: C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 5957 bytes
going to install 2 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/xetex-def.tar.lzma...
5957 bytes, 118.72 KB/Sec
extracting files from xetex-def.tar.lzma...
======================================================================

(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\xelatex\xetex-def\xetex.def))))

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "kernel/property-unknown"
! 
! The key property '.choice_code:n' is unknown.
! 
! See the LaTeX3 documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.1173  }

? 

编辑:下面建议我重新安装 miktex。这样做之后,当我尝试打开文件时,控制台中出现此信息:

This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9)
entering extended mode
(C:\Users\Daniel\Resume\cv_13.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> 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-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\base\size10.clo"))
(C:\Users\Daniel\Resume\structure.tex
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\geometry\geometry.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex/latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex/generic\oberdiek\ifpdf.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex/generic\oberdiek\ifvtex.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex/generic\ifxetex\ifxetex.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex/xelatex\xetexconfig\geometry.cfg"))
======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 2e1ee451b3ebfd4ef4afc81bbceafc9f
going to download 60058 bytes
going to install 7 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/fancyhdr.tar.lzma...
60058 bytes, 222.16 KB/Sec
extracting files from fancyhdr.tar.lzma...
miktex-xetex.exe: Windows API error 5: Access is denied.

miktex-xetex.exe: Data: C:\Program Files (x86)\MiKTeX 2.9\doc/latex/fancyhdr
======================================================================


! LaTeX Error: File `fancyhdr.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:

再次尝试,得到以下信息:

This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9)
entering extended mode
(C:\Users\Daniel\Resume\cv_13.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> 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-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"))
(C:\Users\Daniel\Resume\structure.tex
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\xelatex\xetexconfig\geometry.cfg"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fancyhdr\fancyhdr.sty")
======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 2e1ee451b3ebfd4ef4afc81bbceafc9f
going to download 569115 bytes
going to install 8 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/lastpage.tar.lzma...
570129 bytes, 714.72 KB/Sec
visiting repository http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/...
repository type: remote package repository
loading lightweight database...
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...
156707 bytes, 671.20 KB/Sec
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
extracting files from lastpage.tar.lzma...
======================================================================

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\lastpage\lastpage.sty"

LaTeX Warning: You have requested release `2014/05/01' of LaTeX,
               but only release `2011/06/27' is available.

) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\auxhook.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg")
======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 273472 bytes
going to install 5 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/url.tar.lzma...
273472 bytes, 702.80 KB/Sec
extracting files from url.tar.lzma...
======================================================================

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\url\url.sty"))

Package hyperref Message: Driver (autodetected): hxetex.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hxetex.def"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\puenc.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\stringenc.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\inputenc.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\utf8.def"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ot1enc.dfu")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\omsenc.dfu")))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"
======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 7095258 bytes
going to install 43 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/l3kernel.tar.lzma...
7095258 bytes, 942.08 KB/Sec
extracting files from l3kernel.tar.lzma...
======================================================================

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\expl3.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\expl3-code.tex"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3unicode-data.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3kernel\l3xdvipdfmx.def"))
======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 1626854 bytes
going to install 10 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/l3packages.tar.lzma...
1626854 bytes, 779.55 KB/Sec
extracting files from l3packages.tar.lzma...
======================================================================

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\l3packages\xparse\xparse.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec-patches.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fixltx2e.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\fontspec\fontspec-xetex.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\euenc\eu1enc.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\euenc\eu1lmr.fd"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\xelatex\xunicode\xunicode.sty"
*** you should *not* be loading the inputenc package
*** XeTeX expects the source to be in UTF8 encoding
*** some features of other encodings may conflict, resulting in poor output.

======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 8096508 bytes
going to install 181 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/tipa.tar.lzma...
8096508 bytes, 746.06 KB/Sec
extracting files from tipa.tar.lzma...
======================================================================
("C:\Program Files (x86)\MiKTeX 2.9\\tex\latex\tipa\t3enc.def"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\euenc\eu1lmss.fd"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
======================================================================
starting package maintenance...
installation directory: "C:\Program Files (x86)\MiKTeX 2.9"
package repository: http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/
lightweight database digest: 208e535abbe6574359eb2ed66f1d726f
going to download 5957 bytes
going to install 2 file(s) (1 package(s))
downloading http://mirror.its.dal.ca/ctan/systems/win32/miktex/tm/packages/xetex-def.tar.lzma...
5957 bytes, 102.06 KB/Sec
extracting files from xetex-def.tar.lzma...
======================================================================

("C:\Program Files (x86)\MiKTeX 2.9\tex\xelatex\xetex-def\xetex.def"))))

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "kernel/property-unknown"
! 
! The key property '.choice_code:n' is unknown.
! 
! See the LaTeX3 documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.1173  }

? 

答案1

控制台输出显示了texmfTeX 文件的两个不同的 TDS ( ) 树:

("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty")
...
("C:\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"

(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\expl3.sty
(C:\Users\Daniel\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\expl3-code.tex
...

因此,MiKTeX 似乎是以管理员身份为所有用户安装的。如果用户仅以用户身份更新,则文件将进入该AppData区域。最新版本和旧版本的混淆会导致麻烦。

正如 Ulrike 指出的那样,更新应由管理员和用户共同完成,以保持版本同步。此外,由于最近才更新,因此需要重新生成 LaTeX 格式。

相关内容