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