-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAppunti_universitari.sty
More file actions
87 lines (77 loc) · 2.45 KB
/
Appunti_universitari.sty
File metadata and controls
87 lines (77 loc) · 2.45 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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Appunti_universitari}
\RequirePackage[margin=2in]{geometry}
\RequirePackage[italian]{babel}
\RequirePackage[T1]{fontenc}
\UseRawInputEncoding
\RequirePackage{graphicx}
\RequirePackage{imakeidx}
\RequirePackage{amsmath}
\RequirePackage{color}
\RequirePackage{xcolor} % Necessario per definire i colori
\RequirePackage[hyperfootnotes=false, colorlinks=true, linkcolor=black]{hyperref}
\RequirePackage[style=numeric-comp,useprefix,hyperref,backend=bibtex]{biblatex}
\RequirePackage{listings} % Serve per evidenziare i blocchi di codice
\RequirePackage{pxfonts} % permette di avere caratteri in lstlisting con formattazione
\setlength{\parskip}{1em} % cambia l'interlinea prima di un nuovo capoverso
\definecolor{pblue}{rgb}{0.13,0.13,1}
\definecolor{pgreen}{rgb}{0,0.5,0}
\definecolor{pred}{rgb}{0.9,0,0}
\definecolor{pgrey}{rgb}{0.46,0.45,0.48}
\definecolor{maroon}{rgb}{0.5,0,0}
\definecolor{plightgrey}{rgb}{0.8,0.8,0.8}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}
\hypersetup{
colorlinks=true,
linkcolor=red!70!black,
urlcolor=blue!70!black
} % Setup colore link
\lstset{ % Riduce la larghezza della tabulazione per lstlisting
tabsize=2,
backgroundcolor=\color{plightgrey},
breaklines=true,
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
columns=fullflexible,
frame=single,
}
\lstdefinelanguage{XML}{
morestring=[b]",
morestring=[s]{>}{<},
morecomment=[s]{<?}{?>},
stringstyle=\color{black},
identifierstyle=\color{darkblue},
keywordstyle=\color{cyan},
morekeywords={xmlns,version,type}% list your attributes here
}
\lstset{
language=XML,
basicstyle=\ttfamily,
morestring=[s]{"}{"},
morecomment=[s]{?}{?},
morecomment=[s]{!--}{--},
commentstyle=\color{white},
moredelim=[s][\color{black}]{>}{<},
moredelim=[s][\color{red}]{\ }{=},
stringstyle=\color{blue},
identifierstyle=\color{maroon}
}
\lstset{language=Java,
showspaces=false,
showtabs=false,
breaklines=true,
showstringspaces=false,
breakatwhitespace=true,
commentstyle=\color{white},
keywordstyle=\color{pblue},
stringstyle=\color{pred},
basicstyle=\ttfamily,
moredelim=[is][\textcolor{pgrey}]{\%\%}{\%\%}
}
\lstset{language=C++,
basicstyle=\ttfamily,
keywordstyle=\color{blue}\ttfamily,
stringstyle=\color{red}\ttfamily,
commentstyle=\color{white}\ttfamily,
morecomment=[l][\color{magenta}]{\#}
}