[OS X TeX] tell TeXShop in header what script to use
Franck Pastor
franck.pastor at skynet.be
Tue Aug 11 10:49:42 CEST 2009
Le 11 août 09 à 09:37, Doris Wagner a écrit :
> hi list,
>
> most of the time I use tex+dvi, but sometimes I also use pdftex; in
> the future there will also be some personal scripts;
>
> so in TeXShop>preferences>typesetting>default script I choose Tex +
> DVI;
> and always, when I open one of my documents which needs pdftex (the
> latter I usually forgot), I get error messages and then >>aaahhhh,
> this doc needs pdftex, I first have to change...<<
>
> so is there a possibility to write something in the header of a tex-
> source that tells texshop what script to choose whithout me having
> to click around?
>
Put this at the beginning of your .tex file:
%!TEX TS-program = pdflatex
if you want it to be typesetted by PdfLaTeX
or
%!TEX TS-program = latex
if you wish TeX+DVi to be chosen.
See TeXShop's Help section (“Basic help”/”Alternate typesetting mode”
for more details. The Macros menu and its ”Program” option will
certainly be helpful to you.
Regards,
Franck Pastor
More information about the macostex-archives
mailing list