For each header I created a separate text file, and the header is defined in the preamble of each text file. In each of these three files, I have several user inputs defined, a few of which overlap with the other files. I want all three files to be compiled into one main document and the user inputs to be defined in that main document such that they are propagated throughout the three text files being called on in the one main document. I can't use the
\include
or \input
commands because I have a complete preamble in each of the three text files. I don't want to use pdfpages because I want the user inputs to be in the main file and I can't do that if I use its \includepdf
command. Right now my main file looks something like the following (without any user inputs):
Code: Select all
\documentclass{report}
...
\usepackage{}
...
\begin{document}
\includepdf{File1}%First three pages with Header 1
\includepdf{File2}%Next three pages with Header 2
\includepdf{File3}%Final page with Header 3
\end{document}
Can anyone help me? Thank you!