forked from search-rug/student-report-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
110 lines (86 loc) · 2.79 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
\documentclass[12pt,a4paper,oneside]{report}
% Page and header styling
\usepackage[top=30mm, bottom=25mm, left=30mm, right=38mm]{geometry}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{etoolbox} % for patching commands
% Font encoding and input encoding
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
% Fonts & Symbols
\usepackage{palatino}
\usepackage{mathpazo}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bbding}
\usepackage[skip=10pt plus1pt]{parskip} % paragraph formatting
\usepackage[colorlinks=true, linkcolor=blue, filecolor=magenta, urlcolor=cyan]{hyperref} % link formatting
\usepackage[table,dvipsnames,svgnames,x11names]{xcolor} % more color option
\usepackage{booktabs}% table environment
\usepackage{multirow}% multi-row in tables
\usepackage{multicol}% multi-column in tables
\usepackage{longtable}% multi-page tables
\usepackage{graphicx} % images
\usepackage{subcaption}
% Honor the surrounding font in some version of `siunitx`.
\usepackage[detect-all]{siunitx}
% Format units using the US spelling that is used as a de facto standard.
\sisetup{group-separator={,},group-minimum-digits={3},output-decimal-marker={.}}
% For bibliography management
\usepackage[backend=bibtex, style=numeric]{biblatex}
\addbibresource{references.bib}
% Redefine marks to remove uppercase
\titleformat{\chapter}[hang]{\huge\bfseries}{\thechapter \, |\,}{2pc}{}
\titleformat{\section}[hang]{\Large\bfseries}{\thesection}{1pc}{}
\titleformat{\subsection}[hang]{\large\bfseries}{\thesubsection}{1pc}{}
% Avoid uppercase in TOC
\renewcommand{\cftchapfont}{\normalfont\bfseries}
\renewcommand{\cftsecfont}{\normalfont}
\renewcommand{\cftsubsecfont}{\normalfont}
% Custom header formatting
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\nouppercase{\leftmark}}
\fancyhead[RE,LO]{\nouppercase{\rightmark}}
\fancyfoot[C]{\thepage}
% Patch \chaptermark and \sectionmark to avoid uppercase
\makeatletter
\patchcmd{\chaptermark}{\MakeUppercase}{}{}{}
\patchcmd{\sectionmark}{\MakeUppercase}{}{}{}
\makeatother
% User-defined commands
\newcommand{\X}{\XSolidBrush{}}
\newcommand{\V}{\Checkmark{}}
%%
%% CONTENT
%%
\begin{document}
% Add your title, used in parts of the document
% This is used for both types of document (thesis, report)
\newcommand{\theprojecttitle}{The Title}
% Cover page (choose one, comment out the other)
\include{cover-thesis} % MSc or BSc thesis
\include{cover-report} % internship, SPP, etc.
% Abstract (for theses only)
\newpage
\begin{abstract}
Your abstract goes here.
\end{abstract}
% Table of Contents
\tableofcontents
\newpage
% List of Figures
\listoffigures
\newpage
% List of Tables
\listoftables
\newpage
% Chapters
\include{content}
% Bibliography
\printbibliography
% Appendices (comment out if not needed)
\appendix
\include{appendices}
\end{document}