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}
54 %\evensidemargin=-0.5cm
58 \geometry{textheight=24.2cm,textwidth=16cm}
61 %\setcaptionmargin{2cm}
62 %\renewcommand{\chaptername}{Capitolo}
63 %\renewcommand{\contentsname}{Indice}
64 %\renewcommand{\bibname}{Bibliografia}
69 %\includeonly{macro,pref,intro,fdl}
71 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
72 \huge Guida alla Programmazione in Linux}
74 \author{Simone Piccardi}
78 % Solo prima parte, scommentare
79 %\includeonly{macro,preambolo,pref,intro,process,prochand,fileintro,filedir,
80 % fileunix,filestd,system,system,signal,session,fileadv,ipc,errors,
83 % Solo seconda parte e appendici, scommentare
84 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
85 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
93 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
98 Copyright \copyright\ 2000-2007 Simone Piccardi. Permission is granted to
99 copy, distribute and/or modify this document under the terms of the GNU Free
100 Documentation License, Version 1.1 or any later version published by the
101 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
103 with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
104 license is included in the section entitled ``GNU Free Documentation
108 \clearemptydoublepage
110 %\ifx\hcode\undefined\else
114 \clearemptydoublepage
118 \clearemptydoublepage
121 \lstset{language=C++}
123 \lstset{basicstyle=\small,
131 basicstyle=\ttfamily,
132 keywordstyle=\color{blue}\ttfamily,
133 ndkeywordstyle=\color{yellow}\ttfamily,
134 % rdkeywordstyle=\ttfamily,
135 identifierstyle=\ttfamily,
136 commentstyle=\color{red}\ttfamily,
137 stringstyle=\color{green}\ttfamily,
138 % texcsststyle=\ttfamily,
139 directivestyle=\color{magenta}\ttfamily
142 % distance from margins for boxedminipage
145 \part{Programmazione di sistema}
146 \label{part:progr-di-sist}
160 % Commentare sotto se si genera la prima parte
161 \part{Programmazione di rete}
162 \label{part:progr-di-rete}
173 \label{part:appendici}
178 \include{ringraziamenti}
181 % at the end put the bibliography
184 %\bibliographystyle{phaip}
185 %\bibliography{biblio}
188 \bibliographystyle{ieeetr}
189 \bibliography{biblio}