Only compile necessary frontmatter/backmatter additions (e.g., bib) for single subfiles

This commit is contained in:
2026-07-03 00:43:14 +02:00
parent b2e2c67b4c
commit aad8942361
+6 -1
View File
@@ -166,7 +166,8 @@
pdfcreator={LuaLaTeX} pdfcreator={LuaLaTeX}
} }
% Starting pages % Only compile title/glossaries/toc with the main document
\ifSubfilesClassLoaded{}{%
\pagestyle{empty} \pagestyle{empty}
\pagenumbering{gobble} \pagenumbering{gobble}
\input{titlepage} \input{titlepage}
@@ -186,6 +187,7 @@
\cleardoublepage% \cleardoublepage%
\printglossary% \printglossary%
\cleardoublepage% \cleardoublepage%
}
\mainmatter% \mainmatter%
\pagestyle{headings} \pagestyle{headings}
@@ -205,6 +207,8 @@
% \printbibliography% % \printbibliography%
\cleardoublepage% \cleardoublepage%
% Only compile lists/declaration with the main document
\ifSubfilesClassLoaded{}{%
\phantomsection% \phantomsection%
\addcontentsline{toc}{chapter}{Lists} \addcontentsline{toc}{chapter}{Lists}
@@ -228,6 +232,7 @@
\addcontentsline{toc}{chapter}{Statutory Declaration} \addcontentsline{toc}{chapter}{Statutory Declaration}
\includepdf[pages=-]{declaration_signed.pdf} \includepdf[pages=-]{declaration_signed.pdf}
} }
}
% Colors % Colors
\definecolor{tuCorporateGreen}{HTML}{639A00} \definecolor{tuCorporateGreen}{HTML}{639A00}