Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create a blank file called modular.tex and insert the following (preferably with no whitespace before or after):
- \def\mainfile#1{
- \ifx\processingmainfile\undefined
- \def\processingmainfile{processingmainfile}
- \message{TeX run on an included file, jumping to the main file (#1)}
- \input #1
- \fi
- }
- Include the file in all your subordinate files and reference the main file like this:
- \input modular
- \mainfile{thesis.tex}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement