latex2pdf

This is a short little shell script which executes the right commands to generate and display a PDF from a latex file. I, personally, named it ‘pdf’ and just placed it in my ~/bin/ directory. The code for this can be found below:

#!/bin/sh
pdflatex $1
bibtex $1
pdflatex $1
pdflatex $1
rm “$1.aux”
rm “$1.bbl”
rm “$1.blg”
rm “$1.log”
rm “$1.toc”
xpdf “$1.pdf” &

Posted: February 22nd, 2004


Subscribe for email updates

1 Comment (Show Comments)



Comments are closed.
Comments are automatically turned off two weeks after the original post. If you have a question concerning the content of this post, please feel free to contact me.


Secrets of the JavaScript Ninja

Secrets of the JS Ninja

Secret techniques of top JavaScript programmers. Published by Manning.

John Resig Twitter Updates

@jeresig

Infrequent, short, updates and links.