[OS X TeX] "Texify"?

Jung-Tsung Shen jushen at gmail.com
Fri Sep 30 23:53:32 CEST 2005


Herb,

A novice question: if my .tex document contains .eps file, do I just
use your script below, or I have to change everything `latex' to
`altpdflatex --maxpfb' (which I copy from the preference panel of
TeXShop).

Thanks.

JT

On 9/29/05, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
> On Sep 29, 2005, at 9:42 AM, Jung-Tsung Shen wrote:
>
> > Is there a command on TeXShop which automatically executes the
> > sequence: latex + bibtex + latex + latex?
> >
> > (* On WinEdt, there's an icon "Texify" does this sequence. *)
> >
> > Thanks.
> >
> > JT
>
> Howdy,
>
> You can build an Engine that does that job for you. Duplicate one of
> the .engine files in ~/Library/TeXShop/Engines/; rename it
> TeXify.engine; open it up in an editor and substitute the following
> for its original contents:
>
> #!/bin/sh
> location=$(dirname "$1")
> basefname=$(basename "$1" .tex)
> latex -interaction=batchmode "${basefname}"
> if [ -e "${basefname}.dvi" ] ; then
>         bibtex "${basefname}"
>         latex -interaction=batchmode "${basefname}"
>         latex -interaction=batchmode "${basefname}"
> #       dvips -o "${basefname}.ps" "${basefname}"
> fi
> #if [ -e "${basefname}.ps" ] ; then
> #       ps2pdf13 -dAutoRotatePages=/None "${basefname}.ps"
> #fi
> #/bin/rm "${basefname}.dvi" "${basefname}.log" "${basefname}.aux" "$
> {basefname}.ps"
>
> then save it. If you want to end up with a .pdf file and have most of
> the intermediate files deleted remove any of the comment marks (#)
> from the dvips line down (NOT the comment at the start of the file).
> Note: by duplicating one of the .engine files it will retain its
> executable permissions which is necessary to the engine to operate as
> a valid shell script.
>
> At the top (or near it) of the .tex file put the line
>
> %!TEX TSprogram = TeXify
>
> which tells TeXShop to use the TeXify engine to typeset the document.
> Alternatively, choose TeXify from the drop down menu ON THE TOOLBAR.
> The Typeset Menu will NOT reflect the additional engine.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest.com)
>
>
> ------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/
>
>
------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list