I understand that there is an \excludeonly{xyz} command where xyz is a LaTeX file name (explained here). This excludes the specified file(s) from compilation. My question is if there is equivalent command for xyz being a specific section within a file. So lets say my source latex file (say source.tex) is:
\usepackage{....}
\begin{document}
\section{Chapter 1}
...
\section{Chapter 2}
...
\section{Chapter 3}
...
\section{Chapter 4}
...
\end{document}
and my compiled file (say thesis.tex) is:
\documentclass{article}
\input{source}
How can I exclude, say Chapter 2, from the compilation process.
Apologies if this has been answered before (I couldn't find it).
\section, the titles areChapter ...– Aug 28 '14 at 06:26