%=========================================================
% ======\ LiU Thesis/Report Template (Unofficial) /======
%=========================================================
%=========================================================
% About the Template
%=========================================================
%
% Version: 1.02
% Last updated: 2018-07-04 by Anton Lydell
%=========================================================
% This Template (version 1.0) was originally created by:
% Anton Lydell
% Student M.Sc., Energy and Environmental Technology
% Linköping University
% 2018-01-24
% https://www.linkedin.com/in/antonlydell/
%=========================================================
% Template License
%=========================================================
% This template is licensed under Creative Commons:
% (CC BY 4.0) https://creativecommons.org/licenses/by/4.0/
%=========================================================
% Start of the Template
%=========================================================
\documentclass[12pt]{report}
% 12 pt is the default fontsize for the text
\usepackage{setup}
% The file setup.sty contains all packages used and the setup for those.
\usepackage{commands}
% The file commands.sty contains all user defined commands
\title{Thesis Report Template}
\author{Anton Lydell}
\date{July 2018}
\begin{document}
%=========================================================
% Titlepage
%=========================================================
\input{titlepages/thesis1.tex}
% Inserts the titlepage
% There are also two other titlepages:
% report.tex
% thesis2.tex
\blankpage
%=========================================================
% Frontmatter
%=========================================================
\selectlanguage{swedish}
\setcounter{page}{1}
\pagestyle{empty}
\chapter*{Förord}
\addcontentsline{toc}{chapter}{\numberline{}Förord} % Add chapter to table of contents
\thispagestyle{empty}
\pagenumbering{roman} % small roman letters: i ii iii iv
\input{forord}
\blankpage
\selectlanguage{english}
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{\numberline{}Abstract}
\thispagestyle{empty}
\input{abstract}
\blankpage
\selectlanguage{swedish}
\input{avstavning_swe.tex}
% Swedish hyphenation list
\chapter*{Sammanfattning}
\addcontentsline{toc}{chapter}{\numberline{}Sammanfattning}
\thispagestyle{empty}
\input{sammanfattning.tex}
\blankpage
\pagestyle{listsof}
% Pagestyle for TOC, LOF and LOT
% Table of Contents (TOC)
%=========================================================
\thispagestyle{empty}
{\renewcommand{\thispagestyle}[1]{}
\tableofcontents
}
\blankpage
% List of Figures (LOF)
%=========================================================
\thispagestyle{empty}
{\renewcommand{\thispagestyle}[1]{}
\addcontentsline{toc}{chapter}{\numberline{}Figurer}
\listoffigures
}
\blankpage
% List of Tables (LOT)
%=========================================================
\thispagestyle{empty}
{\renewcommand{\thispagestyle}[1]{}
\addcontentsline{toc}{chapter}{\numberline{}Tabeller}
\listoftables
}
\blankpage
% Nomenclature
%=========================================================
\addcontentsline{toc}{chapter}{\numberline{}Nomenklatur}
\pagestyle{nomcl}
\thispagestyle{empty}
\input{nomenklatur}
{\renewcommand{\thispagestyle}[1]{}
\printnomenclature[2.5cm]
}
\blankpage
% Comment the lines above if the Nomenclature is not wanted
%=========================================================
% Mainmatter
%=========================================================
\pagestyle{main}
\setcounter{page}{1}
\pagenumbering{arabic} % Normal page numbers: 1,2,3 ...
\chapter{Inledning} \label{chap:inledning}
\thispagestyle{empty}
\input{inledning/inledning.tex}
\blankpage
\chapter{Teori} \label{chap:teori}
\thispagestyle{empty}
\input{teori/teori.tex}
\blankpage
\chapter{Metod} \label{chap:metod}
\thispagestyle{empty}
\input{metod/metod.tex}
\blankpage
\chapter{Resultat} \label{chap:resultat}
\thispagestyle{empty}
\input{resultat/resultat.tex}
\blankpage
\chapter{Diskussion} \label{chap:diskussion}
\thispagestyle{empty}
\input{diskussion/diskussion.tex}
\blankpage
\chapter{Slutsats} \label{chap:slutsats}
\thispagestyle{empty}
\input{slutsats/slutsats.tex}
\blankpage
%=========================================================
% Backmatter
%=========================================================
% Appendix
%=========================================================
\appendix
\chapter{Namn}\label{app:bilaga1}
\thispagestyle{empty}
\blankpage
% References
%=========================================================
%=========================================================
% References are handled by the biblatex package (https://ctan.org/pkg/biblatex). I recommend using a reference manager to store the references and then copy them to bibTeX-code and paste them into the appropriate .bib-files in the folder "references" as they are needed in the document. Article references go into the file “articles.bib” and books into “books.bib” etc... Personally I use Mendeley (https://www.mendeley.com/) as my reference manager.
\phantomsection
% To make hyperref work correctly
%% Title of the Reference list
\addcontentsline{toc}{chapter}{\numberline{}Referenser}
\printbibheading[title=Referenser]
\thispagestyle{empty}
\printbibliography[heading=none]
% Comment the line above if wanting to divide the reference list into sections.
% The reference list divided into sections
%=========================================================
% Uncomment the lines below when references have been added to the files in the folder references. Don't forget to comment line 196 (\printbibliography[heading=none]) before uncommenting the lines below.
%% Articles
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Artiklar}
%\printbibliography[heading=subbibliography, title=Artiklar, type=article]
%% Books
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Böcker}
%\printbibliography[heading=subbibliography, title=Böcker, type=book, notsubtype=lag]
%% Webpages
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Hemsidor}
%\printbibliography[heading=subbibliography, title=Hemsidor, subtype=hemsida]
%% Interviews
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Intervjuer}
%\printbibliography[heading=subbibliography, title=Intervjuer, subtype=intervju]
%% Laws and regulations
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Lagar}
%\printbibliography[heading=subbibliography, title=Lagar, subtype=lag]
%% Software
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Programvaror}
%\printbibliography[heading=subbibliography, title=Programvaror, subtype=programvara]
%% Reports
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Rapporter}
%\printbibliography[heading=subbibliography, title=Rapporter, type=report]
%% Standards
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Standarder}
%\printbibliography[heading=subbibliography, title=Standarder, subtype=standard]
%% Thesis
%=========================================================
%\phantomsection
%\addcontentsline{toc}{section}{\numberline{}Uppsatser}
%\printbibliography[heading=subbibliography, title=Uppsatser, subtype=thesis]
\end{document}