[OS X TeX] tell TeXShop in header what script to use
Berend Hasselman
bhh at xs4all.nl
Tue Aug 11 04:47:35 EDT 2009
On 11-08-2009, at 09:37, Doris Wagner wrote:
> 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?
>
See the TeXShop Help: menu Help, TeXShop Help Panel...
Click on Advanced Help
Navigate to Additional Typesetting Engines; the fifth paragraph tells
you what you can do.
<quote>
The default program can be set on one of the first twenty lines of the
source code by writing a line like
% !TEX TS-program = xelatex
There must be one space before and one space after the equal sign. A
Macro supplied with TeXShop makes adding this line easy; the Macro
lists all active engines, making it possible to select the desired
engine from a dialog list.
</quote>
Berend
More information about the MacOSX-TeX
mailing list