-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpkgs.sty
More file actions
96 lines (80 loc) · 2.43 KB
/
pkgs.sty
File metadata and controls
96 lines (80 loc) · 2.43 KB
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pkgs}[2023/01/27 Master Thesis Template Package]
%Packages
\RequirePackage{standalone}
\RequirePackage{import}
\RequirePackage[bottom]{footmisc} %Footmisc needs to be loaded before hyperreff, otherwise the latter gets broken
\RequirePackage{hyperref}
\RequirePackage{indentfirst}
\RequirePackage[backref=true]{biblatex}
\RequirePackage{footnotebackref}
\RequirePackage{xcolor}
\RequirePackage{afterpage}
\RequirePackage{amsfonts}
\RequirePackage{amsmath}
\RequirePackage{graphicx}
\RequirePackage{fontspec}
\RequirePackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\RequirePackage{float}
\RequirePackage{adjustbox}
\RequirePackage[acronym]{glossaries}
\usepackage{multicol}
\usepackage{multirow}
\RequirePackage{caption}
\RequirePackage{subcaption}
\RequirePackage[noabbrev]{cleveref}
\RequirePackage{amssymb}
\RequirePackage{pifont}
\RequirePackage{diagbox}
\RequirePackage{siunitx}
\RequirePackage{changepage}
\RequirePackage{afterpage}
\RequirePackage[toc,page]{appendix}
\crefformat{footnote}{#2\textsuperscript{\normalfont #1}#3}
% Custom parameters
\definecolor{CoverUC}{RGB}{203, 179, 135}
\definecolor{CoverUCTypo}{cmyk}{0.44, 0.50 ,0.68, 0.45}
\newfontfamily{\ArrusBt}{Arrus BT}
\newfontfamily{\ArrusBtSc}{ArrusBT-SmallCaps}
\newfontfamily{\ArrusBtScB}{ArrusBT-BoldSmallCap}
% \setmainfont{Gill Sans Std}
\captionsetup{font=footnotesize}
%Custom commands
\newcommand{\red}[1]{\textcolor{red}{#1}} %To color red portions of text when needed
\newcommand{\reffig}[1]{\hyperref[#1]{Figure~\ref*{#1}}} %Command to make referencing figure easier. Only the figure label needs to be passed as an argument
\newcommand{\cmark}{\ding{51}}%
\newcommand{\xmark}{\ding{55}}%
%Command to break lateral margins for specific elements
\newcommand{\breaklateral}[2]{%
\afterpage{%
\begin{adjustwidth}{-#1}{-#2} % Adjust the margins for this element
#2% % Use the element here
\end{adjustwidth}%
}%
}
%Handles the paths
\ifdefined\mainfile
\addbibresource{Master-Thesis.bib}
\else
\addbibresource{../Master-Thesis.bib}
\fi
\graphicspath{{images/}{../images/}}
%Custom settings
\makeatletter
\newcommand\frontmatter{%
\cleardoublepage
%\@mainmatterfalse
\pagenumbering{roman}}
\newcommand\mainmatter{%
\cleardoublepage
% \@mainmattertrue
\pagenumbering{arabic}}
\newcommand\backmatter{%
\if@openright
\cleardoublepage
\else
\clearpage
\fi
% \@mainmatterfalse
}
\makeatother