Until a few days ago, I only ever used Texstudio (on windows) to create LaTeX documents, relying entirely on the build and compile button to sort everything out for me. I've been trying to understand how one might compile a latex document without an IDE, and have discovered that this is achieved simply by typing pdflatex filename.tex into a command line, provided that the appropriate binaries folder is in included in the "PATH" environment variable. However, citations and bibtex/biber require that you run bibtex and pdflatex in the order latex>bibtex>latex>latex. So I hypothesised that this is exactly what the build part of the Texstudio button "build and view" does. But this doesn't seem to be the case. This is my messagelog after pressing build and compile on my template.tex file:
Process started: bibtex.exe "template"
This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: template.aux
The style file: biblatex.bst
Database file #1: template-blx.bib
Database file #2: testbib.bib
Biblatex version: 3.0
Process exited normally
Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "template".tex
Process exited normally
So Texstudio seemingly runs bibtex followed by pdflatex. I tried doing this manually via the command prompt but bibtex responded "I couldn't open the file template.aux", which is a file created only after having run pdflatex at least once. This implies that Texstudio is running pdflatex before running bibtex even though it doesn't mention so in the message log. I have not changed Texstudio settings to add anything extra to the compilation order. So I'm stumped as to what's going on. Thanks for any help.
.auxfiles it explains the problem very, very well. – moewe Aug 28 '15 at 07:27:-)– moewe Sep 11 '15 at 18:38txs:///bibtex | txs:///compile | txs:///view. Options > Configure TeXstudio > CheckShow Advanced Optionsand look into the Build section, the Meta command for "Build&View" there only consist of one compilation round following one bibtex round. You can change it totxs:///compile | txs:///bibtex | txs:///compile | txs:///compile | txs:///view– Jim Raynor Feb 23 '16 at 16:27