1364419c8c16540dafaa72db3dc2f8ad84c8ff4c
[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{Guida alla Programmazione in Linux.}
40
41 \author{Simone Piccardi}
42
43 \begin{document}
44
45 \pagenumbering{roman}
46  
47 \maketitle
48
49 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
50 \cleardoublepage}}
51
52 \begin{quote}
53   
54   Copyright \copyright\ 2000-2001 Simone Piccardi.  Permission is granted to
55   copy, distribute and/or modify this document under the terms of the GNU Free
56   Documentation License, Version 1.1 or any later version published by the
57   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
58   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
59   license is included in the section entitled ``GNU Free Documentation
60   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{system}
104 \include{session}
105 \include{signal}
106 \include{ipc}
107 \include{network}
108 \include{socket}
109 \include{elemtcp}
110 \include{simpltcp}
111 \appendix
112 \include{ipprot}
113 \include{tcpprot}
114 \include{errors}
115 \include{fdl}
116
117 % at the end put the bibliography
118
119 %\bibliographystyle{phaip}
120 %\bibliography{biblio}
121
122 \end{document}