[OS X TeX] TexShop Applescript question

Herbert Schulz herbs at wideopenwest.com
Mon Dec 18 21:25:44 EST 2006

On Dec 18, 2006, at 2:44 PM, Chris Goedde wrote:

> On Dec 18, 2006, at 2:21 PM, Jon Hanson wrote:
>> Greetings,
>> I am trying to write a little macro that will typeset a file that  
>> is not the frontmost window in TeXShop.  The situation is this: I  
>> am writing in one file (a chapter, which is just the body of the  
>> source) and want to typeset a second file (the main document,  
>> which contains commands to input the various chapters) in order to  
>> refresh the pdf.  I often have many source windows open so  
>> switching windows can get cumbersome.
> If I understand your request correctly, you don't need applescript  
> to do this. Just pick "Set Project Root" from the file menu and set  
> the project root file to be your master file. Then when you tex  
> your chapter file, TeXShop will tex the master file instead.
> HTH,
> Chris


You can also put the line

%!TEX root = Rootfilename.tex

at the beginning of each of the included file.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list