Only compile necessary frontmatter/backmatter additions (e.g., bib) for single subfiles
This commit is contained in:
+6
-1
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user