[OS X TeX] improving the tex typesetting script?

Frederick Hoyt fmhoyt at mail.utexas.edu
Wed Dec 22 15:49:55 CET 2004


I use a couple of simple shell scripts for this sort of thing. Neither 
is very fancy, but they do make latex-ing much more convenient for me 
on a daily basis. I have one which I call "quicktypeset" which runs a 
latex to dvips pipe once:

> #!/bin/sh
>
> # one step latex - dvips command
>
> A=$1
>
> latex $A.tex
>
> dvips -t letter $A.dvi -o

The second script I call "fulltypeset" and it runs latex 3 times, with 
a bibtex call after the first run and a dvips call at the end.

> #!/bin/sh
>
> # runs latex 3 times, generates bib, and outputs to ps
>
> A=$1
>
> latex $A.tex
>
> bibtex $A
>
> latex $A.tex
>
> latex $A.tex
>
> dvips -t letter $A.dvi -o

Note that to use both of these, you have to type the file name 
_without_ the .tex extension.

Either script could be modified to include a ps2pdf call at the end if 
you prefer pdf output.

Thanks,

Fred Hoyt


On Dec 20, 2004, at 11:42 PM, William F. Adams wrote:

> Had a kind of irritating situation develop the other day, and was 
> wondering if anyone had considered modifying the typesetting script to 
> preclude it.
>
> In a nutshell, I didn't typeset a document quite enough times and 
> wound up w/ a chapter which didn't have fully up-dated reference #s to 
> Sections --- if the typesetting script were set up to call latex 3 
> times that wouldn't've been possible --- if the first two calls were 
> to only make a .dvi the performance hit shouldn't be _too_ excessive 
> I'd hope.
>

________________________________

"Hell is other people at breakfast." - Sartre

Frederick M. Hoyt
Linguistics Department
University of Texas at Austin


--------------------- 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 macostex-archives mailing list