我今天遇到了一个问题(我认为) 。当我尝试构建 TeX 文档时,latexmk
我无法生成任何输出。特别是,尝试在 PowerShell 中运行以构建我的文件的 PDF会在 PowerShell 中产生以下内容(但目录中没有生成任何日志/辅助文件或 PDF)。latekmk
latexmk
test.tex
PS C:\Users\username\Desktop> latexmk.exe -pdf .\test.tex
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 29 May 2021, version: 4.74b.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
Changed files, or newly in use since previous run(s):
'./test.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -recorder ".\test.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8)
entering extended mode
(test.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-08-27>
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalo
ne.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/tools\shellesc.sty)
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/iftex\ifluatex.st
y (C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty
))
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/xkeyval\xkeyval.sty
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkeyval.t
ex
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkvutils.
tex
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\keyval.te
x))))
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalo
ne.cfg)
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo)))
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend
-pdftex.def) (test.aux) [1{C:/Users/username/AppData/Local/MiKTeX/pdftex/confi
g/pdftex.map}] (test.aux) )<C:/Users/username/AppData/Local/Programs/MiKTeX/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 10895 bytes).
Transcript written on test.log.
Latexmk: Examining 'test.log'
=== TeX engine is 'pdfTeX'
Latexmk: Log file says output to 'test.pdf'
Latexmk: All targets (test.pdf) are up-to-date
如果我pdflatex -recorder test.tex
在 PowerShell 中运行,我会在 PowerShell 中得到以下输出:
PS C:\Users\username\Desktop> pdflatex -recorder .\test.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8)
entering extended mode
(test.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-08-27>
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalo
ne.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/tools\shellesc.sty)
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/iftex\ifluatex.st
y (C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty
))
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/xkeyval\xkeyval.sty
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkeyval.t
ex
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\xkvutils.
tex
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/generic/xkeyval\keyval.te
x))))
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/standalone\standalo
ne.cfg)
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo)))
(C:\Users\username\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend
-pdftex.def) (test.aux) [1{C:/Users/username/AppData/Local/MiKTeX/pdftex/confi
g/pdftex.map}] (test.aux) )<C:/Users/username/AppData/Local/Programs/MiKTeX/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 11375 bytes).
Transcript written on test.log.
但是,这成功生成了所需的 PDF 和相应的日志/辅助文件。
我真的不明白这里出了什么问题,并希望得到任何指导。