Aggiornamento anno note di copyright, dimenticato da gennaio...
[gapil.git] / gapil.tex
1 %% gapil.tex
2 %%
3 %% Copyright (C) 2000-2008 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[a4paper,11pt,twoside]{book}
18 \usepackage{ae,aecompl}
19 \usepackage[T1]{fontenc}
20 \usepackage[latin1]{inputenc}
21 %\usepackage[tex4ht, bookmarks=true]{hyperref}
22 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,hyperfootnotes=false]{hyperref}
23 \usepackage{makeidx}
24 %\usepackage{booktabs}
25 %\usepackage{pstcol}
26 %\usepackage{pslatex}
27 \usepackage{pst-node}
28 \usepackage{graphicx}
29 \usepackage[italian]{babel}
30 \newcommand{\includecodesnip}[1]{\lstinputlisting[stepnumber=0,frame=]{#1}}{}
31 \newcommand{\includestruct}[1]{\lstinputlisting[stepnumber=0]{#1}}{}
32 \newcommand{\includecodesample}[1]{\lstinputlisting{#1}}{}
33 \usepackage{cite}
34 \usepackage{amsmath}
35 \usepackage{amsfonts}
36 \usepackage[hang,bf,footnotesize,it]{caption}
37 \usepackage{listings}
38 \lstloadlanguages{C++}
39 \usepackage{color} 
40 \usepackage{mdwlist}              % scommentare per la stampa (PS e PDF)
41 \usepackage{boxedminipage}        % scommentare per la stampa (PS e PDF)
42 \usepackage{multirow}
43 %\usepackage{footnote} 
44 %\usepackage{mdwtab} 
45 \usepackage{geometry}
46 \usepackage{fancyvrb}
47
48 \usepackage{tikz}
49 \usetikzlibrary{shapes}
50
51 \def\tild{\char'176}
52
53 %
54 % Setting page layout
55 %
56 %\oddsidemargin=0.5cm
57 %\evensidemargin=-0.5cm
58 %\textwidth=16cm
59 %\textheight=24.2cm
60 %\topmargin=-1.cm
61 \geometry{textheight=24.2cm,textwidth=16cm}
62
63
64 %\setcaptionmargin{2cm} 
65 %\renewcommand{\chaptername}{Capitolo}
66 %\renewcommand{\contentsname}{Indice}
67 %\renewcommand{\bibname}{Bibliografia}
68 \pagestyle{headings}
69
70 \frenchspacing
71
72 %\includeonly{macro,pref,intro,fdl}
73
74 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
75 \huge Guida alla Programmazione in Linux} 
76
77 \author{Simone Piccardi}
78
79 \makeindex
80
81 % Solo prima parte, scommentare 
82 %\includeonly{macro,preambolo,pref,intro,process,prochand,fileintro,filedir,
83 %  fileunix,filestd,system,system,signal,session,fileadv,ipc,errors,
84 %  ringraziamenti,fdl}
85
86 % Solo seconda parte e appendici, scommentare
87 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
88 %  sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
89
90 \begin{document}
91
92 \frontmatter
93
94 \maketitle
95
96 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
97 \cleardoublepage}}
98
99 \begin{quote}
100   
101   Copyright \copyright\ 2000-2008 Simone Piccardi.  Permission is granted to
102   copy, distribute and/or modify this document under the terms of the GNU Free
103   Documentation License, Version 1.1 or any later version published by the
104   Free Software Foundation; with the Invariant Sections being ``Un preambolo''
105   in ``Prefazione'',
106   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
107   license is included in the section entitled ``GNU Free Documentation
108   License''.
109
110 \end{quote}
111 \clearemptydoublepage
112
113 %\ifx\hcode\undefined\else
114 \tableofcontents
115 %\fi
116
117 \clearemptydoublepage
118 \include{macro}
119 \include{preambolo}
120 \include{pref}
121 \clearemptydoublepage
122 \mainmatter
123
124 \lstset{language=C++} 
125
126 \lstset{basicstyle=\small,
127   numbers=left,
128   numberstyle=\tiny,
129   stepnumber=1,
130   numbersep=2pt, 
131   frame=TB,
132   framesep=5pt,
133 %  xleftmargin=0.3cm,
134   basicstyle=\ttfamily,
135   keywordstyle=\color{blue}\ttfamily,
136   ndkeywordstyle=\color{yellow}\ttfamily,
137 %  rdkeywordstyle=\ttfamily,
138   identifierstyle=\ttfamily,
139   commentstyle=\color{red}\ttfamily,
140   stringstyle=\color{green}\ttfamily,
141 %  texcsststyle=\ttfamily,
142   directivestyle=\color{magenta}\ttfamily
143
144
145 % distance from margins for boxedminipage
146 %\fboxsep=6pt
147
148 \part{Programmazione di sistema}
149 \label{part:progr-di-sist}
150 \include{intro}
151 \include{process}
152 \include{prochand}
153 \include{fileintro}
154 \include{filedir}
155 \include{fileunix}
156 \include{filestd}
157 \include{system}
158 \include{signal}
159 \include{session}
160 \include{fileadv}
161 \include{ipc}
162 \include{thread}
163
164 % Commentare sotto se si genera la prima parte
165 \part{Programmazione di rete}
166 \label{part:progr-di-rete}
167
168 \include{network}
169 \include{socket}
170 \include{tcpsock}
171 \include{sockctrl}
172 \include{othersock}
173 \include{sockadv}
174 \appendix
175
176 \part{Appendici}
177 \label{part:appendici}
178 \include{netlayer}
179 \include{trasplayer}
180 \include{errors}
181 \include{build}
182 \include{ringraziamenti}
183 \include{fdl}
184
185 % at the end put the bibliography
186 \backmatter
187
188 %\bibliographystyle{phaip}
189 %\bibliography{biblio}
190 \printindex
191
192 \bibliographystyle{ieeetr}
193 \bibliography{biblio}
194
195 \end{document}