-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
111 lines (98 loc) · 2.78 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
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
111
\documentclass[a4paper, 11pt]{article}
\usepackage[mode=buildnew]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[margin=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{siunitx}
\usepackage{float}
\usepackage{microtype}
\usepackage{subcaption}
\usepackage{caption}
\captionsetup{font=small}
\captionsetup[subfigure]{width=0.9\linewidth}
\captionsetup[figure]{width=0.8\linewidth}
\captionsetup[table]{width=0.8\linewidth}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage[nameinlink,noabbrev,capitalise]{cleveref}
\usepackage{booktabs}
\usepackage{tabulary}
\usepackage{appendix}
\usepackage{tikz}
\usepackage{import}
\usepackage{fancyhdr}
\setlength{\headheight}{14pt}
\fancyhead[L]{Integrated Design Project}
\fancyhead[R]{L211}
\pagestyle{fancy}
\usepackage{babel}
\title{Integrated Design Project}
\author{Team Optimal}
\date{February 2021}
\usepackage{titling}
\makeatletter
\renewcommand{\maketitle}{
\begin{titlingpage}
\begin{center}
\vspace*{4cm}
{\Huge\bfseries\@title}\par
\vspace*{2cm}
\Large
\@author\par\bigskip
L211\par\bigskip
Robot Names: Optimal \& Solution\par
\vspace*{2cm}
\begin{tabular}{cc}
130 & 131 \\
Karl Paul Parmakson kp330 & Tim Clifford tc565 \\
& Jason Brown jrb239 \\
132 & 133\\
Raksina Phongsermsuk rp663 & Ghifari Pradana gp473\\
Youjin Yu yy471 & Weixuan Zhang wz315
\end{tabular}\par
\vspace*{2cm}
Trinity College\par
\vspace*{2cm}
\@date
\end{center}
\end{titlingpage}
}
\makeatother
% Lab groups:
% Tim Clifford tc565 131
% Jason Brown jrb239 131
% Ghifari Pradana gp473 133
% Weixuan Zhang wz315 133
% Raksina Phongsermsuk rp663 132
% Youjin Yu yy471 132
% Karl Paul Parmakson kp330 130
%%--------------------------------------------------------------------------
%% Code Highlighting
%%--------------------------------------------------------------------------
\usepackage{xcolor}
\usepackage{listings}
\definecolor{pyorange}{RGB}{255,119,0}
\definecolor{pyblue}{RGB}{0,0,255}
\definecolor{pypurple}{RGB}{144,0,144}
\definecolor{pyred}{RGB}{221,0,0}
\definecolor{pygreen}{RGB}{0,170,0}
\definecolor{pyblack}{RGB}{0,0,0}
\lstdefinestyle{pystyle}{
commentstyle = \color{pygreen},
keywordstyle = \color{pyblue},
stringstyle = \color{pyorange},
basicstyle = \small\color{pyblack}\ttfamily,
breaklines = true, %automatic line breaking of long lines
numbers = left,
numberstyle=\tiny,
showstringspaces = false,
stepnumber = 2,
xleftmargin=17pt,
captionpos=b
}
\lstset{style=pystyle,language=Python}
%%--------------------------------------------------------------------------
%% References
%%--------------------------------------------------------------------------
\usepackage[style=nature]{biblatex}
% \bibliography{bibliography.bib}