序言中的以下代码在我的台式机上给我带来了麻烦,但在笔记本电脑上却没有问题(我在两台电脑上都使用 Ubuntu 14.04)。如果我删除它,我发现自己无法在整个文档中使用 \widecheck:
\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<5> <6> <7> <8> <9> <10>
<10.95> <12> <14.4> <17.28> <20.74> <24.88>
mathx10
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}
\DeclareMathAccent{\widecheck}{0}{mathx}{"71}
具体来说,这个错误重复多次,导致编译时出现:
This is METAFONT, Version 2.718281 (TeX Live 2013/Debian)
kpathsea: Running mktexmf mathx10
! I can't find file `mathx10'. <*> ...=ljfour; mag:=1; nonstopmode; input mathx10 Please type another input file name ! Emergency stop. <*> ...=ljfour; mag:=1; nonstopmode; input mathx10 Transcript written on mfput.log.
grep: mathx10.log: File o directory non esistente
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input mathx10' failed to make mathx10.tfm. kpathsea: Running mktextfm mathx10
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input mathx10
然后,经过编译后,基本上返回 PDF,除了 \widecheck 符号外,还有这个,具有不同的尺寸和线条:
! Font U/mathx/m/n/10.95=mathx10 at 10.95pt not loadable: Metric (TFM) file not
found.
<to be read again>
relax
l.236 \begin{equation}
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
我尝试将所有 TFM 文件从笔记本电脑复制到台式机(实际上,笔记本电脑上大约有 18,000 个此类文件,而台式机上只有 3,000 多个),但完全重启后,错误仍然存在。我该如何解决它?
提前致谢。