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