[texworks] Setting the typesetting

Herbert Schulz herbs at wideopenwest.com
Fri Jul 2 15:43:56 CEST 2010


On Jul 2, 2010, at 2:11 AM, Alain Delmotte wrote:

> Hi!
> 
> Herbert Schulz a écrit :
>> On Jul 1, 2010, at 3:19 AM, Bruno Voisin wrote:
>>> Le 1 juil. 2010 à 00:07, Alain Schremmer a écrit :
>>> 
>>>> It never occurred to me that TeXworks would only typeset in TeX. I just thought it not remembering the setting was unusual behavior.
>>> Hi Alain,
>>> 
>>> I'm not quite sure what you mean: TeXworks does remember the setting indeed, it just has to be set in Preferences > Typesetting > Processing tools > Default.
>>> 
>>> TeXShop works exactly the same: the choice of typesetting engine in the toolbar is not remembered from one run to the next (by this I mean after closing the application and reopening it); for it to be remembered, you have to set it in Preferences > Typesetting > Default Command.
>>> 
>>> Bruno
>>> 
>> Howdy,
>> Let me interject... that's exactly why TeXworks understands the TeXShop command
>> % !TEX TS-program = xxxxx
>> where xxxxx is the TeXworks tool you wish it to execute. That way no mater what the default setting is the file gets compiled that way YOU want it to be compiled.
> 
> Other form for the same:
> % !TeX program = xxxxx
> 
> But!! this instruction has to be in the file from which you start compilation: a sub-document or the main file.
> If you put it only in the main and start compilation from the sub it will take the program shown in the sub. (see manual 5.2)
> 
> Regards,
> 
> Alain

Howdy,

Hmmm... I'll have to test that out in TeXworks. In TeXShop you only put a 

% !TEX TS-program = xxxx

line in the root document and only have

% !TEX root = yyyyy

and, possibly,

% !TEX encoding = zzzzzz

in your \included document. Then TeXShop opens the root document and compiles it using the TS-program option located there.

Also, TeXShop's TS-program works in TeXworks so you don't have to change and leave off the TS- part.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the texworks mailing list