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.

  • 3
    You could just run pdflatex -pdf texfile.tex instead of latexmk. – Andreas Storvik Strauman Aug 28 '18 at 18:56
  • Absolutely agree with Andreas, there is no point in running latexmk if you only want one pdflatex run: Just run pdflatex instead. – moewe Aug 28 '18 at 18:57
  • I was looking fou using the feature of latexmk -pvc to run in the background so everytime i save he rund pdflatex automatically. However till now he is doing it several times then – SRel Aug 28 '18 at 19:01
  • 1
    I do not think the comparison with arara is fair. arara does what you tell it to do, latexmk tries to read your mind (and the LaTeX files) and decides on its own. – TeXnician Aug 28 '18 at 20:06
  • 2
    IF you have a good PDF viewer (not Adobe Acrobat) you can start looking at the PDF after the first run, while latexmk is stll doing its thing. And to answer the OP's actual question, you can do latexmk -e "$max_repeat=n" ... where n is the maximum number of passes it makes before it gives up (the default is 5). – alephzero Aug 28 '18 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.