Currently, I have my main LaTeX document set up as follows:
\documentclass[12pt]{report}
\usepackage{mystyle}
\title{Mytitle} \author{Me} \date{}
\begin{document}
\pagestyle{plain}
\maketitle
\chapter{Introduction}
\input{chapters/chapter01}
\end{document}
While my chapters themselves contain no preamble, no begin/end document etc, just the contents of the chapter itself.
I use Latexian and really enjoy the live preview function in a split screen. I would like to write each individual chapter and use the live preview feature, however, I cannot compile/preview each chapter on its own without its own preamble, begin/end document etc.
Is there a way around this? It feels very clunky to have to switch back and forth between a window containing just my chapter and one containing the entire thesis. Similarly, it feels very clunky to have each chapter contain everything necessary to compile and then manually comment out the extra lines from every single chapter when I wish to compile them all together.
\include
rather than\input
, you can use\includeonly{}
as mentioned below. Alternatively, look atstandalone
orimport
for other possibilities. – cfr Jan 17 '17 at 3:04\chapter{<title>}
command within te chapter file. – Johannes_B Jan 17 '17 at 7:24subfiles
package. – samcarter_is_at_topanswers.xyz Jan 17 '17 at 9:35