[tex-live] bibtex with pdflatex

John Collins collins at phys.psu.edu
Sat Dec 5 14:42:40 CET 2009

You could take a look at my Perl script latexmk.  On CTAN it's at 
http://www.ctan.org/tex-archive/support/latexmk/   It can be 
installed by TeXLive 2009 (or you may have it already installed).

To do exactly what you want, you simply run latexmk with the options 
-pdf.  This overrides latexmk's default of generating a dvi file by 
latex instead of a pdf file by pdflatex.  A configuration file can be 
made to avoid typing options on the command line everytime you use 

Latexmk will do a first run of pdflatex.  Then it will detect that 
your document uses bibtex and will run bibtex automatically.  It will 
repeat the runs of pdflatex as many times as needed to resolve cross 
references etc.

John Collins

On Fri, 4 Dec 2009, kap4lin wrote:
> Using Texlive 2009, on Red Hat EL 5.4.
> Is there a way to combine bibtex and pdflatex into one command. So,
> that bib changes are done automatically? Specifically, I am looking to
> do this for Texworks.

More information about the tex-live mailing list