In LaTeX
it is customary to put the content of different chapters into different files which are then pulled into a master file using \include{FILENAME}
statements. One can then use the \includeonly{SPEC}
command to compile only those chapters which are specified by SPEC
.
The TeX.SO question Typeset single chapter from book
shows how to do this. Here comes my question:
Is it possible to tell
AUCTeX
to parse through the master file and compile each of the\include
'd files to its own pdf file?
Say I have this:
\documentclass{book}
\begin{document}
\include{Chap1}
\include{Chap2}
\include{Chap3}
\end{document}
in a file called Master.tex
. The function I'm looking for would then compile Chap1
to Master_Chap1.pdf
, Chap2
to Master_Chap2.pdf
and so on [By using \includeonly
I'd assume].
subfiles
LaTeX package should do what you are looking for.