Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
4 years, 9 months ago
As far as I know
latexmk automatically defines what to do when running it. So compile it several times that all references are correct.
However this takes a loooong time when I just want to check my table. Is there any way to disable this automatic behaviour and say that it just should run pdflatex once and then show the result?
In arara, for example, this is possible.
13.2k 2 2 gold badges 29 29 silver badges 52 52 bronze badges
Aug 28, 2018 at 18:54
1,273 6 6 silver badges 22 22 bronze badges
you can limit the number of runs latexmk does to
<n>. By default, it is 5. Search for “max_repeat” in the
latexmk documentation for further information. FWIW, I call latexmk with the
-pvc option, and hitting the limit triggers only a warning but latexmk does not abort. It stops calling the LaTeX processor but continues watching for changes in the input files.
Note that you might need to quote the
$ differently (or not at all) in your environment.
Feb 15, 2022 at 7:36
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only
pdflatex -pdf texfile.texinstead of
latexmkis stll doing its thing. And to answer the OP's actual question, you can do
latexmk -e "$max_repeat=n" ...where
nis the maximum number of passes it makes before it gives up (the default is 5).