Aggiunte figura dello schema del fortune server con le fifo
[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{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 %\include{compatib}    % commentare per la stampa PS e PDF
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 \include{intro}
109 \include{process}
110 \include{prochand}
111 \include{fileintro}
112 \include{filedir}
113 \include{fileunix}
114 \include{filestd}
115 \include{system}
116 \include{signal}
117 \include{fileadv}
118 \include{ipc}
119 \include{session}
120 \include{network}
121 \include{socket}
122 \include{elemtcp}
123 \include{simpltcp}
124 \appendix
125 \include{ipprot}
126 \include{tcpprot}
127 \include{errors}
128 \include{ringraziamenti}
129 \include{fdl}
130
131 % at the end put the bibliography
132
133 %\bibliographystyle{phaip}
134 %\bibliography{biblio}
135 \printindex
136
137 \bibliographystyle{alpha}
138 \bibliography{biblio}
139
140 \end{document}
141