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