I use TexStudio to write my PhD thesis (large document), and I have set up the compiler options on: txs:///pdflatex | txs:///biber | txs:///pdflatex | txs:///pdflatex

However, when I ask TexStudio to compile my file, it runs this whole sequence (pdflatex/biber/pdflatex/pdflatex) multiple times before finally producing the pdf file. It can sometimes repeat it 6 or 7 times, with no particular error message displayed. Do you have any suggestion as to what is happening and how to solve this as it takes an awfully long time to run the whole document? I am fairly new to LaTex and probably doing something wrong, so would welcome any suggestion. My preamble is as follows (prety long sorry):
















\fancyhead[R]{Chapter \thechapter}






\captionsetup[subfigure]{hangindent=0pt, indention=0pt,position=top,labelfont=bf,textfont=normalfont,singlelinecheck=off,justification=raggedright}













\definecolor{ceruleanblue}{rgb}{0.16, 0.32, 0.75}

\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}

\definecolor{blue(pigment)}{rgb}{0.2, 0.2, 0.6}

\definecolor{beaublue}{rgb}{0.74, 0.83, 0.9}

\definecolor{palecornflowerblue}{rgb}{0.67, 0.8, 0.94}

\definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}

\definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}






\usepackage[backend=biber, style=authoryear-comp, citestyle=authoryear-comp, isbn=false, url=false, doi=false, uniquelist=false ,uniquename=false, maxcitenames=2]{biblatex}






Build tab options 1

Build tab options 2

Many thanks for your help!

  • 1
    Welcome to TeX.SX! Have you ticked the repeat button? – TeXnician Aug 6 '17 at 16:24
  • Can you post a screenshot of the build tab of preferences? – user36296 Aug 6 '17 at 16:42
  • @TeXnician If I did, it was not voluntary as I don't know where the repeat button is... – Launa Aug 6 '17 at 18:02
  • @samcarter I have now added the screenshots. I actually have one warning during the run of biber that says " WARN - BibTeX subsystem: C:\Users\laura\AppData\Local\Temp\HkUYCNkPHW\Thesis.bib_4252.utf8, line 6, warning: 173 characters of junk seen at toplevel ". I don't know if it is relevant as my document still loads the references properly though – Launa Aug 6 '17 at 18:04
  • 1
    Off-topic: Since you're loading the xcolor package with the option table, there's no need to load the colortbl package separately. – Mico Aug 6 '17 at 18:48

A few things to try (in the order I think they might solve your problem)

  • As already suggested by TeXnician: For the default compiler: to make the compilation sequence non-repeatable, click on the green arrow/triangle to make it change its colour from green to grey.

enter image description here

  • Remove the checkbox check and update bibliography before compiling

  • decrease the number of maximum compile repetitions from 5 to e.g. 1

  • a dirty hack: I once had the problem, that the internal precompile got in my way. Unfortunately just removing the command does not seem to work, so I replaced it with a quick and harmless command, on linux based systems I use echo " ".

enter image description here

Furthermore I suggest to not invoke txs:///pdflatex | txs:///biber | txs:///pdflatex | txs:///pdflatex each time you compile, but to use an automation tool like latexmk, ltx2any, ... which are smart enough to know which compilation steps are currently necessary and do only them.

  • What do I need to put in the internal precompile field if I'm using Windows OS, thanks. – ollydbg23 May 27 '18 at 16:40
  • @ollydbg23 Sorry, I don't use windows – user36296 May 27 '18 at 18:30
  • I post a similar question on the texstudio's github issue: It is possible to avoid the buildin PDF viewer hanging when compiling · Issue #159 · texstudio-org/texstudio, and the author gives a reply that the multiple run is by design, see his reply: The compiler will tell at the end of the log file if an additional run is needed. We parse this information and rerun if the compiler says so. The number of reruns depends on the packages and tex commands you are using. – ollydbg23 May 27 '18 at 23:57

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.