Aggiornamento note di copyright
[gapil.git] / gapil.tex
1 %% gapil.tex
2 %%
3 %% Copyright (C) 2000-2013 Simone Piccardi.  Permission is granted to
4 %% copy, distribute and/or modify this document under the terms of the GNU Free
5 %% Documentation License, Version 1.1 or any later version published by the
6 %% Free Software Foundation; with the Invariant Sections being "Un preambolo",
7 %% with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
8 %% license is included in the section entitled "GNU Free Documentation
9 %% License".
10 %%
11 %% GaPiL : Guida alla Programmazione in Linux
12 %%
13 %% S. Piccardi Oct. 2000
14 %% 
15 %% gapil.tex: file principale, gli altri vanno inclusi da questo.
16 %%
17 \documentclass[10pt,twoside]{book}
18 \usepackage[paperwidth=18.91cm,paperheight=24.589cm,
19 inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry}
20
21 % encodings
22 \usepackage[T1]{fontenc}
23 \usepackage[utf8]{inputenc}
24 \usepackage{ae,aecompl}
25
26 %
27 % New header style
28 %
29 \usepackage{fancyhdr}
30 \pagestyle{fancy}
31 \fancyhf{}
32 \fancyhead[RE]{\slshape \rightmark}
33 \fancyhead[RO,LE]{\thepage}
34 \fancyhead[LO]{\slshape \leftmark}
35
36 \renewcommand{\chaptermark}[1]{% 
37 \markboth{\thechapter.% 
38 \ #1}{}} 
39
40 \renewcommand{\sectionmark}[1]{% 
41 \markright{\ \thesection% 
42 \ #1}{}}
43
44
45 % more fonts
46 \usepackage{inconsolata}
47
48 % fancy verbatim
49 \usepackage{fancyvrb}
50 \DefineVerbatimEnvironment{Example}{Verbatim}
51 {xleftmargin=1cm,xrightmargin=1cm}
52
53 \DefineVerbatimEnvironment{FileExample}{Verbatim}
54 {frame=lines,framerule=0.5mm,framesep=2mm,xleftmargin=1cm,xrightmargin=1cm,fontsize=\footnotesize}
55
56 \DefineVerbatimEnvironment{Terminal}{Verbatim}
57 {xleftmargin=\parindent,xrightmargin=\parindent,fontfamily=courier,fontsize=\footnotesize}
58
59 \DefineVerbatimEnvironment{Command}{Verbatim}
60 {xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b,
61 fontfamily=courier,fontsize=\footnotesize}
62
63 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
64 hyperfootnotes=false]{hyperref}
65
66 \usepackage{makeidx}
67 \usepackage{pst-node}
68 \usepackage{eso-pic}
69 \usepackage{graphicx}
70 \usepackage[italian]{babel}
71 \usepackage{cite}
72 \usepackage{amsmath}
73 \usepackage{amsfonts}
74 \usepackage[hang,bf,footnotesize,it]{caption}
75 \usepackage{listings}
76 \lstloadlanguages{C++}
77 \usepackage{color} 
78 \usepackage{mdwlist}
79 \usepackage{boxedminipage}
80 \usepackage{multirow}
81 \usepackage{longtable}
82 \usepackage{varwidth}
83 %\usepackage{footnote} 
84 %\usepackage{mdwtab} 
85
86 \usepackage{tikz}
87 \usetikzlibrary{shapes}
88
89 \frenchspacing
90
91 %\includeonly{macro,pref,intro,fdl}
92
93 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
94 \huge Guida alla Programmazione in Linux} 
95
96 \author{Simone Piccardi}
97
98 \makeindex
99
100 % Solo prima parte, scommentare 
101 % \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
102 %   fileunix,filestd,system,signal,session,fileadv,ipc,errors,
103 %   ringraziamenti,fdl}
104
105 % Solo seconda parte e appendici, scommentare
106 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
107 %  sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
108
109 \begin{document}
110
111 \frontmatter
112
113 \maketitle
114
115 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
116 \cleardoublepage}}
117
118 \begin{quote}
119   
120   Copyright \copyright\ 2000-2011 Simone Piccardi.  Permission is granted to
121   copy, distribute and/or modify this document under the terms of the GNU Free
122   Documentation License, Version 1.1 or any later version published by the
123   Free Software Foundation; with the Invariant Sections being ``Un preambolo''
124   in ``Prefazione'',
125   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
126   license is included in the section entitled ``GNU Free Documentation
127   License''.
128
129 \end{quote}
130 \clearemptydoublepage
131
132 %\ifx\hcode\undefined\else
133 \tableofcontents
134 %\fi
135
136 \clearemptydoublepage
137 \include{macro}
138 \include{preambolo}
139 \include{pref}
140 \clearemptydoublepage
141 \mainmatter
142
143 \lstset{language=C++} 
144
145 \lstset{basicstyle=\small,
146   numbers=left,
147   numberstyle=\tiny,
148   stepnumber=1,
149   numbersep=2pt, 
150   frame=TB,
151   framesep=5pt,
152 %  xleftmargin=0.3cm,
153   basicstyle=\ttfamily,
154   keywordstyle=\color{blue}\ttfamily,
155   ndkeywordstyle=\color{yellow}\ttfamily,
156 %  rdkeywordstyle=\ttfamily,
157   identifierstyle=\ttfamily,
158   commentstyle=\color{red}\ttfamily,
159   stringstyle=\color{green}\ttfamily,
160 %  texcsststyle=\ttfamily,
161   directivestyle=\color{magenta}\ttfamily
162
163
164 % distance from margins for boxedminipage
165 %\fboxsep=6pt
166
167 \part{Programmazione di sistema}
168 \label{part:progr-di-sist}
169 \include{intro}
170 \include{process}
171 \include{prochand}
172 \include{filedir}
173 \include{fileio}
174 %\include{fileunix}
175 %\include{filestd}
176 \include{system}
177 \include{signal}
178 \include{session}
179 \include{ipc}
180 \include{fileadv}
181 \include{thread}
182
183 % Commentare sotto se si genera la prima parte
184 \part{Programmazione di rete}
185 \label{part:progr-di-rete}
186
187 \include{network}
188 \include{socket}
189 \include{tcpsock}
190 \include{sockctrl}
191 \include{othersock}
192 \include{sockadv}
193 \appendix
194
195 \part{Appendici}
196 \label{part:appendici}
197 \include{errors}
198 \include{netlayer}
199 \include{trasplayer}
200 \include{build}
201 \include{ringraziamenti}
202 \include{fdl}
203
204 % at the end put the bibliography
205 \backmatter
206 \printindex
207 %\bibliographystyle{phaip}
208 %\bibliographystyle{ieeetr}
209 \bibliographystyle{abstract}
210 \bibliography{biblio}
211
212 \end{document}