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