Aggiunte minimali
[gapil.git] / gapil.tex
1 %%
2 %% GaPiL : Guida alla Programmazione in Linux
3 %%
4 %% S. Piccardi Feb. 2001
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{booktabs}
11 \usepackage{pstcol}
12 \usepackage{pst-node}
13 \usepackage{graphicx}
14 \usepackage{babel}
15 \usepackage{cite}
16 \usepackage{amsmath}
17 \usepackage{amsfonts}
18 \usepackage[hang,bf,footnotesize,it]{caption2}
19 \usepackage{listings}
20 \lstloadlanguages{C++}
21 \usepackage{color} 
22 %
23 % Setting page layout
24 %
25 \oddsidemargin=0.5cm
26 \evensidemargin=-0.5cm
27 \textwidth=16cm
28 \textheight=24.2cm
29 \topmargin=-1.cm
30 %\setcaptionmargin{2cm} 
31 %\renewcommand{\chaptername}{Capitolo}
32 %\renewcommand{\contentsname}{Indice}
33 %\renewcommand{\bibname}{Bibliografia}
34 \pagestyle{headings}
35
36 %\includeonly{macro,pref,intro,fdl}
37
38 \title{Guida alla Programmazione in Linux.}
39
40 \author{Simone Piccardi}
41
42 \begin{document}
43
44 \pagenumbering{roman}
45  
46 \maketitle
47
48 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
49 \cleardoublepage}}
50
51 \begin{quote}
52
53       Copyright \copyright\ 2000-2001  Simone Piccardi.
54       Permission is granted to copy, distribute and/or modify this document
55       under the terms of the GNU Free Documentation License, Version 1.1
56       or any later version published by the Free Software Foundation;
57       with the Invariant Sections being ``Prefazione'', with no
58       Front-Cover Texts, and with no Back-Cover Texts.
59       A copy of the license is included in the section entitled ``GNU
60       Free Documentation License''.
61
62 \end{quote}
63 \clearemptydoublepage
64
65 \tableofcontents
66 \clearemptydoublepage
67
68
69 \include{macro}
70 \setcounter{secnumdepth}{-2}
71 \include{pref}
72 \setcounter{secnumdepth}{2}
73 \clearemptydoublepage
74
75 \pagenumbering{arabic}
76
77 \lstset{language=C++} 
78
79 \lstset{basicstyle=\small,
80   labelstyle=\tiny,
81   labelstep=1,
82   labelsep=2pt, 
83   frame=TB,
84   frametextsep=5pt,
85   indent=0.3cm,
86   basicstyle=\ttfamily,
87   keywordstyle=\color{blue}\ttfamily,
88   ndkeywordstyle=\color{yellow}\ttfamily,
89 %  rdkeywordstyle=\ttfamily,
90   identifierstyle=\ttfamily,
91   commentstyle=\color{red}\ttfamily,
92   stringstyle=\color{green}\ttfamily,
93 %  texcsststyle=\ttfamily,
94   directivestyle=\color{magenta}\ttfamily
95 }
96 \include{intro}
97 \include{process}
98 \include{prochand}
99 \include{fileintro}
100 \include{filedir}
101 \include{fileunix}
102 \include{filestd}
103 \include{signal}
104 \include{ipc}
105 \include{network}
106 \include{socket}
107 \include{elemtcp}
108 \include{simpltcp}
109 \appendix
110 \include{ipprot}
111 \include{tcpprot}
112 \include{errors}
113 \include{fdl}
114
115 % at the end put the bibliography
116
117 %\bibliographystyle{phaip}
118 %\bibliography{biblio}
119
120 \end{document}