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

Herbert Schulz herbs at wideopenwest.com
Wed Feb 3 23:50:59 CET 2010


On Feb 3, 2010, at 4:34 PM, Sylvain CHAMBON wrote:

> howdy (again) !
> 
> i have a document (book class) in which i input files for each chapter in order to work only on the chapter in process. this chapter file is not indeed a tex document, just a piece of text.
> 
> now imagine i have in the master document the line '\input{./chapitres/3e-trigo}' among other things and i'm working on this file '3e-trigo'. is there a way to compile this file _without_ opening the master document ? in fact, i have actually to do backwards and forwards all the time between the master document and the file of the chapter to see the result of what i'm writing... which it's quite boring !!!
> 
> hope i'm clear anouth. thanks for answers.
> 
> sylvain.

Howdy,

Put the comment

% !TEX root = ../masterfile.tex

at the top of 3e-trigo.tex (it called .tex isn't it?) and when you typeset TeXShop will know which file to actually compile.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list