I'm writing a document which I want to split into several chapters, each chapter in its own .tex file. My main document has the preamble and I use \include commands to include each chapter. My question is, when I'm working on the chapter, say, ch1.tex, is it possible to compile ch1.tex so I can see the output and continue working on it that way until I'm done with it? As I understand it, ch1 should have no preamble, right? Would I have to make a common preamble file so that I can \include it in each chapter when I work on it, compile as necessary, and then comment it out when I'm ready to put the entire document together including all chapters?
My apologies if this question is confusing, or if it has been answered before.
EDIT: Per request of comments below, the editor I'm using is TeXShop on Mac OS X Yosemite
\includeonly{ch1}for example, to prevent the inclusion of other chapters, for better/quicker editing – Mar 04 '15 at 19:07\includeonlyto work on one chapter while allowing cross references and numbering to be correct for the chapters that you are not using. – David Carlisle Mar 04 '15 at 19:09\includeoption, then I always have to have two files open. First file is thech1.texfile, but the file I compile is the overall main file. I imagine that could get kind of annoying. I took a look at the subfiles package @Werner mentioned, and I think that might solve it – Amit Mar 04 '15 at 19:16\includemethod? I have a main document which has the\includes, and I'm editing thech1.tex. Now, when I want to visually see the progress I've made, I have to go back to the main file to compile, right? I don't compilech1.tex. Did I get that right? – Amit Mar 04 '15 at 19:24% -*- TeX-master: "../master.tex" -*-that tell it that all the document level commands like latex, bibtex etc should use the file../master.texeven if the current file ischa1.tex– David Carlisle Mar 04 '15 at 20:30\includeand\includeonlyproperly). – jon Mar 04 '15 at 20:40docmuteorstandalonepackages. Here there are a MWE (withbeamerand\inputinstead of your document class with\include, but that should be irrelevant). – Fran Mar 05 '15 at 06:48