I have written an alias in ~/.bashrc
to compile my tex files into pdfs. I am sure that ~/.bashrc
is sourced.
alias p='rm -f *.pdf *.log *.aux;pdflatex *.tex;open *.pdf'
However, after I edit my .tex file in XCode, save, and run the command p
in my terminal, the pdf that opens is a previous version, not the latest version. The pdf matching the latest version of my tex file surfaces after I run p
several times.
What is causing the lag? My Mac Air runs Lion.
pdflatex
is working at compiling the right version of my tex. However, theopen
command seems to be opening an older version of my pdf. Why?