Nipon

Monday, July 16, 2012

Running Bibtex automatically while running latex


Add this in the beginning of your tex document:
\immediate\write18{bibtex \jobname}

Result:
You only need to call pdf (la) tex couple of times to see your final document. Bibtex will run automatically through the above line.

Note:
I am using the Texshop on mac where write18 has been turned on using "--shell-escape" option.

[credits to Jon How]