Aggiornamento note di copyright e correzioni minime.
[gapil.git] / gapil.tex
1 %% gapil.tex
2 %%
3 %% Copyright (C) 2000-2014 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 \DefineVerbatimEnvironment{Console}{Verbatim}
64 {commandchars=\\\{\},xleftmargin=\parindent,xrightmargin=\parindent,fontfamily=courier,fontsize=\footnotesize}
65
66
67 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
68 hyperfootnotes=false]{hyperref}
69
70 \usepackage{makeidx}
71 \usepackage{pst-node}
72 \usepackage{eso-pic}
73 \usepackage{graphicx}
74 \usepackage[italian]{babel}
75 \usepackage{cite}
76 \usepackage{amsmath}
77 \usepackage{amsfonts}
78 \usepackage[hang,bf,footnotesize,it]{caption}
79 \usepackage{listings}
80 \lstloadlanguages{C++}
81 \usepackage{color} 
82 \usepackage{mdwlist}
83 \usepackage{boxedminipage}
84 \usepackage{multirow}
85 \usepackage{longtable}
86 \usepackage{varwidth}
87 %\usepackage{footnote} 
88 %\usepackage{mdwtab} 
89
90 \usepackage{tikz}
91 \usetikzlibrary{shapes}
92
93 \frenchspacing
94
95 %\includeonly{macro,pref,intro,fdl}
96
97 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
98 \huge Guida alla Programmazione in Linux} 
99
100 \author{Simone Piccardi}
101
102 \makeindex
103
104 % Solo prima parte, scommentare 
105 % \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
106 %   fileunix,filestd,system,signal,session,fileadv,ipc,errors,
107 %   ringraziamenti,fdl}
108
109 % Solo seconda parte e appendici, scommentare
110 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
111 %  sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
112
113 \begin{document}
114
115 \frontmatter
116
117 \maketitle
118
119 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
120 \cleardoublepage}}
121
122 \begin{quote}
123   
124   Copyright \copyright\ 2000-2011 Simone Piccardi.  Permission is granted to
125   copy, distribute and/or modify this document under the terms of the GNU Free
126   Documentation License, Version 1.1 or any later version published by the
127   Free Software Foundation; with the Invariant Sections being ``Un preambolo''
128   in ``Prefazione'',
129   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
130   license is included in the section entitled ``GNU Free Documentation
131   License''.
132
133 \end{quote}
134 \clearemptydoublepage
135
136 %\ifx\hcode\undefined\else
137 \tableofcontents
138 %\fi
139
140 \clearemptydoublepage
141 \include{macro}
142 \include{preambolo}
143 \include{pref}
144 \clearemptydoublepage
145 \mainmatter
146
147 \lstset{language=C++} 
148
149 \lstset{basicstyle=\small,
150   numbers=left,
151   numberstyle=\tiny,
152   stepnumber=1,
153   numbersep=2pt, 
154   frame=TB,
155   framesep=5pt,
156 %  xleftmargin=0.3cm,
157   basicstyle=\ttfamily,
158   keywordstyle=\color{blue}\ttfamily,
159   ndkeywordstyle=\color{yellow}\ttfamily,
160 %  rdkeywordstyle=\ttfamily,
161   identifierstyle=\ttfamily,
162   commentstyle=\color{red}\ttfamily,
163   stringstyle=\color{green}\ttfamily,
164 %  texcsststyle=\ttfamily,
165   directivestyle=\color{magenta}\ttfamily
166
167
168 % distance from margins for boxedminipage
169 %\fboxsep=6pt
170
171 \part{Programmazione di sistema}
172 \label{part:progr-di-sist}
173 \include{intro}
174 \include{process}
175 \include{prochand}
176 \include{filedir}
177 \include{fileio}
178 %\include{fileunix}
179 %\include{filestd}
180 \include{system}
181 \include{signal}
182 \include{session}
183 \include{fileadv}
184 \include{ipc}
185 \include{thread}
186
187 % Commentare sotto se si genera la prima parte
188 \part{Programmazione di rete}
189 \label{part:progr-di-rete}
190
191 \include{network}
192 \include{socket}
193 \include{tcpsock}
194 \include{sockctrl}
195 \include{othersock}
196 \include{sockadv}
197 \appendix
198
199 \part{Appendici}
200 \label{part:appendici}
201 \include{errors}
202 \include{netlayer}
203 \include{trasplayer}
204 \include{build}
205 \include{ringraziamenti}
206 \include{fdl}
207
208 % at the end put the bibliography
209 \backmatter
210 \printindex
211 %\bibliographystyle{phaip}
212 %\bibliographystyle{ieeetr}
213 \bibliographystyle{abstract}
214 \bibliography{biblio}
215
216 \end{document}