[OS X TeX] TeXshop and LuaTeX

Herbert Schulz herbs at wideopenwest.com
Mon Dec 23 11:19:09 EST 2019



> On Dec 23, 2019, at 8:57 AM, Gray, Gary L <euler at psu.edu> wrote:
> 
> Herb,
> 
> I thought the directive is:
> 
> % !TEX TS-program = pdflatex
> 
> At least that is what I have at the top of every document. Have I been doing this wrong?
> 
> Gary
> 
>> On Dec 23, 2019, at 8:55 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>> 
>> Since you want to use a different typesetting engine on a file by file basis you should probably use the `%!TEX program = xxxx' directive at the top of the file. Then, when you typeset using Typeset->Typeset (Cmd-T) TeeXShop will use the requested engine.
>> 
>> So, placing
>> 
>> %!TEX program = pdflatex
>> 
>> (notice TEX is all caps and there is a space before and after the =) pdflatex will be used. Replace `pdflatex' by `lulatex' to get it to use lualatex. To get a full list of active engines click on the popup menu next to the typeset button on the Source File Window's Tool Bar.

Howdy,

Both work fine with TeXShop. I believe the `program' version was added the TeXShop so that files could go back and forth between TeXShop and other front ends (e.g., TeXworks) and it would be recognized by those front ends.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)



More information about the MacOSX-TeX mailing list