我在使用 fontspec 时遇到了问题。当我尝试构建简单文档时:
\documentclass[11pt, a4paper]{article}
\usepackage{fontspec}
\begin{document}
aaa
\end{document}
我收到一个错误:
P:\Dokumenty\Szablony\xelatex_test>xelatex.exe document.tex
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9)
entering extended mode
(P:\Dokumenty\Szablony\xelatex_test\document.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, arabic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, galician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, icelandic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, ngerman-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usenglishmax, welsh, loaded.
("P:\Programy\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("P:\Programy\MiKTeX 2.9\tex\latex\base\size11.clo"))
("P:\Programy\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\l3kernel\expl3.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\l3kernel\expl3-code.tex"
("P:\Programy\MiKTeX 2.9\tex\latex\misc\etex.sty"))
("P:\Programy\MiKTeX 2.9\tex\latex\l3kernel\l3unicode-data.def")
("P:\Programy\MiKTeX 2.9\tex\latex\l3kernel\l3xdvipdfmx.def"))
("P:\Programy\MiKTeX 2.9\tex\latex\l3packages\xparse\xparse.sty")
("P:\Programy\MiKTeX 2.9\tex\latex\fontspec\fontspec-patches.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\base\fixltx2e.sty"))
("P:\Programy\MiKTeX 2.9\tex\latex\fontspec\fontspec-xetex.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\base\fontenc.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\euenc\eu1enc.def")
("P:\Programy\MiKTeX 2.9\tex\latex\euenc\eu1lmr.fd"))
("P:\Programy\MiKTeX 2.9\tex\xelatex\xunicode\xunicode.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\tipa\t3enc.def"
("P:\Programy\MiKTeX 2.9\tex\latex\euenc\eu1lmss.fd"))
("P:\Programy\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("P:\Programy\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("P:\Programy\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("P:\Programy\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
("P:\Programy\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 }
? H
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a coding error.
|
| LaTeX has been asked to set the property '.choice_code:n' for key
| 'fontspec-renderer/Renderer': this property is not defined.
|...............................................
?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "kernel/property-unknown"
!
! The key property '.generate_choices:n' is unknown.
!
! See the LaTeX3 documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.1173 }
?
! Emergency stop.
!...............................................
l.1173 }
No pages of output.
Transcript written on document.log.
P:\Dokumenty\Szablony\xelatex_test>
这是 MiKTeX 的全新安装
[编辑]
对于那些有类似问题的人来说 - 更新所有软件包会有所帮助。