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。

相關內容