Only compile necessary frontmatter/backmatter additions (e.g., bib) for single subfiles
This commit is contained in:
+39
-34
@@ -166,26 +166,28 @@
|
|||||||
pdfcreator={LuaLaTeX}
|
pdfcreator={LuaLaTeX}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Starting pages
|
% Only compile title/glossaries/toc with the main document
|
||||||
\pagestyle{empty}
|
\ifSubfilesClassLoaded{}{%
|
||||||
\pagenumbering{gobble}
|
\pagestyle{empty}
|
||||||
\input{titlepage}
|
\pagenumbering{gobble}
|
||||||
\cleardoublepage%
|
\input{titlepage}
|
||||||
|
\cleardoublepage%
|
||||||
|
|
||||||
\frontmatter%
|
\frontmatter%
|
||||||
\pagestyle{plain}
|
\pagestyle{plain}
|
||||||
\pagenumbering{Roman}
|
\pagenumbering{Roman}
|
||||||
\tableofcontents%
|
\tableofcontents%
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\todototoc\listoftodos%
|
\todototoc\listoftodos%
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\setacronymstyle{long-short}
|
\setacronymstyle{long-short}
|
||||||
\printacronyms%
|
\printacronyms%
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
\printglossary%
|
\printglossary%
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
}
|
||||||
|
|
||||||
\mainmatter%
|
\mainmatter%
|
||||||
\pagestyle{headings}
|
\pagestyle{headings}
|
||||||
@@ -205,28 +207,31 @@
|
|||||||
% \printbibliography%
|
% \printbibliography%
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\phantomsection%
|
% Only compile lists/declaration with the main document
|
||||||
\addcontentsline{toc}{chapter}{Lists}
|
\ifSubfilesClassLoaded{}{%
|
||||||
|
\phantomsection%
|
||||||
|
\addcontentsline{toc}{chapter}{Lists}
|
||||||
|
|
||||||
\listoffigures%
|
\listoffigures%
|
||||||
\addcontentsline{toc}{section}{List of Figures}
|
\addcontentsline{toc}{section}{List of Figures}
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\listofalgorithms%
|
\listofalgorithms%
|
||||||
\addcontentsline{toc}{section}{List of Algorithms}
|
\addcontentsline{toc}{section}{List of Algorithms}
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\tcblistof[\chapter*]{listings}{List of Listings}
|
\tcblistof[\chapter*]{listings}{List of Listings}
|
||||||
\addcontentsline{toc}{section}{List of Listings}
|
\addcontentsline{toc}{section}{List of Listings}
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\listoftables%
|
\listoftables%
|
||||||
\addcontentsline{toc}{section}{List of Tables}
|
\addcontentsline{toc}{section}{List of Tables}
|
||||||
\cleardoublepage%
|
\cleardoublepage%
|
||||||
|
|
||||||
\phantomsection%
|
\phantomsection%
|
||||||
\addcontentsline{toc}{chapter}{Statutory Declaration}
|
\addcontentsline{toc}{chapter}{Statutory Declaration}
|
||||||
\includepdf[pages=-]{declaration_signed.pdf}
|
\includepdf[pages=-]{declaration_signed.pdf}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Colors
|
% Colors
|
||||||
|
|||||||
Reference in New Issue
Block a user