Iniziato capitolo sul server echo, modificato Makefile secondo i suggerimenti
[gapil.git] / main.tex
1 %%
2 %% GaPiL : Guida alla Programmazione in Linux
3 %%
4 %% S. Piccardi Feb. 2001
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 %
23 % Setting page layout
24 %
25 \oddsidemargin=0.5cm
26 \evensidemargin=-0.5cm
27 \textwidth=16cm
28 \textheight=24.2cm
29 \topmargin=-1.cm
30 %\setcaptionmargin{2cm} 
31 %\renewcommand{\chaptername}{Capitolo}
32 %\renewcommand{\contentsname}{Indice}
33 %\renewcommand{\bibname}{Bibliografia}
34 \pagestyle{headings}
35
36 %\includeonly{macro,pref,intro,fdl}
37
38 \title{Guida alla Programmazione in Linux.}
39
40 \author{Simone Piccardi}
41
42 \begin{document}
43
44 \pagenumbering{roman}
45  
46 \maketitle
47
48 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
49 \cleardoublepage}}
50
51 \begin{quote}
52
53       Copyright \copyright\ 2000-2001  Simone Piccardi.
54       Permission is granted to copy, distribute and/or modify this document
55       under the terms of the GNU Free Documentation License, Version 1.1
56       or any later version published by the Free Software Foundation;
57       with the Invariant Sections being ``Prefazione'', with no
58       Front-Cover Texts, and with no Back-Cover Texts.
59       A copy of the license is included in the section entitled ``GNU
60       Free Documentation License''.
61
62
63 \end{quote}
64 \clearemptydoublepage
65
66
67 \tableofcontents
68 \clearemptydoublepage
69
70
71 \include{macro}
72 \setcounter{secnumdepth}{-2}
73 \include{pref}
74 \setcounter{secnumdepth}{2}
75 \clearemptydoublepage
76
77 \pagenumbering{arabic}
78
79 \lstset{language=C++} 
80
81 \lstset{basicstyle=\small,
82   labelstyle=\tiny,
83   labelstep=1,
84   labelsep=2pt,
85   frame=TB,
86   frametextsep=5pt,
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
98 \include{intro}
99 \include{fileintro}
100 \include{filedir}
101 \include{fileunix}
102 \include{filestd}
103 \include{process}
104 \include{prochand}
105 \include{signal}
106 \include{ipc}
107 \include{network}
108 \include{socket}
109 \include{elemtcp}
110 \include{simpltcp}
111 \include{app_a}
112 \include{app_b}
113 \include{fdl}
114
115  
116 % at the end put the bibliography
117
118 %\bibliographystyle{phaip}
119 %\bibliography{biblio}
120
121 \end{document}
122