3 %% Copyright (C) 2000-2007 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 "Un preambolo",
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
11 %% GaPiL : Guida alla Programmazione in Linux
13 %% S. Piccardi Oct. 2000
15 %% gapil.tex: file principale, gli altri vanno inclusi da questo.
17 \documentclass[a4paper,11pt,twoside]{book}
18 \usepackage{ae,aecompl}
19 \usepackage[T1]{fontenc}
20 \usepackage[latin1]{inputenc}
21 %\usepackage[tex4ht, bookmarks=true]{hyperref}
22 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,hyperfootnotes=false]{hyperref}
24 %\usepackage{booktabs}
29 \usepackage[italian]{babel}
30 \newcommand{\includecodesnip}[1]{\lstinputlisting[stepnumber=0,frame=]{#1}}{}
31 \newcommand{\includestruct}[1]{\lstinputlisting[stepnumber=0]{#1}}{}
32 \newcommand{\includecodesample}[1]{\lstinputlisting{#1}}{}
36 \usepackage[hang,bf,footnotesize,it]{caption}
38 \lstloadlanguages{C++}
40 \usepackage{mdwlist} % scommentare per la stampa (PS e PDF)
41 \usepackage{boxedminipage} % scommentare per la stampa (PS e PDF)
43 %\usepackage{footnote}
55 %\evensidemargin=-0.5cm
59 \geometry{textheight=24.2cm,textwidth=16cm}
62 %\setcaptionmargin{2cm}
63 %\renewcommand{\chaptername}{Capitolo}
64 %\renewcommand{\contentsname}{Indice}
65 %\renewcommand{\bibname}{Bibliografia}
70 %\includeonly{macro,pref,intro,fdl}
72 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
73 \huge Guida alla Programmazione in Linux}
75 \author{Simone Piccardi}
79 % Solo prima parte, scommentare
80 %\includeonly{macro,preambolo,pref,intro,process,prochand,fileintro,filedir,
81 % fileunix,filestd,system,system,signal,session,fileadv,ipc,errors,
84 % Solo seconda parte e appendici, scommentare
85 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
86 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
94 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
99 Copyright \copyright\ 2000-2007 Simone Piccardi. Permission is granted to
100 copy, distribute and/or modify this document under the terms of the GNU Free
101 Documentation License, Version 1.1 or any later version published by the
102 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
104 with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
105 license is included in the section entitled ``GNU Free Documentation
109 \clearemptydoublepage
111 %\ifx\hcode\undefined\else
115 \clearemptydoublepage
119 \clearemptydoublepage
122 \lstset{language=C++}
124 \lstset{basicstyle=\small,
132 basicstyle=\ttfamily,
133 keywordstyle=\color{blue}\ttfamily,
134 ndkeywordstyle=\color{yellow}\ttfamily,
135 % rdkeywordstyle=\ttfamily,
136 identifierstyle=\ttfamily,
137 commentstyle=\color{red}\ttfamily,
138 stringstyle=\color{green}\ttfamily,
139 % texcsststyle=\ttfamily,
140 directivestyle=\color{magenta}\ttfamily
143 % distance from margins for boxedminipage
146 \part{Programmazione di sistema}
147 \label{part:progr-di-sist}
161 % Commentare sotto se si genera la prima parte
162 \part{Programmazione di rete}
163 \label{part:progr-di-rete}
174 \label{part:appendici}
179 \include{ringraziamenti}
182 % at the end put the bibliography
185 %\bibliographystyle{phaip}
186 %\bibliography{biblio}
189 \bibliographystyle{ieeetr}
190 \bibliography{biblio}