Path: blob/master/latex/multiple-files/20-subfiles.tex
2371 views
\documentclass[master.tex]{subfiles}12\setcounter{chapter}{1}34\begin{document}56\chapter{Subfiles Package}78The subfiles \LaTeX package~\cite{subfiles}9is able to combine multiple source files10in one single document.11In contrast to other commands like \verb|\input| or \verb|\include|,12it is also possible to render the partial document with13the header definitions of the master document.1415Also, in the header of each subfile,16additional instructions can be embedded.17In this example here,18\verb|\setcounter{chapter}{1}| sets the counter for the chapter19in order to get a consistent numbering.20(Otherwise -- because \LaTeX only sees this partical document --21it would start its numbering at 1 and not 2.)222324\end{document}25%sagemathcloud={"latex_command":"make '20-subfiles.pdf'"}2627