在 Ubuntu 10.4LTS
上,我尝试使用 microtype
包装在 memoir
中文档类,例如:
\usepackage[final,expansion=true]{microtype}
但是,当我尝试编译它时(使用 rubber
、latexmk
或其他),我收到如下错误:
job.tex:72: Font csnameendcsname=rm-lmr10+20 at 10.95pt not loadable: Metric (TFM) file not found.
job.tex:72: leading text: \parbox{5in}{Abstract!}
job.tex:72: Font csnameendcsname=rm-lmr10-20 at 10.95pt not loadable: Metric (TFM) file not found.
job.tex:72: leading text: \parbox{5in}{Abstract!}
job.tex:80: Font csnameendcsname=rm-lmr10+20 at 10.0pt not loadable: Metric (TFM) file not found.
job.tex:80: leading text: ...box{11cm}{\noindent{}All rights reserved.}
job.tex:80: Font csnameendcsname=rm-lmr10-20 at 10.0pt not loadable: Metric (TFM) file not found.
job.tex:80: leading text: ...box{11cm}{\noindent{}All rights reserved.}
请注意,我遗漏了许多可能交互的代码,但导致此错误的行是包含 microtype
包。
我正在使用 \usepackage{lmodern}
和 \usepackage[T1]{fontenc}
,但是当我忽略它们时问题仍然存在,并且字体名称相应地从 lmr10
更改为默认的 cm10
。
这段代码很容易与 Mac OS X 上的 TeXShop 一起工作,但它似乎不能(很容易地)在 Ubuntu 上工作。我只是不太了解如何在 Ubuntu 上设置字体来解决这个问题,我非常有义务就如何解决此类错误提供意见。
谢谢。
布莱恩
最佳答案
在某些情况下,如果你得到一个
Metric (TFM) file not found
可以通过以下方式解决:
sudo apt-get install texlive-fonts-recommended
关于ubuntu - pdfLaTeX 微型包的字体错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3191092/