[OS X TeX] [TeXShop] input file and master doc compilation

Alain Schremmer schremmer.alain at gmail.com
Thu Feb 4 03:07:28 CET 2010

On Feb 3, 2010, at 8:18 PM, Herbert Schulz wrote:

> On Feb 3, 2010, at 6:43 PM, Alain Schremmer wrote:
>> Yes I can. Either from the contents file whose %!TEX root = ../ 
>> Chapters-controls/\jobname.tex calls the control file (the chapter  
>> root file) or, of course, from the control file itself.
> Howdy,
> How does TeXshop ``know'' that \jobname refers to the chapter root  
> file if you simply open the chapter file and try to typeset? Don't  
> you have to open the chapter-control file separately and typeset that?


Because the contents file and the control file both have the same  
number, say 2.

Then, when typesetting Chapters-contents/2, the line

%!TEX root = ../Chapters-controls/\jobname.tex



  which is the root file which contains


namely Chapters-contents/2

that is the original file.

I do think that it is a bit perverse but it really works beautifully.

Proud regards

More information about the macostex-archives mailing list