考虑这个文件
\documentclass{scrreport}
\usepackage[activate = true]{microtype}
\begin{document}
Hi
\end{document}
如果我编译此文件时pdflatex test.tex
没有发生任何错误,并且我得到一个功能齐全的 pdf 文件。
但是,如果我切换到latexmk test
,它会尝试制作字体(?):
(C:\Users\lenni\AppData\Local\Programs\MiKTeX\tex/latex/microtype\mt-cmr.cfg)Running miktex-makemf.exe...
Sorry, but miktex-makemf did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\lenni\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log
Running miktex-hbf2gf.exe...
Couldn't open `cmr10+.cfg'
hbf2gf (CJK ver. 4.8.4)
Sorry, but miktex-maketfm did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\lenni\AppData\Local\MiKTeX\miktex\log\miktex-maketfm.log
! Font csnameendcsname=cmr10+20 at 10.95pt not loadable: Metric (TFM) file not
found.
<to be read again>
relax
l.5 \begin{document}
? x
No pages of output.
Transcript written on doku.log.
Latexmk: Getting log file 'doku.log'
Latexmk: Examining 'doku.fls'
PWD line not in UTF-8
Latexmk: Examining 'doku.log'
Latexmk: Log file says no output from latex
Latexmk: For rule 'latex', no output was made
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
latex: Command for 'latex' gave return code 1
Refer to 'doku.log' for details
Latexmk: If appropriate, the -f option can be used to get latexmk
to try to force complete processing.
Reverting Windows console CPs to (in,out) = (437,65001)
但我没有得到任何 pdf 输出。
这是怎么回事?我该如何停止latexmk
生成不必要的字体?
答案1
Ulrike Fischer 的评论解决了我的问题。我还能够将 -pdf 选项保存在本地 latexmkrc 中,如下所示:
$pdf_mode = 1;