Revisione completa (e relativa razionalizzazione) dei sorgenti degli esempi.
[gapil.git] / gapil.tex
1 %%
2 %% GaPiL : Guida alla Programmazione in Linux
3 %%
4 %% S. Piccardi Oct. 2000
5 %% 
6 %% main.tex: file principale, gli altri vanno inclusi da questo.
7 %%
8 \documentclass[a4paper,11pt,twoside,italian]{book}
9 \usepackage[latin1]{inputenc}
10 \usepackage[bookmarks=true]{hyperref}
11 \usepackage{makeidx}
12 %\usepackage{booktabs}
13 \usepackage{pstcol}
14 \usepackage{pst-node}
15 \usepackage{graphicx}
16 \usepackage{babel}
17 \usepackage{cite}
18 \usepackage{amsmath}
19 \usepackage{amsfonts}
20 \usepackage[hang,bf,footnotesize,it]{caption2}
21 \usepackage{listings}
22 \lstloadlanguages{C++}
23 \usepackage{color} 
24 \usepackage{mdwlist}              % scommentare per la stampa (PS e PDF)
25 \usepackage{boxedminipage}        % scommentare per la stampa (PS e PDF)
26 \usepackage{multirow}
27 %\usepackage{footnote} 
28 %\usepackage{mdwtab} 
29 %
30 % Setting page layout
31 %
32 \oddsidemargin=0.5cm
33 \evensidemargin=-0.5cm
34 \textwidth=16cm
35 \textheight=24.2cm
36 \topmargin=-1.cm
37 %\setcaptionmargin{2cm} 
38 %\renewcommand{\chaptername}{Capitolo}
39 %\renewcommand{\contentsname}{Indice}
40 %\renewcommand{\bibname}{Bibliografia}
41 \pagestyle{headings}
42
43 %\includeonly{macro,pref,intro,fdl}
44
45 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
46 \huge Guida alla Programmazione in Linux} 
47
48 \author{Simone Piccardi}
49
50 \makeindex
51
52 \begin{document}
53
54 \pagenumbering{roman}
55  
56 \maketitle
57
58 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
59 \cleardoublepage}}
60
61 \begin{quote}
62   
63   Copyright \copyright\ 2000-2002 Simone Piccardi.  Permission is granted to
64   copy, distribute and/or modify this document under the terms of the GNU Free
65   Documentation License, Version 1.1 or any later version published by the
66   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
67   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
68   license is included in the section entitled ``GNU Free Documentation
69   License''.
70
71 \end{quote}
72 \clearemptydoublepage
73
74 \tableofcontents
75 \clearemptydoublepage
76 % commentare per la stampa PS e PDF
77 %\include{compatib}    % commentare per la stampa PS e PDF
78 % commentare per la stampa PS e PDF
79 \include{macro}
80 \setcounter{secnumdepth}{-2}
81 \include{pref}
82 \setcounter{secnumdepth}{2}
83 \clearemptydoublepage
84
85 \pagenumbering{arabic}
86
87 \lstset{language=C++} 
88
89 \lstset{basicstyle=\small,
90   labelstyle=\tiny,
91   labelstep=1,
92   labelsep=2pt, 
93   frame=TB,
94   frametextsep=5pt,
95   indent=0.3cm,
96   basicstyle=\ttfamily,
97   keywordstyle=\color{blue}\ttfamily,
98   ndkeywordstyle=\color{yellow}\ttfamily,
99 %  rdkeywordstyle=\ttfamily,
100   identifierstyle=\ttfamily,
101   commentstyle=\color{red}\ttfamily,
102   stringstyle=\color{green}\ttfamily,
103 %  texcsststyle=\ttfamily,
104   directivestyle=\color{magenta}\ttfamily
105
106
107 % distance from margins for boxedminipage
108 %\fboxsep=6pt
109
110 \include{intro}
111 \include{process}
112 \include{prochand}
113 \include{fileintro}
114 \include{filedir}
115 \include{fileunix}
116 \include{filestd}
117 \include{system}
118 \include{signal}
119 \include{session}
120 \include{fileadv}
121 \include{ipc}
122 \include{network}
123 \include{socket}
124 \include{elemtcp}
125 \include{simpltcp}
126 \appendix
127 \include{ipprot}
128 \include{tcpprot}
129 \include{errors}
130 \include{ringraziamenti}
131 \include{fdl}
132
133 % at the end put the bibliography
134
135 %\bibliographystyle{phaip}
136 %\bibliography{biblio}
137 \printindex
138
139 \bibliographystyle{alpha}
140 \bibliography{biblio}
141
142 \end{document}
143