
當我使用 Makefile 建立專案時,我得到以下資訊:
(see the transcript file for additional information)
Output written on build/report.pdf (51 pages).
SyncTeX written on build/report.synctex.gz.
Transcript written on build/report.log.
=== TeX engine is 'XeTeX'
Latexmk: Index file 'build/report.idx' was written
Latexmk: Found input bbl file 'build/report.bbl'
Latexmk: Log file says output to 'build/report.pdf'
Latexmk: Found biber source file(s) [bibliography.bib build/report.bcf]
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 1
Refer to 'build/report.log' for details
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs, or warnings treated as errors.
make: *** [Makefile:20: all] Error 12
重複3-4次後make
,我最終得到了這個:
$ make
latexmk -pdf
Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67.
Latexmk: All targets () are up-to-date
我.latexmkrc
的如下:
system ("mkdir -p build/figures");
@default_files = ('report.tex');
@cus_dep_list = (@cus_dep_list, "glo gls 0 makenomenclature");
sub makenomenclature {
system("makeindex $_[0].glo -s nomencl.ist -o $_[0].gls"); }
@generated_exts = (@generated_exts, 'glo');
# Custom dependency and function for nomencl package
add_cus_dep( 'nlo', 'nls', 0, 'makenlo2nls' );
sub makenlo2nls {
system( "makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\"" );
}
$out_dir = 'build';
$pdflatex = 'xelatex --synctex=1 -interaction=nonstopmode -shell-escape';
$latex = 'latex --synctex=1 -interaction=nonstopmode -shell-escape';
當我查看時,build/report.log
我沒有看到任何錯誤。
為什麼是我的問題?