Consider the following document structure:
Project
├── Sections
│ ├── section1.tex
│ └── section2.tex
└── main.tex
And here is the content of the files:
Content of main.tex
\documentclass{article}
\begin{document}
\input{Sections/section1.tex}
\input{Sections/section2.tex}
\end{document}
Content of section1.tex
\section{Section 1}
bla bla bla
Content of section2.tex
\section{Section 2}
bla bla bla
Question: Is it possible to compile the files section1.tex and section2.tex separately to save computer resources during compilation, and add the compiled versions of section1.tex and section2.tex to the main.tex file?
\includeand then\includeonlywhen working on one section (that does not add the compiled version, it remakes everything when you want a full document, but that is needed anyway to get page numbers and cross references correct – David Carlisle Dec 14 '23 at 19:02