Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 29886
1
\documentclass[master.tex]{subfiles}
2
3
\setcounter{chapter}{1}
4
5
\begin{document}
6
7
\chapter{Subfiles Package}
8
9
The subfiles \LaTeX package~\cite{subfiles}
10
is able to combine multiple source files
11
in one single document.
12
In contrast to other commands like \verb|\input| or \verb|\include|,
13
it is also possible to render the partial document with
14
the header definitions of the master document.
15
16
Also, in the header of each subfile,
17
additional instructions can be embedded.
18
In this example here,
19
\verb|\setcounter{chapter}{1}| sets the counter for the chapter
20
in order to get a consistent numbering.
21
(Otherwise -- because \LaTeX only sees this partical document --
22
it would start its numbering at 1 and not 2.)
23
24
25
\end{document}
26
%sagemathcloud={"latex_command":"make '20-subfiles.pdf'"}
27