[OS X TeX] I do like ps4pdf

Michael Hoppe mh at michael-hoppe.de
Mon Feb 7 12:52:52 EST 2005

>  #!/bin/sh
>  location=$(dirname "$1")
>  basefname="${location}/`basename "$1" .tex`"
>  # process the figures
>  latex --shell-escape "$1"
>  dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi"
>  ps2pdf13 "${basefname}-pics.ps" "${basefname}-pics.pdf"
>  /bin/rm "${basefname}-pics.ps" "${basefname}.dvi"

OK, but you're aware of that this mumbo-jumbo is only needed once: 
when the pics are to be created.

>  #process the file
>  pdflatex --shell-escape "$1"

Did you think of the use of




at the very beginning of the main .tex-file?  Using that feature it's 
just a joke in AlphaX together with teTeXComm to do the job.  Just 
put the former %&latex in first line to produce the picture-file; 
during the "normal" changes of the .tex-files, where there are no 
changes of the graphics, you just start with the latter %&pdflatex.

-= Michael Hoppe <www.michael-hoppe.de>, <mh at michael-hoppe.de> =-----
-= Key fingerprint = 74 FD 0A E3 8B 2A 79 82 25 D0 AD 2B 75 6A AE 63
-= PGP public key ID 0xE0A5731D  =-----------------------------------
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the MacOSX-TeX mailing list