3 %% Copyright (C) 2000-2011 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[utf8]{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}
49 \usetikzlibrary{shapes}
57 %\evensidemargin=-0.5cm
61 \geometry{textheight=24.2cm,textwidth=16cm}
64 %\setcaptionmargin{2cm}
65 %\renewcommand{\chaptername}{Capitolo}
66 %\renewcommand{\contentsname}{Indice}
67 %\renewcommand{\bibname}{Bibliografia}
72 %\includeonly{macro,pref,intro,fdl}
74 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
75 \huge Guida alla Programmazione in Linux}
77 \author{Simone Piccardi}
81 % Solo prima parte, scommentare
82 %\includeonly{macro,preambolo,pref,intro,process,prochand,fileintro,filedir,
83 % fileunix,filestd,system,system,signal,session,fileadv,ipc,errors,
86 % Solo seconda parte e appendici, scommentare
87 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
88 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
96 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
101 Copyright \copyright\ 2000-2009 Simone Piccardi. Permission is granted to
102 copy, distribute and/or modify this document under the terms of the GNU Free
103 Documentation License, Version 1.1 or any later version published by the
104 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
106 with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
107 license is included in the section entitled ``GNU Free Documentation
111 \clearemptydoublepage
113 %\ifx\hcode\undefined\else
117 \clearemptydoublepage
121 \clearemptydoublepage
124 \lstset{language=C++}
126 \lstset{basicstyle=\small,
134 basicstyle=\ttfamily,
135 keywordstyle=\color{blue}\ttfamily,
136 ndkeywordstyle=\color{yellow}\ttfamily,
137 % rdkeywordstyle=\ttfamily,
138 identifierstyle=\ttfamily,
139 commentstyle=\color{red}\ttfamily,
140 stringstyle=\color{green}\ttfamily,
141 % texcsststyle=\ttfamily,
142 directivestyle=\color{magenta}\ttfamily
145 % distance from margins for boxedminipage
148 \part{Programmazione di sistema}
149 \label{part:progr-di-sist}
164 % Commentare sotto se si genera la prima parte
165 \part{Programmazione di rete}
166 \label{part:progr-di-rete}
177 \label{part:appendici}
182 \include{ringraziamenti}
185 % at the end put the bibliography
188 %\bibliographystyle{phaip}
189 %\bibliography{biblio}
192 \bibliographystyle{ieeetr}
193 \bibliography{biblio}