Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdvipdfmx:fatal: Unable to find TFM file "<font-file-name>"; sometimes need install font packages manually #129

Closed
uninyhart opened this issue Jul 6, 2019 · 1 comment

Comments

@uninyhart
Copy link

uninyhart commented Jul 6, 2019

描述

有一种报错是缺字体,在最后一步使用 xdvipdfmk 转成 PDF 文件的时候可能会有

xdvipdfmx:fatal: Unable to find TFM file "<font-file-name>".

这个时候 TinyTeX 检测不到,需要手动安装。

样例

比如使用 mathptmx 宏包

\documentclass{article}

\usepackage{mathptmx}

\begin{document}    

$\mathcal{A}$

\end{document}  

在这里使用 \mathcal 需要额外安装字体宏包 rsfs

如果使用 pdflatex 编译报错:

! Font \csname\endcsname=rsfs10 at 10.0pt not loadable: Metric (TFM) file not found.

在这里如果使用 tinytex::pdflatex 编译是可以成功安装 rsfs

然而如果使用 tinytex::xelatex 不会报错,直接输出损坏的 PDF 文件。

如果使用 latexmk -xelatex 编译报错:

xdvipdfmx:fatal: Unable to find TFM file "rsfs10".
@uninyhart uninyhart changed the title xdvipdfmx:fatal: Unable to find TFM file "<font-file-name>"; need install font packages manually xdvipdfmx:fatal: Unable to find TFM file "<font-file-name>"; sometimes need install font packages manually Jul 6, 2019
@yihui yihui closed this as completed in acf8f79 Jul 8, 2019
@yihui
Copy link
Member

yihui commented Jul 8, 2019

已修正。谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants