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