Revisione delle date del copyright e di alcune tabelle, messe altre quattro
[gapil.git] / gapil.tex
1 %% gapil.tex
2 %%
3 %% Copyright (C) 2000-2004 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 "Prefazione",
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]{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]{caption2}
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
47 \def\tild{\char'176}
48
49
50 %
51 % Setting page layout
52 %
53 %\oddsidemargin=0.5cm
54 %\evensidemargin=-0.5cm
55 %\textwidth=16cm
56 %\textheight=24.2cm
57 %\topmargin=-1.cm
58 \geometry{textheight=24.2cm,textwidth=16cm}
59
60
61 %\setcaptionmargin{2cm} 
62 %\renewcommand{\chaptername}{Capitolo}
63 %\renewcommand{\contentsname}{Indice}
64 %\renewcommand{\bibname}{Bibliografia}
65 \pagestyle{headings}
66
67 %\includeonly{macro,pref,intro,fdl}
68
69 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
70 \huge Guida alla Programmazione in Linux} 
71
72 \author{Simone Piccardi}
73
74 \makeindex
75
76 \begin{document}
77
78 \frontmatter
79
80 \maketitle
81
82 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
83 \cleardoublepage}}
84
85 \begin{quote}
86   
87   Copyright \copyright\ 2000-2004 Simone Piccardi.  Permission is granted to
88   copy, distribute and/or modify this document under the terms of the GNU Free
89   Documentation License, Version 1.1 or any later version published by the
90   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
91   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
92   license is included in the section entitled ``GNU Free Documentation
93   License''.
94
95 \end{quote}
96 \clearemptydoublepage
97
98 %\ifx\hcode\undefined\else
99 \tableofcontents
100 %\fi
101
102 \clearemptydoublepage
103 \include{macro}
104 \include{pref}
105 \clearemptydoublepage
106 \mainmatter
107
108 \lstset{language=C++} 
109
110 \lstset{basicstyle=\small,
111   numbers=left,
112   numberstyle=\tiny,
113   stepnumber=1,
114   numbersep=2pt, 
115   frame=TB,
116   framesep=5pt,
117 %  xleftmargin=0.3cm,
118   basicstyle=\ttfamily,
119   keywordstyle=\color{blue}\ttfamily,
120   ndkeywordstyle=\color{yellow}\ttfamily,
121 %  rdkeywordstyle=\ttfamily,
122   identifierstyle=\ttfamily,
123   commentstyle=\color{red}\ttfamily,
124   stringstyle=\color{green}\ttfamily,
125 %  texcsststyle=\ttfamily,
126   directivestyle=\color{magenta}\ttfamily
127
128
129 % distance from margins for boxedminipage
130 %\fboxsep=6pt
131
132 \part{Programmazione di sistema}
133 \label{part:progr-di-sist}
134 \include{intro}
135 \include{process}
136 \include{prochand}
137 \include{fileintro}
138 \include{filedir}
139 \include{fileunix}
140 \include{filestd}
141 \include{system}
142 \include{signal}
143 \include{session}
144 \include{fileadv}
145 \include{ipc}
146 \part{Programmazione di rete}
147 \label{part:progr-di-rete}
148 \include{network}
149 \include{socket}
150 \include{tcpsock}
151 \include{sockctrl}
152 \include{othersock}
153 \include{sockadv}
154 \appendix
155 \part{Appendici}
156 \label{part:appendici}
157 \include{netlayer}
158 \include{trasplayer}
159 \include{errors}
160 \include{ringraziamenti}
161 \include{fdl}
162
163 % at the end put the bibliography
164 \backmatter
165
166 %\bibliographystyle{phaip}
167 %\bibliography{biblio}
168 \printindex
169
170 \bibliographystyle{ieeetr}
171 \bibliography{biblio}
172
173 \end{document}