XeLaTeX 编译 Alessandro Plasmati 的简历示例失败

XeLaTeX 编译 Alessandro Plasmati 的简历示例失败

我正在尝试撰写一份类似此资源的简历链接在这里!,但编译时遇到问题。你能帮我解决一下吗?

相关已知Stackexchange 中的问题

  1. 在 Win XP、MikTex 2.9 和 TexWorks 编辑器(exLateX 已经存在)
  2. 我安装了所需的字体和“fontspec”最新版本(2011 年 2 月版本)。
  3. 尝试编译网站上提供的 tex 文件。
  4. 然而,最初我遇到了“expl3”错误,通过安装两个包“l3kernel”和“l3packages”我能够克服这个问题。
  5. 再次,现在我看到这个错误......

输出

This is XeTeX, Version 3.1415926-2.2-0.9997.4 (MiKTeX 2.9)  
entering extended mode
(D:\Resume\resume_03.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:\Program Files\MikTex\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("D:\Program Files\MikTex\tex\latex\base\size10.clo"))
("D:\Program Files\MikTex\tex\latex\marvosym\marvosym.sty")
("D:\Program Files\MikTex\tex\latex\fontspec\fontspec.sty"
("D:\Program Files\MikTex\tex\latex\l3kernel\expl3.sty"
("D:\Program Files\MikTex\tex\latex\l3kernel\l3names.sty"
("D:\Program Files\MikTex\tex\latex\l3kernel\l3bootstrap.sty"))
("D:\Program Files\MikTex\tex\latex\misc\etex.sty")
("D:\Program Files\MikTex\tex\latex\tools\calc.sty")
("D:\Program Files\MikTex\tex\latex\graphics\color.sty"
("D:\Program Files\MikTex\tex\latex\00miktex\color.cfg")
("D:\Program Files\MikTex\tex\xelatex\xetex-def\xetex.def"))
("D:\Program Files\MikTex\tex\latex\graphics\graphics.sty"
("D:\Program Files\MikTex\tex\latex\graphics\trig.sty")
("D:\Program Files\MikTex\tex\latex\00miktex\graphics.cfg"))
("D:\Program Files\MikTex\tex\latex\l3kernel\l3basics.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3expan.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3tl.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3seq.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3int.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3quark.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3prg.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3clist.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3token.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3prop.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3msg.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3io.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3file.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3skip.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3keys.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3fp.sty")
("D:\Program Files\MikTex\tex\latex\l3kernel\l3box.sty")
("D:\Program Files\MikTex\tex\latex\xpackages\xcoffins\l3coffins.sty"
("D:\Program Files\MikTex\tex\latex\graphics\graphicx.sty"
("D:\Program Files\MikTex\tex\latex\graphics\keyval.sty"))
("D:\Program Files\MikTex\tex\latex\xcolor\xcolor.sty"
("D:\Program Files\MikTex\tex\latex\00miktex\color.cfg"))
("D:\Program Files\MikTex\tex\latex\tools\trace.sty")
! Undefined control sequence.
<argument> \filename
l.60 ...\filedate}{\fileversion}{\filedescription}
? 

答案1

请确保您的 fontspec 和 l3* 软件包的版本是最新的。文件 cv.tex 引用了一些您可能已经拥有或尚未拥有的字体。Fontin可以从以下网址免费下载该字体http://www.exljbris.com/fontin.html;确保获取第三种类型,即 Opentype。(忽略关于 opentype 仅适用于 PC 的部分。)文件 cv.tex 中还有一个水印功能,它需要一个名为的字体Baskerville。我想说,除非您已经拥有该字体(它不是免费的!),否则您可以注释掉或删除该代码段(第 45-55 行)。进行这些调整后,我不明白为什么该文件无法在您的系统上编译。

话虽如此,我同意 egreg 的观点,认为模板的布局并不那么令人印象深刻。首先,我肯定不会使用这么多小写字母的文本。祝你 TeXing 愉快!

相关内容