Take the 2-minute tour ×  My LaTeX workflow involves frequent
recompiles (good ol' C-c C-c in AucTeX). Right now I'm working
on a large document that's composed of chapters, each in an
individual file. I would like to use the \input{} or \include{}
mechanism to compile the final document, however that involves
stripping the chapters sources from the preamble.  I could
create a "main" file (a chapter-main.tex for every chapter.tex)
with the preamble and \include{chapter.tex}, but this means that
as I'm editing an individual chapter, I need to switch to a
different file for a recompilation, which breaks my workflow.
Are there any ways to use the \include{} mechanism that don't
get in the way of editing files individually?..  share|improve
this question In TeXShop you can set a "project root" embedded
in a comment at the top of a file. That way when you use the
keycombination for compiling, what's compiles is not the
currently edited file but the root file. Is that a feature of
AucTeX? –  Matthew Leingang Apr 1