Risistemati gli esempi per sleep e fissata una referenza
[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}
25 \usepackage{boxedminipage}
26 %\usepackage{footnote} 
27 %\usepackage{mdwtab} 
28 %
29 % Setting page layout
30 %
31 \oddsidemargin=0.5cm
32 \evensidemargin=-0.5cm
33 \textwidth=16cm
34 \textheight=24.2cm
35 \topmargin=-1.cm
36 %\setcaptionmargin{2cm} 
37 %\renewcommand{\chaptername}{Capitolo}
38 %\renewcommand{\contentsname}{Indice}
39 %\renewcommand{\bibname}{Bibliografia}
40 \pagestyle{headings}
41
42 %\includeonly{macro,pref,intro,fdl}
43
44 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
45 \huge Guida alla Programmazione in Linux.} 
46
47 \author{Simone Piccardi}
48
49 \makeindex
50
51 \begin{document}
52
53 \pagenumbering{roman}
54  
55 \maketitle
56
57 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
58 \cleardoublepage}}
59
60 \begin{quote}
61   
62   Copyright \copyright\ 2000-2002 Simone Piccardi.  Permission is granted to
63   copy, distribute and/or modify this document under the terms of the GNU Free
64   Documentation License, Version 1.1 or any later version published by the
65   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
66   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
67   license is included in the section entitled ``GNU Free Documentation
68   License''.
69
70 \end{quote}
71 \clearemptydoublepage
72
73 \tableofcontents
74 \clearemptydoublepage
75
76
77 \include{macro}
78 \setcounter{secnumdepth}{-2}
79 \include{pref}
80 \setcounter{secnumdepth}{2}
81 \clearemptydoublepage
82
83 \pagenumbering{arabic}
84
85 \lstset{language=C++} 
86
87 \lstset{basicstyle=\small,
88   labelstyle=\tiny,
89   labelstep=1,
90   labelsep=2pt, 
91   frame=TB,
92   frametextsep=5pt,
93   indent=0.3cm,
94   basicstyle=\ttfamily,
95   keywordstyle=\color{blue}\ttfamily,
96   ndkeywordstyle=\color{yellow}\ttfamily,
97 %  rdkeywordstyle=\ttfamily,
98   identifierstyle=\ttfamily,
99   commentstyle=\color{red}\ttfamily,
100   stringstyle=\color{green}\ttfamily,
101 %  texcsststyle=\ttfamily,
102   directivestyle=\color{magenta}\ttfamily
103
104
105 % distance from margins for boxedminipage
106 %\fboxsep=6pt
107
108
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{session}
119 \include{signal}
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