[OS X TeX] Compiling the master when hitting the compile button of the child?

Herbert Schulz herbs at wideopenwest.com
Sun Mar 25 11:52:43 EDT 2018


> On Mar 25, 2018, at 10:43 AM, Gerben Wierda <gerben.wierda at rna.nl> wrote:
> 
> Gentle people,
> 
> If I have a document a.tex which includes a document b.tex with \include{b} and my main editing is in b.tex, I would like to inform TeXShop that when I hit the compile button in the b.tex edit window, it should instead compile a.tex
> 
> Constant switching between the buttons is a bit of a nuisance. A bit, but it would be nice if this was possible.
> 
> Is this possible?
> 
> Yours,
> 
> G

That's exactly what the TeXShop directive

% !TEX root = path/to/root/file

,where path/to/root/file is the relative or full path from the included file to the root file, is for.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




More information about the MacOSX-TeX mailing list