Menu

#1330 Run pdflatex 1 time only

open
nobody
None
1
2017-12-02
2017-11-27
Anonymous
No

When I click on "compile", TexStudio run pdflatex->biber->pdflatex->biber->pdflatex->pdflatex

Then I clicked on Tools->Commands->PdfLatex. TexStudio run pdflatex 3 times (three)

How can I tell TexStudio to run pdflatex 1 time only?

Thanks

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2017-11-27

    This is intentional and, by design of LaTeX, required to obtain a fully updated pdf. See e.g.

    https://tex.stackexchange.com/questions/53235/why-does-latex-bibtex-need-three-passes-to-clear-up-all-warnings

    If you don't want this behavior, you can deactivate "Rerun contained compilation commands" for "Compile" and for "PDFLatex".

     

    Last edit: Tim Hoffmann 2017-11-27
  • Mancuso Raffaele

    What is the difference between the "Repeat conteined compilation commands" in the "Commands" tabd and in the "Build" tab?

     
    • Tim Hoffmann

      Tim Hoffmann - 2017-12-02

      A compilation, such as pdflatex may indicate in it's log, that it wants to be run again (e.g. "Label(s) may have changed. Rerun to get cross-references right."). When "Repeat conteined compilation commands" is activated, TeXstudio checks for these messages and runs the command again.

      A command may consist of several subcommands, e.g. "Recompile Bibliography": txs:///compile | txs:///bibliography | txs:///compile, where compile itself may me txs:///pdflatex, which then is a basic command. For every basic or compound command, you can specify if the contained compilation commands do the above checks. This is cumulative. If any of the commands in the hirachy has this activated, the rerun will be done if necessary.

       
  • Mancuso Raffaele

    Your suggestions seems not working. With all "Repeat conteined compilation commands" disabled, both in the "Commands" tabd and in the "Build" tab, TexStudio run pdflatex->biber->pdflatex->pdflatex

     

    Last edit: Mancuso Raffaele 2017-11-29
  • Mancuso Raffaele

    Again, if you clear the auxiliary files, TexStudio ignores these settings and run pdflatex->biber->pdflatex->pdflatex

     
  • Tim Hoffmann

    Tim Hoffmann - 2017-12-02

    You'll probably have to uncheck Build -> Build Options -> Check and update bibliography before compiling as well.

     

Anonymous
Anonymous

Add attachments
Cancel