-
Notifications
You must be signed in to change notification settings - Fork 1
/
preamble.tex
70 lines (56 loc) · 1.75 KB
/
preamble.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
%% Variables
%%
%% Customize the variables on variables.tex before continuing
\input{variables}
\documentclass[12pt, twoside, headsepline, footsepline]{scrreprt}
%% Packages
\usepackage[\paperType,
width=\paperWidth,
top=\marginTop,
bottom=\marginBottom,
bindingoffset=\bindingOffset]{geometry}
\usepackage[ruled,vlined]{algorithm2e}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{scrlayer-scrpage}
\usepackage{subfiles}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepackage{tikz}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber,style=alphabetic]{biblatex}
\addbibresource{references.bib}
\usepackage{lipsum} % This should be removed later
\automark[chapter]{chapter}
\pagestyle{scrheadings}
\ifoot{\projectAuthor}
%% Commands
%%
%% New and modified commands
% \blankpage : adds an empty page after current
\def\blankpage {
\leavevmode
\thispagestyle{empty}
\newpage
}
% scrdedication : Environment for a dedication page
\newenvironment{scrdedication}
{
\clearpage % we want a new page
\thispagestyle{empty} % no header and footer
\vspace*{\stretch{1}} % some space at the top
\itshape % the text is in italics
\centering % text is centered
}
{
\par % end the paragraph
\vspace{\stretch{1}} % space at bottom is the same as at the top
\clearpage % finish off the page
}
% \fnurl : for url footnotes
\newcommand\fnurl[2]{\href{#2}{#1}\footnote{\url{#2}}}
\title{\projectTitle}
\author{\projectAuthor}
\date{\projectDate}