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