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