So let’s say that I have a document:
% Preamble
\usepackage{subfiles}
% Preamble
\begin{document}
\maketitle
\subfile{FileA}
\subfile{FileB}
\subfile{FileC}
\end{document}
Some questions:
- Let’s suppose that the file is not compiled yet, and I compile say, FileA. Will the title ever appear, or will I have to run the main file to get the title to appear?
- From what I see, subfiles are compiled independently from the rest of the subfiles i.e. compiling only that section, while compiling the main file is the same as if I use
\input
or just having the entire TeX code from the subfiles in there. Is there a way to compile some subfiles simultaneously while leaving the other subfiles untouched (as in, the results from the subfiles do not change instead of not appearing in the pdf)? - If I compile a subfile, and the results of multiple subfiles are on the same page as that subfile, will the results from the succeeding subfiles be “overwritten” by those due to compiling that subfile?
- I just compiled a subfile, for some reason the compilation time is the same as compiling the main file. Is this supposed to happen?
- Edit to 4: I just closed the main file and ran the subfile, it turns out that the result is compiling the entire file instead of just the subfile, which seems contradictory to the subfiles being “compilable on their own.” Can someone elaborate?
I use TeXStudio by the way.