LaTeX Template

LaTeX template for academic writing

Category

Other

License

Free to use (MIT)

File

main.tex

main.texRead-only preview
% Version 2.x major modifications by: Vel (vel@latextemplates.com)

% ----- DOCUMENT CLASS LOADING ----- %

\documentclass[
12pt,                                            % The default document font size, options: 10pt, 11pt, 12pt
% oneside,                                       % Two side (alternating margins) for binding by default, uncomment to switch to one side
english,                                         % Thesis language, input ngerman for German for instance
singlespacing,                                   % Single line spacing, alternatives: onehalfspacing or doublespacing
liststotoc,                                      % Uncomment to add the list of figures/tables/etc to the table of contents
% toctotoc,                                      % Uncomment to add the main table of contents to the table of contents
% parskip,                                       % Uncomment to add space between paragraphs
headsepline,                                     % Uncomment to get a line under the header
% consistentlayout,                              % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{main_class}                         % The class file specifying the document structure

% ----- DOCUMENT CONFIGURATIONS ----- %

% LaTeX doesnt like \include before parsing
% \begin{document} so we use \input here
\input{Toolkit/colors.tex}                       % Define specific colors
\input{Toolkit/packages.tex}                     % Load all necessary packages
\input{Toolkit/glossary_entries.tex}             % Definitions for the glossary
\input{Toolkit/siunits.tex}                      % Custom siunitx settings
\input{Toolkit/geometry.tex}                     % Document geometry settings
\input{Toolkit/admonitions.tex}                  % Custom blocks for awesomeblocks
\input{Toolkit/overall_info.tex}                  % Thesis information for document class
\input{Toolkit/chapterthumb.tex}                 % All the magic for page thumbs to the side
\input{Toolkit/titlepage_hypersetup.tex}         % Update hyperref setup for titlepage

\setcounter{secnumdepth}{3}                      % Detailing level of section numbering in table of content
\addbibresource{Bibliography.bib}                % Load the bibliography definitions file
\makenoidxglossaries                             % Prepare the glossary entries (does not display yet)

% ----- FRONTMATTER ----- %

\begin{document}

\frontmatter                                     % Roman page numbering style (i, ii, iii, iv...) for the pre-content pages
\pagestyle{plain}                                % Default to the plain heading style

\include{Frontmatter/Titlepage.tex}              % Generate the title page
\include{Toolkit/mathcommands.tex}               % Custom commands for math elements
\include{Toolkit/usercommands.tex}               % Miscellanea custom commands
\include{Toolkit/frontmatter_hypersetup.tex}     % Update hyperref setup for fronmatter

\include{Frontmatter/Declaration.tex}
\include{Frontmatter/Abstract.tex}
\include{Frontmatter/Acknowledgements.tex}
\include{Frontmatter/Quotation.tex}

\setcounter{tocdepth}{1}                         % How detailed table of content should be
\tableofcontents                                 % Prints the main table of contents
\include{Frontmatter/glossary.tex}               % Will now display the glossary
\include{Toolkit/toclists_hypersetup.tex}        % Update hyperref setup for list of figures and list of tables
\listoffigures                                   % Prints the list of figures
\listoftables                                    % Prints the list of tables

% ----- CHAPTERS ----- %

\mainmatter                                      % Numeric (1,2,3...) page numbering
\include{Toolkit/mainmatter_hypersetup.tex}      % Update hyperref setup for mainmatter
\pagestyle{thesis}                               % Return the page headers back to the "thesis" style

\EnableChapterthumb                              % Start displaying chapterthumbs in the mainmatter

\include{Toolkit/chapterstyle.tex}               % Custom chapter style for the mainmatter
\include{Chapters/Theory.tex}

% ----- APPENDICES ----- %

\appendix                                        % Declare following "chapters" are Appendices

\include{Appendices/AppendixTemplate.tex}

\DisableChapterthumb                             % So we don't get chapterthumbs in the bibliography

% ----- BIBLIOGRAPHY ----- %

\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography

\end{document}
Preview
LaTeX Template preview
LaTeX Template LaTeX Template | Bibby | Bibby AI