我在运行 Ubuntu 20.04 的笔记本电脑上安装了完整的 TeX Live,使用以下命令:
$ sudo apt install texlive-full
安装后,我可以运行 LaTeX、PdfLaTeX 等,但每当我尝试指定字体时,编译都会失败。
例如:test1.tex
包含
\documentclass{article}
\usepackage{tgbonum}
\begin{document}
Hello world \LaTeX
\end{document}
编译它会产生以下输出:
$ pdflatex test1
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test1.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/tex-gyre/tgbonum.sty
(/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
No file test1.aux.
(/usr/share/texmf/tex/latex/tex-gyre/ot1qbk.fd) [1{/var/lib/texmf/fonts/map/pdf
tex/updmap/pdftex.map}] (./test1.aux)
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+420/600 --dpi 420 rm-qbkr
mktexpk: don't know how to create bitmap font for rm-qbkr.
mktexpk: perhaps rm-qbkr is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
)
!pdfTeX error: pdflatex (file rm-qbkr): Font rm-qbkr at 420 not found
==> Fatal error occurred, no output PDF file produced!
如能帮助修复安装我们将不胜感激!