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?
Asked
Active
Viewed 3,911 times
2
1 Answers
0
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
Hasan Zakeri
- 1,942
-
2This doesn't really flow well with an anti-command-line workflow... – Sean Allred Jun 26 '13 at 00:51
pdflatexandbibtex. – Torbjørn T. Jun 25 '13 at 22:08arara:) have a look at Tools for automating document compilation. Welcome! – cmhughes Jun 25 '13 at 22:12cd(change directory) andpdflatexitself. 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. – Sean Allred Jun 25 '13 at 22:23