Wednesday, April 23, 2014

Latex script

If you are tired of making multiple clicks in TexWorks everytime just to get one .tex compiled into a PDF, here is a quick windows script. Note that bibtex works with the .aux file.

 echo %~f0  
 pdfLatex sample.tex  
 bibtex sample.aux  
 pdfLatex sample.tex  
 pdfLatex sample.tex  
 echo "Press any key to close (or your own message here)"  
 pause > nul  
 del *.aux  
 del *.bbl  
 del *.log  
 del *.blg  
 del *.out  
 sample.pdf  

P.S. JabRef is nice bib management tool on Windows.

No comments:

Post a Comment