pdfLaTeX microtype 包的字体错误

发布于 2024-09-08 07:03:38 字数 1445 浏览 5 评论 0原文

在 Ubuntu 10.4LTS 上,我尝试使用 microtype 包在 memoir 文档类,例如这样:

\usepackage[final,expansion=true]{microtype}

但是,当我尝试编译此文档时(使用 rubberlatexmk 或其他)我收到这样的错误:

job.tex:72:字体 csnameendcsname=rm-lmr10+20 位于 10.95pt 无法加载:公制 (TFM) 文件不可 找到了。

job.tex:72:前导文本: \parbox{5in}{摘要!}

job.tex:72:字体 csnameendcsname=rm-lmr10-20 位于 10.95pt 无法加载:公制 (TFM) 文件不可 找到了。

job.tex:72:前导文本: \parbox{5in}{摘要!}

job.tex:80:字体 csnameendcsname=rm-lmr10+20 在 10.0pt 无法加载:公制 (TFM) 文件不可 找到了。

job.tex:80:前导文本: ...盒子{11cm}{\noindent{}版权所有 保留。}

job.tex:80:字体 csnameendcsname=rm-lmr10-20 于 10.0pt 无法加载:公制 (TFM) 文件不可 找到了。

job.tex:80:前导文本: ...盒子{11cm}{\noindent{}版权所有 保留。}

注意,我省略了许多可能交互的代码,但导致此错误的一个活动行是包含 microtype 包。

我正在使用 \usepackage{lmodern}\usepackage[T1]{fontenc},但是当我忽略它们时,问题仍然存在,并且字体名称相应从 lmr10 更改为默认 cm10

此代码可以轻松地在 Mac OS X 上的 TeXShop 上运行,但它似乎不能(轻松地)在 Ubuntu 上运行。我只是不太了解如何在 Ubuntu 上设置字体来解决这个问题,我非常感谢您提供有关如何解决此类错误的信息。

谢谢。

布莱恩

On Ubuntu 10.4LTS I'm trying to use the microtype package in a memoir class of document, for example like this:

\usepackage[final,expansion=true]{microtype}

However, when I attempt to compile this (with rubber, latexmk or others) I get an error like this:

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.}

Note, I'm leaving out lots of code that may be interacting, but the one active line that results in this error is the inclusion of the microtype package.

I'm using \usepackage{lmodern} and \usepackage[T1]{fontenc}, but when I leave those out the problem still exists, and the font names are correspondingly changed from lmr10 to the default cm10.

This code works readily with TeXShop on Mac OS X, however it doesn't seem to work (readily) on Ubuntu. I just don't know enough about how to set up the fonts on Ubuntu to resolve this problem, and I'd be much obliged for input on how to resolve errors such as this.

Thank you.

Brian

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雨落星ぅ辰 2024-09-15 07:03:38

在某些情况下,如果您遇到问题,

 Metric (TFM) file not found

可以通过以下方法解决:

 sudo apt-get install texlive-fonts-recommended

In some cases, if you get an

 Metric (TFM) file not found

It can be solved with:

 sudo apt-get install texlive-fonts-recommended
痴情 2024-09-15 07:03:38

来自 microtype 手册:

*! Font csnameendcsname=cmr10+20 at 10.0pt not loadable: Metric (TFM) file not found.*

Such an error message could occur if you are trying to employ font expansion
while creating DVI output. Remember, that automatic font expansion only works
when running pdfTEX in PDF mode. Although expansion is also possible in DVI
mode, it requires that all instances of the expanded fonts exist on your TEX
system.

您是否使用 pdflatex 调用了 pdftex?如果没有,那么当你这样做时会发生什么?

From the microtype manual:

*! Font csnameendcsname=cmr10+20 at 10.0pt not loadable: Metric (TFM) file not found.*

Such an error message could occur if you are trying to employ font expansion
while creating DVI output. Remember, that automatic font expansion only works
when running pdfTEX in PDF mode. Although expansion is also possible in DVI
mode, it requires that all instances of the expanded fonts exist on your TEX
system.

Have you invoked pdftex with pdflatex? If not, what happens when you do?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文