XeTeX 无法在 Ubuntu 10.04 上运行?

XeTeX 无法在 Ubuntu 10.04 上运行?

当我尝试在 Ubuntu 10.04 中编译 LaTeX 文档时xelatex收到以下错误消息:

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, ngerman, german, german-x-2009-06-19, ngerman-x-2009-06-19, loaded.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-texlive/tex/latex/tools/calc.sty)
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-texlive/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf-texlive/tex/generic/xkeyval/keyval.tex)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/xelatex/euenc/eu1enc.def)
(/usr/share/texmf-texlive/tex/xelatex/euenc/eu1lmr.fd)kpathsea: Invalid fontname
 `[lmroman10-regular]', contains '['

! Font EU1/lmr/m/n/10=[lmroman10-regular]:mapping=tex-text at 10.0pt not loadab
le: Metric (TFM) file or installed font not found.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont

怎么了?

答案1

这是 Ubuntu 10.04 的 textlive-xetex 包中的一个错误:它不依赖于包lmodern(请参阅Launchpad 错误报告)。要修复此问题,只需安装该lmodern包,例如通过

sudo apt-get install lmodern

(这也会影响 Debian Lenny:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576599

答案2

我已经使用 ISO 映像文件在 Ubuntu 10.04 上安装了 TeXLive2010,没有出现任何错误,一切运行正常。看来,错误出在您的 TeXLive 安装上!尝试 ISO 映像。

相关内容