我刚刚丢了笔记本电脑,于是在新笔记本电脑上重新安装了 Ubuntu(12.04)(texlive 2009,因为它是预装的)。幸运的是,我的本地 TEXMF 树已通过 Ubuntu 1 备份。安装后,我一直试图编译一些以前制作的 lyx 文档,但遇到了各种问题。大多数问题我都可以通过谷歌搜索并通过 CTAN 存储库重新安装软件包来解决。我设法限制了错误的数量,直到我无法解决最后一个错误。现在,当我尝试编译我的文档时,Lyx 给出以下错误:
Font \zf@basefont=Arial at 10.0pt not loadable: Metric (TFM) file or installe
Undefined control sequence.
Font \zf@basefont=Arial at 10.0pt not loadable: Metric (TFM) file or installe
Font \@tempfontb=Arial at 10.0pt not loadable: Metric (TFM) file or installed
Font EU1/Arial(0)/m/n/7.5=Arial:letterspace=11.45; at 7.5pt not loadable: Met
当我通过终端和以下命令尝试导出(普通)乳胶文档时xelatex filename.tex
,它会吐出以下输出:
This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) entering extended mode (./TOR-Awene.tex LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, 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/latex/base/inputenc.sty (/usr/share/texmf-texlive/tex/latex/base/latin9.def)) (/home/ilja/texmf/tex/latex/briefpapier/Header-GB.tex (/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty) (/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty) (/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty) (/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg)) (/usr/share/texmf/tex/latex/xcolor/xcolor.sty (/etc/texmf/tex/latex/config/color.cfg) (/usr/share/texmf-texlive/tex/xelatex/xetex-def/xetex.def)) (/usr/share/texmf-texlive/tex/latex/titlesec/titlesec.sty) (/usr/share/texmf-texlive/tex/latex/tools/array.sty) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty) (/etc/texmf/tex/latex/config/graphics.cfg))) (/home/ilja/texmf/tex/latex/lipsum/lipsum.sty) (/usr/share/texmf-texlive/tex/latex/fancyhdr/fancyhdr.sty) (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty (/usr/share/texmf-texlive/tex/latex/base/t1enc.def)) (/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/latex/base/fontenc.sty (/usr/share/texmf-texlive/tex/xelatex/euenc/eu1enc.def) (/usr/share/texmf-texlive/tex/xelatex/euenc/eu1lmr.fd)) fontspec.cfg loaded. (/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg)) (/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty Package: `setspace' 6.7 <2000/12/01> ) (/usr/share/texmf-texlive/tex/latex/soul/soul.sty) (/usr/share/texmf-texlive/tex/latex/tools/multicol.sty) (/usr/share/texmf-texlive/tex/latex/paralist/paralist.sty) (/usr/share/texmf-texlive/tex/latex/pbox/pbox.sty (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)) kpathsea: Running mktextfm Arial /usr/share/texmf/web2c/mktexnam: Could not map source abbreviation A for Arial. /usr/share/texmf/web2c/mktexnam: Need to update /usr/share/texmf-texlive/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Arial This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)
kpathsea: Running mktexmf Arial ! I can't find file `Arial'. <*> ...e:=ljfour; mag:=1; nonstopmode; input Arial
Please type another input file name ! Emergency stop. <*> ...e:=ljfour; mag:=1; nonstopmode; input Arial
Transcript written on mfput.log. grep: Arial.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Arial' failed to make Arial.tfm. kpathsea: Appending font creation commands to missfont.log.
! Font \zf@basefont=Arial at 10.0pt not loadable: Metric (TFM) file or installe d font not found. \zf@fontspec ...ntname \zf@suffix " at \f@size pt
\unless \ifzf@icu \zf@set@... l.27 \newfontface\arial[LetterSpace=11.45]{Arial}
? ^C! Interruption. <to be read again>
\let l.27 \newfontface\arial[LetterSpace=11.45]{Arial}
我对寻找解决方案的自力更生就此止步了。谷歌搜索没有帮助,而乳胶抱怨标准字体(Arial)的事实让我有点困惑。
答案1
Ubuntu 没有 Arial 字体,只有其免费替代品。将 Arial 更改为 Sans、FreeSans 或其他已安装的字体。