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?
1 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
-
2This doesn't really flow well with an anti-command-line workflow... Jun 26, 2013 at 0:51
pdflatex
andbibtex
.arara
:) have a look at Tools for automating document compilation. Welcome!cd
(change directory) andpdflatex
itself. See this short introduction for more detailed info and screenshots. The command to compile a LaTeX document ispdflatex mydocument.tex
. That said, this can become a pretty mundane process, so there are a ton of tools available for the task. Your editor will likely help you here.