我在 Windows 10 上使用 TeX Live 2023、TeX 3.141592653、LuaHBTeX 1.16.0 和 Latexmk 4.79。
简短的介绍:
我有一个 MWE,通过执行 可以顺利编译lualatex -> biber -> lualatex -> lualatex
。使用latexmk -lualatex
lualatex 的最后一次运行不会发生这种情况。如果lualatex
之后再次调用,则一切正常。
MWE 代码:
\documentclass{scrartcl}
\usepackage{biblatex}
\addbibresource{../Literatur/literatur_test.bib}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\section{Introduction}
Citation 1 \cite{Aas2021} and a label \label{test_label}
\section{Another Section}
Citation 2 \cite{Lundberg2017} and a reference \ref{test_label}
\printbibliography
\end{document}
文件的相关部分.bib
:
@Article{Aas2021,
author = {Kjersti Aas and Martin Jullum and Anders L{\o}land},
date = {2021},
journaltitle = {Artificial Intelligence},
title = {Explaining individual predictions when features are dependent: More accurate approximations to Shapley values},
doi = {10.1016/j.artint.2021.103502},
pages = {103502},
volume = {298},
abstract = {Explaining complex or seemingly simple machine learning models is an important practical problem. We want to explain individual predictions from such models by learning simple, interpretable explanations. Shapley value is a game theoretic concept that can be used for this purpose. The Shapley value framework has a series of desirable theoretical properties, and can in principle handle any predictive model. Kernel SHAP is a computationally efficient approximation to Shapley values in higher dimensions. Like several other existing methods, this approach assumes that the features are independent. Since Shapley values currently suffer from inclusion of unrealistic data instances when features are correlated, the explanations may be very misleading. This is the case even if a simple linear model is used for predictions. In this paper, we extend the Kernel SHAP method to handle dependent features. We provide several examples of linear and non-linear models with various degrees of feature dependence, where our method gives more accurate approximations to the true Shapley values.},
day = {31},
keywords = {Feature attribution, Shapley values, Kernel SHAP, Dependence},
publisher = {Elsevier {BV}},
year = {2021},
}
@InProceedings{Lundberg2017,
author = {Lundberg, Scott and Lee, Su-In},
booktitle = {Advances in Neural Information Processing Systems},
date = {2017},
title = {A unified approach to interpreting model predictions},
pages = {4765--4774},
}
手动尝试.tex
:我清理了所有内容,目录中只剩下文件。调用lualatex
该文件可得到(摘录):
[...]
No file Main.toc.
LaTeX Warning: Citation 'Aas2021' on page 1 undefined on input line 11.
LaTeX Warning: Citation 'Lundberg2017' on page 1 undefined on input line 14.
LaTeX Warning: Reference `test_label' on page 1 undefined on input line 14.
LaTeX Warning: Empty bibliography on input line 16.
[1{c:/MeineProgramme/TeXLive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
] (./Main.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Package rerunfilecheck Warning: File `Main.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) Main
(biblatex) and rerun LaTeX afterwards.
[...]
运行biber
仅给出有关 的警告8 characters of junk seen at toplevel
。
再次运行lualatex
得到(摘录):
[...]
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please rerun LaTeX.
[...]
lualatex
总共第三次运行不会产生任何警告并在 PDF 文件中产生预期的结果。
latexmk
试图.tex
:我清理了所有内容,目录中只有文件。运行时的latexmk -lualatex
预期行为是,它会按需要运行。产生的输出(完整)lualatex
:biber
L:[...]\Dokument>latexmk --lualatex
Initial Win CP for (console input, console output, system): (CP437, CP437, CP1252)
I changed them all to CP1252
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 7 Jan. 2023. Version 4.79.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Reasons for rerun
Category 'other':
Rerun of 'lualatex' forced or previously required
------------
Run number 1 of rule 'lualatex'
------------
------------
Running 'lualatex -recorder "Main.tex"'
------------
This is LuaHBTeX, Version 1.16.0 (TeX Live 2023)
restricted system commands enabled.
(./Main.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2022/10/12 v3.38 KOMA-Script document class (article)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrkbase.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrbase.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrlfile.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrlfile-hook.
sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrlogo.sty)))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/graphics/keyval.sty)))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrsize11pt.cl
o)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/typearea.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/biblatex.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.st
y
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/logreq/logreq.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/logreq/logreq.def))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/ifthen.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/url/url.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-dm.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-compat.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/biblatex.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)
) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx
) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/l3backend/l3backend-luatex
.def))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-case-expl3.st
y
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.s
ty)))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekey
s.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hycolor/hycolor.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/letltxmacro/letltxmacro.st
y) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/refcount/refcount.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/gettitlestring/gettitles
tring.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/intcalc/intcalc.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/puenc.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/bitset/bitset.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/bigintcalc/bigintcalc.st
y)) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty)
) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/hluatex.def
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/stringenc/stringenc.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/rerunfilecheck/rerunfilech
eck.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/uniquecounter/uniquecoun
ter.sty))) (./Main.aux)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
No file Main.bbl.
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/bookmark/bookmark.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/bookmark/bkm-pdftex.def))
No file Main.toc.
LaTeX Warning: Citation 'Aas2021' on page 1 undefined on input line 11.
LaTeX Warning: Citation 'Lundberg2017' on page 1 undefined on input line 14.
LaTeX Warning: Reference `test_label' on page 1 undefined on input line 14.
LaTeX Warning: Empty bibliography on input line 16.
[1{c:/MeineProgramme/TeXLive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
] (./Main.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Package rerunfilecheck Warning: File `Main.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) Main
(biblatex) and rerun LaTeX afterwards.
)
491 words of node memory still in use:
3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 65 glue_spec
, 4 attribute_list, 1 write nodes
avail lists: 1:2,2:135,3:75,4:4,5:42,6:15,7:562,9:99,10:1,11:42
<c:/MeineProgramme/TeXLive/2023/texmf-dist/fonts/opentype/public/lm/lmroman10-b
old.otf><c:/MeineProgramme/TeXLive/2023/texmf-dist/fonts/opentype/public/lm/lmr
oman10-regular.otf><c:/MeineProgramme/TeXLive/2023/texmf-dist/fonts/opentype/pu
blic/lm/lmsans10-bold.otf>
Output written on Main.pdf (1 page, 10772 bytes).
Transcript written on Main.log.
Latexmk: fls file doesn't appear to have been made.
Latexmk: Getting log file 'Main.log'
Latexmk: Examining 'Main.log'
Latexmk: Missing bbl file 'Main.bbl' in following:
No file Main.bbl.
Latexmk: Missing input file 'Main.toc' (or dependence on it) from following:
No file Main.toc.
Latexmk: References changed.
Latexmk: References changed.
Latexmk: Log file says output to 'Main.pdf'
Latexmk: Bibliography file(s) form .bcf file:
../Literatur/literatur_test.bib
Latexmk: applying rule 'biber Main'...
Rule 'biber Main': Reasons for rerun
Category 'other':
Rerun of 'biber Main' forced or previously required
------------
Run number 1 of rule 'biber Main'
------------
------------
Running 'biber "Main.bcf"'
------------
INFO - This is Biber 2.19
INFO - Logfile is 'Main.blg'
INFO - Reading 'Main.bcf'
INFO - Found 2 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex file '../Literatur/literatur_test.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source '../Literatur/literatur_test.bib'
INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US'
INFO - No sort tailoring available for locale 'en-US'
INFO - Writing 'Main.bbl' with encoding 'UTF-8'
INFO - Output to Main.bbl
Latexmk: Found biber source file(s) [../Literatur/literatur_test.bib Main.bcf]
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Reasons for rerun
Changed files or newly in use/created:
Main.aux
Main.bbl
Main.toc
------------
Run number 2 of rule 'lualatex'
------------
------------
Running 'lualatex -recorder "Main.tex"'
------------
This is LuaHBTeX, Version 1.16.0 (TeX Live 2023)
restricted system commands enabled.
(./Main.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2022/10/12 v3.38 KOMA-Script document class (article)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrkbase.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrbase.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrlfile.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrlfile-hook.
sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrlogo.sty)))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/graphics/keyval.sty)))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/scrsize11pt.cl
o)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/koma-script/typearea.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/biblatex.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.st
y
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/logreq/logreq.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/logreq/logreq.def))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/ifthen.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/url/url.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-dm.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-compat.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/biblatex.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)
) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx
) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/l3backend/l3backend-luatex
.def))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/blx-case-expl3.st
y
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.s
ty)))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekey
s.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hycolor/hycolor.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/letltxmacro/letltxmacro.st
y) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/auxhook/auxhook.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/refcount/refcount.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/gettitlestring/gettitles
tring.sty))
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/intcalc/intcalc.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/puenc.def)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/bitset/bitset.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/bigintcalc/bigintcalc.st
y)) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/atbegshi-ltx.sty)
) (c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/hyperref/hluatex.def
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/stringenc/stringenc.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/rerunfilecheck/rerunfilech
eck.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/generic/uniquecounter/uniquecoun
ter.sty))) (./Main.aux)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
(./Main.bbl) (./Main.out) (./Main.out)
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/bookmark/bookmark.sty
(c:/MeineProgramme/TeXLive/2023/texmf-dist/tex/latex/bookmark/bkm-pdftex.def))
(./Main.toc) [1{c:/MeineProgramme/TeXLive/2023/texmf-var/fonts/map/pdftex/updma
p/pdftex.map}] (./Main.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please rerun LaTeX.
)
506 words of node memory still in use:
3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 68 glue_spec
, 4 attribute_list, 1 write nodes
avail lists: 1:2,2:333,3:229,4:4,5:111,6:36,7:2309,8:28,9:195,10:2,11:198
<c:/MeineProgramme/TeXLive/2023/texmf-dist/fonts/opentype/public/lm/lmmono10-re
gular.otf><c:/MeineProgramme/TeXLive/2023/texmf-dist/fonts/opentype/public/lm/l
mromancaps10-regular.otf><c:/MeineProgramme/TeXLive/2023/texmf-dist/fonts/opent
ype/public/lm/lmroman10-italic.otf><c:/MeineProgramme/TeXLive/2023/texmf-dist/f
onts/opentype/public/lm/lmroman10-regular.otf><c:/MeineProgramme/TeXLive/2023/t
exmf-dist/fonts/opentype/public/lm/lmsans10-bold.otf>
Output written on Main.pdf (1 page, 21098 bytes).
Transcript written on Main.log.
Latexmk: fls file doesn't appear to have been made.
Latexmk: Getting log file 'Main.log'
Latexmk: Examining 'Main.log'
Latexmk: Found input bbl file 'Main.bbl'
Latexmk: Log file says output to 'Main.pdf'
Latexmk: Bibliography file(s) form .bcf file:
../Literatur/literatur_test.bib
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
lualatex: gave an error
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'Main.tex':
*LaTeX didn't generate the expected log file 'Main.log'
----------------------
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,437)
C:\MeineProgramme\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 12:
perl.exe c:\MeineProgramme\TeXLive\2023\texmf-dist\scripts\latexmk\latexmk.pl --lualatex
输出显示错误,但生成的 PDF 似乎没问题。lualatex
现在再次运行时,它运行没有问题或错误。
lualatex
最后要求第三次运行是一个问题吗,或者运行三次并且latexmk
错误地不满足这个请求是正确的lualatex
?
latexmk 更新后编辑:
更新到 latexmk 4.80 后,一切正常,没有错误。只有警告
Latexmk: I am working around an offset relative to my system time by
-38 secs for file times in directory ''.
This **probably** indicates that
(a) I (latexmk) am running on one computer, while the filesystem is
hosted on a different computer/
(b) There is a substantial time offset between system times on the two
computers.
(c) Therefore at least one of the computers has a misconfigured operating
system such that its system time is not correctly synchronized with a
time server.
These issues are likely to cause problems with other software, and any
such operating-system misconfigurations should be corrected. By default
current operating systems are configured to correctly synchronize system
time when they are connected to the Internet
可能是这样,因为我正在使用一个似乎时间设置不同的文件服务器。
答案1
输出中的谜题: 在输出列表的末尾,latexmk 表示由于出现错误,它未完成处理。这足以解释为什么 lualatex 的运行次数太少。
但是,报告的错误是未生成预期的日志文件。这似乎自相矛盾,因为两次运行 lualatex 都成功了,并且必然生成了一个日志文件。还有一个警告,说没有生成 fls 文件,尽管使用 -recorder 选项成功运行 lualatex 会生成该文件。此外,原作者单独运行 lualatex 和 biber 没有任何问题。
因此 latexmk 的错误报告暗示存在某种异常,但一定是某种奇怪的异常。(错误消息可能更有帮助。)
解决: 事实证明,这个问题已经被报告过,latexmk 已更新至 v. 4.80。只需更新 TeXLive 就足以让 latexmk 正确编译文档。它还提供了一条消息(引用自编辑问题末尾),该消息涉及运行 latexmk 的计算机和托管文档源文件的计算机的系统时钟不匹配。如消息中所述,应纠正该不匹配。
这就留下了一个奇怪的问题:为什么系统时钟的问题会导致以前版本的 latexmk 出现问题。
什么地方出了错: 运行 *latex 后,latexmk 会从 .fls 和 .log 文件中获取依赖项信息。在某些错误配置或某些错误条件下,文件可能无法生成,或者在错误的目录中生成,或者文件名称错误。在这种情况下,具有预期名称的文件可能存在,但可能是上次运行的遗留文件。Latexmk 必须检测到这种情况,否则它会获取过时的依赖项信息,从而扰乱其功能。
现在,遗留文件的修改时间将早于 *latex 的新运行时间。因此 latexmk 会询问修改时间是否早于运行时间,如果早于运行时间,则得出结论,这些文件是早期运行的遗留文件,而不是在最新运行中生成的。因此出现错误消息。(latexmk 处理此问题的逻辑并不完全正确,因此 latexmk 运行了两次 lualatex,而不是在第一次运行后停止。)
如果系统时钟不匹配,生成的文件看起来就像是在 lualatex 运行开始之前生成的。当前版本的 latexmk 会在需要时测量不匹配情况,因此它可以正常工作。