[Tex/LaTex] How to do the ‘latex bibtex latex latex’ compiling using Windows without the command line?

automationcompilingwindows

I'm using LaTeX and JabRef on Windows. I set up my bibliography database and cited references in my LaTeX document. However, I do not know how to use the command line on Windows to do the 'latex bibtex latex latex' compile. So my question is: How can I do the 'latex bibtex latex latex' compiling using Windows without the command line?

Best Answer

Try adding this line in the preamble of your document:

\immediate\write18{bibtex \jobname}

It runs bibtex every time you typeset your document.

It has the advantage that it doesn't need separate run of bibtex, but with the disadvantage that it runs bibtex even when it is not required: not every time it is necessary to run bibtex, but only when a new citation or change in citation order happens.

Beware that shell-escape needs to be enabled for this code to perform. shell-escape is enabled via

pdflatex -shell-escape filename.tex
Related Question