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