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

Gary L. Gray euler at psu.edu
Sun Mar 25 17:51:05 CEST 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.

Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180325/8c1d9619/attachment.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list