3 %% Copyright (C) 2000-2012 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[10pt,twoside]{book}
18 \usepackage[paperwidth=18.91cm,paperheight=24.589cm,
19 inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry}
22 \usepackage[T1]{fontenc}
23 \usepackage[utf8]{inputenc}
24 \usepackage{ae,aecompl}
32 \fancyhead[RE]{\slshape \rightmark}
33 \fancyhead[RO,LE]{\thepage}
34 \fancyhead[LO]{\slshape \leftmark}
36 \renewcommand{\chaptermark}[1]{%
37 \markboth{\thechapter.%
40 \renewcommand{\sectionmark}[1]{%
41 \markright{\ \thesection%
46 \usepackage{inconsolata}
50 \DefineVerbatimEnvironment{Example}{Verbatim}
51 {xleftmargin=1cm,xrightmargin=1cm}
53 \DefineVerbatimEnvironment{FileExample}{Verbatim}
54 {frame=lines,framerule=0.5mm,framesep=2mm,xleftmargin=1cm,xrightmargin=1cm,fontsize=\footnotesize}
56 \DefineVerbatimEnvironment{Terminal}{Verbatim}
57 {xleftmargin=\parindent,xrightmargin=\parindent,fontfamily=courier,fontsize=\footnotesize}
59 \DefineVerbatimEnvironment{Command}{Verbatim}
60 {xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b,
61 fontfamily=courier,fontsize=\footnotesize}
63 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
64 hyperfootnotes=false]{hyperref}
70 \usepackage[italian]{babel}
74 \usepackage[hang,bf,footnotesize,it]{caption}
76 \lstloadlanguages{C++}
79 \usepackage{boxedminipage}
81 \usepackage{longtable}
82 %\usepackage{footnote}
86 \usetikzlibrary{shapes}
90 %\includeonly{macro,pref,intro,fdl}
92 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
93 \huge Guida alla Programmazione in Linux}
95 \author{Simone Piccardi}
99 % Solo prima parte, scommentare
100 % \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
101 % fileunix,filestd,system,signal,session,fileadv,ipc,errors,
102 % ringraziamenti,fdl}
104 % Solo seconda parte e appendici, scommentare
105 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
106 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
114 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
119 Copyright \copyright\ 2000-2011 Simone Piccardi. Permission is granted to
120 copy, distribute and/or modify this document under the terms of the GNU Free
121 Documentation License, Version 1.1 or any later version published by the
122 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
124 with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
125 license is included in the section entitled ``GNU Free Documentation
129 \clearemptydoublepage
131 %\ifx\hcode\undefined\else
135 \clearemptydoublepage
139 \clearemptydoublepage
142 \lstset{language=C++}
144 \lstset{basicstyle=\small,
152 basicstyle=\ttfamily,
153 keywordstyle=\color{blue}\ttfamily,
154 ndkeywordstyle=\color{yellow}\ttfamily,
155 % rdkeywordstyle=\ttfamily,
156 identifierstyle=\ttfamily,
157 commentstyle=\color{red}\ttfamily,
158 stringstyle=\color{green}\ttfamily,
159 % texcsststyle=\ttfamily,
160 directivestyle=\color{magenta}\ttfamily
163 % distance from margins for boxedminipage
166 \part{Programmazione di sistema}
167 \label{part:progr-di-sist}
182 % Commentare sotto se si genera la prima parte
183 \part{Programmazione di rete}
184 \label{part:progr-di-rete}
195 \label{part:appendici}
200 \include{ringraziamenti}
203 % at the end put the bibliography
206 %\bibliographystyle{phaip}
207 %\bibliographystyle{ieeetr}
208 \bibliographystyle{abstract}
209 \bibliography{biblio}