-
Notifications
You must be signed in to change notification settings - Fork 1
/
TecnologieOpenSource.tex
186 lines (147 loc) · 5.31 KB
/
TecnologieOpenSource.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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Classic Lined Title Page
% LaTeX Template
% Version 1.0 (27/12/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Peter Wilson (herries.press@earthlink.net)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Instructions for using this template:
% This title page compiles as is. If you wish to include this title page in
% another document, you will need to copy everything before
% \begin{document} into the preamble of your document. The title page is
% then included using \titleAT within your document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{titlesec}
\usepackage{amssymb,amsmath}
\usepackage[italian]{babel}
\usepackage[titles]{tocloft}
\usepackage{appendix}
\hypersetup{%
pdfborder = {0 0 0}
}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[svgnames]{xcolor} % Required to specify font color
\usepackage{eurosym}
\newcommand*{\plogo}{\fbox{$\mathcal{PL}$}} % Generic publisher logo
\usepackage{listings}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{ragged2e}
\usepackage{xmpincl} %Aggiunge metadati sulla licenza CC
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\newcommand*{\titleAT}{\begingroup % Create the command for including the title page in the document
\newlength{\drop} % Command for generating a specific amount of whitespace
\drop=0.1\textheight % Define the command as 10% of the total text height
\rule{\textwidth}{1pt}\par % Thick horizontal line
\vspace{2pt}\vspace{-\baselineskip} % Whitespace between lines
\rule{\textwidth}{0.4pt}\par % Thin horizontal line
\vspace{\drop} % Whitespace between the top lines and title
\begin{center} % Center all text
\textcolor{Black}{ % Red font color
{\Huge Appunti}\\[0.5\baselineskip] % Title line 1
{\Large di}\\[0.75\baselineskip] % Title line 2
{\Huge Tecnologie Open Source}} % Title line 3
\\[2\baselineskip]
{\Large \version{}}
\vspace{0.25\drop} % Whitespace between the title and short horizontal line
\rule{1\textwidth}{0.4pt}\par % Short horizontal line under the title
\vspace{\drop} % Whitespace between the thin horizontal line and the author name
\end{center}
\vfill % Whitespace between the author name and publisher text
\vfill
{\large Luca De Franceschi}
\hfill
{\large Università degli studi di Padova}
%\rule{\textwidth}{0.4pt}\par % Thin horizontal line
%\vspace{2pt}\vspace{-\baselineskip} % Whitespace between lines
%\rule{\textwidth}{1pt}\par % Thick horizontal line
\endgroup}
\titleformat{\chapter}[display]
{}{\hfill\rule{.7\textwidth}{3pt}}{2pt}
{\hspace*{.3\textwidth}\huge\bfseries}[\addvspace{1pt}]
\titleformat{name=\chapter,numberless}[display]
{}{\hfill\rule{.7\textwidth}{3pt}}{2pt}
{\hspace*{.3\textwidth}\huge\bfseries}[\addvspace{1pt}]
\renewcommand*\contentsname{Indice}
\newcommand{\glossario}[1]{\textit{#1\ped{G}}}
\newcommand{\virg}[1]{``#1''}
\lstset{frame=shadowbox,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true
tabsize=3
}
\renewcommand{\lstlistingname}{Listato}
\renewcommand{\footrulewidth}{0.4pt}
\newcommand{\changefont}{%
\fontsize{5}{7}\selectfont
}
%----------------------------------------------------------------------------------------
% CONSTANTS
%----------------------------------------------------------------------------------------
\newcommand{\version}{v0.9.2}
\newcommand{\authorName}{Luca De Franceschi}
%----------------------------------------------------------------------------------------
% DOCUMENT HEADER
%----------------------------------------------------------------------------------------
\includexmp{CC_BY_SA_ATOS}
\begin{document}
\justifying
\titleAT % This command includes the title page
\pagestyle{empty}
\newpage
\tableofcontents
\clearpage
%----------------------------------------------------------------------------------------
% HEADER FORMAT
%----------------------------------------------------------------------------------------
\fancyhf{}
\fancyhead[RE]{\small\scshape\nouppercase{\leftmark}}
\fancyhead[LO]{\small\scshape\nouppercase{\rightmark}}
\fancyhead[LE,RO]{\small\thepage}
\lhead{\rightmark}
\rhead{\leftmark}
\rfoot{\thepage/\pageref{LastPage}}
\lfoot{\authorName}
\pagestyle{fancy}
%----------------------------------------------------------------------------------------
% CONTENT
%----------------------------------------------------------------------------------------
\include{capitolo-introduzione}
\include{nascita-copyright}
\include{storia-software-libero}
\include{ultimo-degli-hacker}
\include{open-source}
\include{licenze-software}
\include{open-content}
%\include{rdf}
%\include{svn}
%\appendix
%\input{glossario}
\end{document}