LatexMK 错误地尝试构建 minted 使用的文件

LatexMK 错误地尝试构建 minted 使用的文件

我正在使用 Makefile 中的 LatexMK 和 -use-make 选项。这是一个非常棒的工具,可以自动编译我的文档,同时确保所有图像都是最新的。

尝试编译使用 minted 包的文档时,我收到以下错误。请注意,为了保持输出简洁,PDF 之前已经构建过,因此实际上无需执行任何操作。这些错误总是出现在输出的末尾。

PDF 似乎构建正确,但这使得很难查看是否存在其他错误,因为 pdflatex 总是返回错误。从 IDE 运行它时这也是一个问题。

$ make
latexmk -pdf -pdflatex="pdflatex -shell-escape -interaction=nonstopmode" -use-make  report.tex
Latexmk: This is Latexmk, John Collins, 10 Nov 2013, version: 4.39.
**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
Latexmk: 'pdflatex': source file 'report.aex' doesn't exist. I'll try making it...
------------
Running 'make "report.aex"'
------------
make[1]: Entering directory '/directory/of/my/tex/file'
make[1]: *** No rule to make target 'report.aex'.  Stop.
make[1]: Leaving directory '/directory/of/my/tex/file'
Latexmk: 'pdflatex': source file 'report.out.pyg' doesn't exist. I'll try making it...
------------
Running 'make "report.out.pyg"'
------------
make[1]: Entering directory '/directory/of/my/tex/file'
make[1]: *** No rule to make target 'report.out.pyg'.  Stop.
make[1]: Leaving directory '/directory/of/my/tex/file'
Latexmk: 'pdflatex': source file 'report.pyg' doesn't exist. I'll try making it...
------------
Running 'make "report.pyg"'
------------
make[1]: Entering directory '/directory/of/my/tex/file'
make[1]: *** No rule to make target 'report.pyg'.  Stop.
make[1]: Leaving directory '/directory/of/my/tex/file'
Latexmk: 'pdflatex': source file 'report.w18' doesn't exist. I'll try making it...
------------
Running 'make "report.w18"'
------------
make[1]: Entering directory '/directory/of/my/tex/file'
make[1]: *** No rule to make target 'report.w18'.  Stop.
make[1]: Leaving directory '/directory/of/my/tex/file'
Latexmk: All targets (report.pdf) are up-to-date

在我看来,这些文件根本不需要由 LatexMK 处理。我不知道为什么它甚至认为需要它们来构建 PDF。

相关内容