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

Gary L. Gray euler at psu.edu
Sun Mar 25 11:51:05 EDT 2018

> On Mar 25, 2018, at 11:43 AM, Gerben Wierda <gerben.wierda at rna.nl <mailto:gerben.wierda at rna.nl>> wrote:
> 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?

Hi Gerben!

If the first line of b.tex is

% !TEX root = <path to a.tex>/a.tex

then it will do as you wish and compile a.tex.

I hope all is well.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20180325/8c1d9619/attachment.html>

More information about the MacOSX-TeX mailing list