【发布时间】:2017-10-16 11:31:16
【问题描述】:
我想在我的 Arch Linux 上使用 pandoc 从 markdown 生成一个 pdf 文档。
每当我想生成 pdf 文件时,我都会收到此错误消息。
markus@markus-pc:~/workspace/github.com/volker-raschek/tgdb_ws1617$ pandoc uebung_02.md -f markdown_github --latex-engine=pdflatex -o uebung_02.pdf
! pdfTeX error (font expansion): auto expansion is only possible with scalable
fonts.
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
\fi \fi
l.163 \begin{Highlighting}[]
pandoc: Error producing PDF
所以,错误消息说得更多,这是一个乳胶错误,但我不知道如何在我的 pdf 生成期间指定 pandoc 一些乳胶选项以使用乳胶 lm 包。
same error 的其他线程,但不是 pandoc。
【问题讨论】:
-
好的,我已经修好了。需要在arch linux texlive-fontsextra上用pacman安装。
-
随意发布这个作为答案并接受它......
-
同样的事情,但我不是从 pacman 安装 texlive,而是从 CTAN tlmgr 安装的...所以我不知道应该安装 texlive-fontsextra 中的哪种字体来解决问题!
-
这是arch linux repo上的PKGBUILD文件。 git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/… 有一个文件
texlive-fontsextra.maps,其中包含所有字体。也许你可以尝试在你的texlive-fontsextra包和 arch linux 包之间做一个差异来设置丢失的字体。