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}
|
||||
}
|
||||
|
||||
% 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
|
||||
|
||||
Reference in New Issue
Block a user