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}
}
% Starting pages
% Only compile title/glossaries/toc with the main document
\ifSubfilesClassLoaded{}{%
\pagestyle{empty}
\pagenumbering{gobble}
\input{titlepage}
@@ -186,6 +187,7 @@
\cleardoublepage%
\printglossary%
\cleardoublepage%
}
\mainmatter%
\pagestyle{headings}
@@ -205,6 +207,8 @@
% \printbibliography%
\cleardoublepage%
% Only compile lists/declaration with the main document
\ifSubfilesClassLoaded{}{%
\phantomsection%
\addcontentsline{toc}{chapter}{Lists}
@@ -227,6 +231,7 @@
\phantomsection%
\addcontentsline{toc}{chapter}{Statutory Declaration}
\includepdf[pages=-]{declaration_signed.pdf}
}
}
% Colors