c8491fb74fec7f2fe00f9ef28671eae30aeb0cf6
[gapil.git] / gapil.tex
1 %% gapil.tex
2 %%
3 %% Copyright (C) 2000-2002 Simone Piccardi.  Permission is granted to
4 %% copy, distribute and/or modify this document under the terms of the GNU Free
5 %% Documentation License, Version 1.1 or any later version published by the
6 %% Free Software Foundation; with the Invariant Sections being "Prefazione",
7 %% with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
8 %% license is included in the section entitled "GNU Free Documentation
9 %% License".
10 %%
11 %% GaPiL : Guida alla Programmazione in Linux
12 %%
13 %% S. Piccardi Oct. 2000
14 %% 
15 %% gapil.tex: file principale, gli altri vanno inclusi da questo.
16 %%
17 \documentclass[a4paper,11pt,twoside,italian]{book}
18 %\usepackage{tex4ht}
19 \usepackage[latin1]{inputenc}
20 \usepackage[bookmarks=true]{hyperref}
21 \usepackage{makeidx}
22 %\usepackage{booktabs}
23 %\usepackage{pstcol}
24 \usepackage{pst-node}
25 \usepackage{graphicx}
26 \usepackage{babel}
27 \usepackage{cite}
28 \usepackage{amsmath}
29 \usepackage{amsfonts}
30 \usepackage[hang,bf,footnotesize,it]{caption2}
31 \usepackage{listings}
32 \lstloadlanguages{C++}
33 \usepackage{color} 
34 \usepackage{mdwlist}              % scommentare per la stampa (PS e PDF)
35 \usepackage{boxedminipage}        % scommentare per la stampa (PS e PDF)
36 \usepackage{multirow}
37 \usepackage[T1]{fontenc}
38 \newcommand{\mkinputlistingplain}[1]{\lstinputlisting[labelstep=0,frame=,indent=1cm]{#1}}{}
39 \newcommand{\mkinputlistinglines}[1]{\lstinputlisting[labelstep=0]{#1}}{}
40 %\usepackage{footnote} 
41 %\usepackage{mdwtab} 
42 %
43 % Setting page layout
44 %
45 \oddsidemargin=0.5cm
46 \evensidemargin=-0.5cm
47 \textwidth=16cm
48 \textheight=24.2cm
49 \topmargin=-1.cm
50 %\setcaptionmargin{2cm} 
51 %\renewcommand{\chaptername}{Capitolo}
52 %\renewcommand{\contentsname}{Indice}
53 %\renewcommand{\bibname}{Bibliografia}
54 \pagestyle{headings}
55
56 %\includeonly{macro,pref,intro,fdl}
57
58 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
59 \huge Guida alla Programmazione in Linux} 
60
61 \author{Simone Piccardi}
62
63 \makeindex
64
65 \begin{document}
66
67 \pagenumbering{roman}
68  
69 \maketitle
70
71 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
72 \cleardoublepage}}
73
74 \begin{quote}
75   
76   Copyright \copyright\ 2000-2002 Simone Piccardi.  Permission is granted to
77   copy, distribute and/or modify this document under the terms of the GNU Free
78   Documentation License, Version 1.1 or any later version published by the
79   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
80   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
81   license is included in the section entitled ``GNU Free Documentation
82   License''.
83
84 \end{quote}
85 \clearemptydoublepage
86
87 \tableofcontents
88 \clearemptydoublepage
89 % commentare per la stampa PS e PDF
90 %\include{compatib}    % commentare per la stampa PS e PDF
91 % commentare per la stampa PS e PDF
92 \include{macro}
93 \setcounter{secnumdepth}{-2}
94 \include{pref}
95 \setcounter{secnumdepth}{2}
96 \clearemptydoublepage
97
98 \pagenumbering{arabic}
99
100 \lstset{language=C++} 
101
102 \lstset{basicstyle=\small,
103   labelstyle=\tiny,
104   labelstep=1,
105   labelsep=2pt, 
106   frame=TB,
107   frametextsep=5pt,
108   indent=0.3cm,
109   basicstyle=\ttfamily,
110   keywordstyle=\color{blue}\ttfamily,
111   ndkeywordstyle=\color{yellow}\ttfamily,
112 %  rdkeywordstyle=\ttfamily,
113   identifierstyle=\ttfamily,
114   commentstyle=\color{red}\ttfamily,
115   stringstyle=\color{green}\ttfamily,
116 %  texcsststyle=\ttfamily,
117   directivestyle=\color{magenta}\ttfamily
118
119
120 % distance from margins for boxedminipage
121 %\fboxsep=6pt
122
123
124 \include{intro}
125 \include{process}
126 \include{prochand}
127 \include{fileintro}
128 \include{filedir}
129 \include{fileunix}
130 \include{filestd}
131 \include{system}
132 \include{signal}
133 \include{session}
134 \include{fileadv}
135 \include{ipc}
136 \include{network}
137 \include{socket}
138 \include{elemtcp}
139 \include{simpltcp}
140 \appendix
141 \include{ipprot}
142 \include{tcpprot}
143 \include{errors}
144 \include{ringraziamenti}
145 \include{fdl}
146
147 % at the end put the bibliography
148
149 %\bibliographystyle{phaip}
150 %\bibliography{biblio}
151 \printindex
152
153 \bibliographystyle{ieeetr}
154 \bibliography{biblio}
155
156 \end{document}
157