This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.sty
140 lines (128 loc) · 3.79 KB
/
preamble.sty
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
% LaTeX preamble with various settings
% Roberto Masocco <[email protected]>
% September 11, 2021
% +----------+
% | PACKAGES |
% +----------+
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{csquotes}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage{lastpage}
\usepackage{microtype}
\usepackage{listings}
\lstdefinestyle{oneside}{
basicstyle=\ttfamily\scriptsize,
breakatwhitespace=false,
tabsize=2,
showtabs=false,
showstringspaces=false,
showspaces=false,
numbers=none,
numbersep=5pt,
keepspaces=true,
captionpos=b,
frame=lines
}
\lstset{style=oneside}
\usepackage{afterpage}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage[
backend=biber,
sorting=none,
style=numeric
]{biblatex}
\addbibresource{references.bib}
\renewcommand{\bibfont}{\fontsize{12}{12}\selectfont}
\usepackage{setspace}
\usepackage{subfig}
\usepackage[font=normalsize, labelfont=bf]{caption}
% This helps manage the Table of Contents
\usepackage[subfigure]{tocloft}
% +-------------+
% | GLOBAL VARS |
% +-------------+
\newcommand{\autore}{Roberto Masocco}
\newcommand{\matricola}{0285924}
\newcommand{\Universita}{Università degli studi di Roma\\Tor Vergata}
\newcommand{\UNIVERSITA}{\expandafter\MakeUppercase\expandafter{\Universita}}
\newcommand{\Corso}{Corso di Laurea Magistrale in Ingegneria dell'Automazione}
\newcommand{\CORSO}{\expandafter\MakeUppercase\expandafter{\Corso}}
\newcommand{\Titolo}{Framework di controllo open-source per robot intelligenti}
\newcommand{\TITOLO}{\expandafter\MakeUppercase\expandafter{\Titolo}}
\newcommand{\relatore}{Prof. Daniele Carnevale}
\newcommand{\correlatore}{Ing. Fabrizio Romanelli}
\newcommand{\anno}{2020/2021}
% +------------+
% | PAGE STYLE |
% +------------+
\hfuzz 2pt
\baselineskip=25pt
\hoffset=0pt
\voffset=-20pt
\oddsidemargin=31pt
\topmargin=20pt
\headwidth=435pt
\headheight=15pt
\headsep=40pt
\textheight=620pt
\textwidth=435pt
\footskip=40pt
\pagestyle{fancy}
% Plain page style
\fancypagestyle{plain}{
\fancyhead{}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
% +--------------+
% | ENVIRONMENTS |
% +--------------+
\newtheorem{obs}{Osservazione}[section]
\newenvironment{oss}
{\begin{obs}\begin{normalfont}}
{\hfill $\square \!\!\!\!\checkmark$ \end{normalfont}\end{obs}}
\newtheorem{pro}{Problema}[chapter]
\newenvironment{prob}
{\begin{pro}\begin{normalfont}}
{\hfill $\spadesuit$ \end{normalfont}\end{pro}}
\newtheorem{teor}{Teorema}[section]
\newenvironment{teorema}
{\begin{teor}\textit }
{\hfill \end{teor}}
\newtheorem{defn}{Definizione}[section]
\newenvironment{de}
{\begin{defn}\begin{normalfont}}
{\hfill $\clubsuit$ \end{normalfont}\end{defn}}
% +---------------+
% | TIKZ SETTINGS |
% +---------------+
\usepackage{tikz}
\usetikzlibrary{
arrows,
arrows.meta,
fit,
positioning,
shapes,
automata
}
\tikzstyle{block} = [draw, rectangle, minimum height=3em, minimum width=4em]
\tikzstyle{sum} = [draw, circle, node distance=0.8cm]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\tikzstyle{pinstyle} = [pin edge={to-, thin, black}]
% +---------------------+
% | CUSTOM COMMANDS |
% +---------------------+
% To create a new unnumbered section with all fixes and refs
\newcommand{\newsection}[1]{\section*{#1}\markright{#1}{}\addcontentsline{toc}{section}{#1}}
% To create a new unnumbered subsection with all fixes and refs
\newcommand{\newsubsection}[1]{\subsection*{#1}\addcontentsline{toc}{subsection}{#1}}
% To leave a blank page after the current one
\newcommand{\blankpage}{\null\thispagestyle{empty}\addtocounter{page}{-1}\newpage}