-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
103 lines (89 loc) · 3.15 KB
/
template.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
% Students template. Simone Libutti, Politecnico di milano, 2016
\documentclass[12pt, english]{scrartcl}
\usepackage[a4paper,bindingoffset=0.2in,left=.5in,right=.5in,top=1in,bottom=1in,footskip=.5in]{geometry}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[T1]{fontenc}
\graphicspath{{./figures/raster/}{./figures/vector/}}
\usepackage{tabularx}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{P}[1]{>{\raggedleft\arraybackslash}p{#1}}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{mathtools}
\usepackage{numprint}
\usepackage{amsmath}
\usepackage[linesnumbered]{algorithm2e}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{float}
\usepackage{siunitx}
\sisetup{load-configurations = abbreviations}
\usepackage{verbatim}
\usepackage[hidelinks]{hyperref}
\usepackage{prettyref}
\newrefformat{fig}{Figure~\ref{#1}}
\newrefformat{tab}{Table~\ref{#1}}
\newrefformat{sec}{Section~\ref{#1}}
\newrefformat{ssec}{Paragraph~\ref{#1}}
\newrefformat{eq}{Equation~\ref{#1}}
\newrefformat{alg}{Algorithm~\ref{#1}}
\makeatletter
\newcommand{\redub}{}
\def\redub#1{%
\@ifnextchar_%
{\@redub{#1}}
{\@latex@warning{Missing argument for \string\redub}\@redub{#1}_{}}%
}
\def\@redub#1_#2{%
\colorlet{currentcolor}{.}%
\color{black}%
\underbrace{\color{currentcolor}#1}_{\color{black}#2}%
\color{currentcolor}%
}
\makeatother
%----------------------------------------------------------------------------------------
% Put your info here
%----------------------------------------------------------------------------------------
\newcommand{\horrule}[1]{\rule{\linewidth}{#1}}
\title{\normalfont \normalsize
\textsc{Politecnico di Milano - Department of Electronics, Information and Bioengineering} \\[1cm]
\includegraphics[scale=1.2]{polimi} \\[1cm]
\horrule{0.5pt} \\[0.4cm]
\huge \textbf{Electronic Pendulum} \\[.5cm] % The assignment title
\large [ Coding Project ] \\ % Pick one: Monography and Coding Project
\horrule{2pt} \\[0.5cm]
\vfill
\author{}
\begin{tabular}{r l}
\textbf{Student} & Claudio Cardinale \\
\textbf{ID} & 849760 \\[0.5cm]
\textbf{Student} & Raffaele Fioratto \\
\textbf{ID} & 854261 \\[0.5cm]
\textbf{Course} & Advanced Operating Systems \\
\textbf{Academic Year} & 2016-2017 \\[0.5cm]
\textbf{Advisor} & Federico Terraneo \\ %e.g. Simone Libutti, Giuseppe Massari
\textbf{Professor} & William Fornaciari \\
\end{tabular}
\date{\normalsize\today}
}
%----------------------------------------------------------------------------------------
% DOCUMENT
%----------------------------------------------------------------------------------------
\begin{document}
\maketitle % Print the title
\pagebreak\tableofcontents\pagebreak
% UNCOMMENT only if monography
%\input{text/monography}
% UNCOMMENT only if coding project
\input{text/coding}
\pagebreak
\bibliographystyle{unsrt}
\bibliography{text/project_bibliography}
\end{document}