3 %% Copyright (C) 2000-2018 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.3 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}
19 %\usepackage[paperwidth=18.91cm,paperheight=24.589cm,
20 %inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry}
22 \usepackage[paperwidth=18.91cm,paperheight=24.589cm,
23 vmargin=1.9cm,inner=1.9cm,outer=1.9cm,bindingoffset=0.89cm]{geometry}
27 \usepackage[T1]{fontenc}
28 \usepackage[utf8]{inputenc}
29 \usepackage{ae,aecompl}
37 \fancyhead[RE]{\slshape \rightmark}
38 \fancyhead[RO,LE]{\thepage}
39 \fancyhead[LO]{\slshape \leftmark}
41 \renewcommand{\chaptermark}[1]{%
42 \markboth{\thechapter.%
45 \renewcommand{\sectionmark}[1]{%
46 \markright{\ \thesection%
51 \usepackage{inconsolata}
55 \DefineVerbatimEnvironment{Example}{Verbatim}
56 {xleftmargin=1cm,xrightmargin=1cm}
58 \DefineVerbatimEnvironment{FileExample}{Verbatim}
59 {frame=lines,framerule=0.5mm,framesep=2mm,xleftmargin=1cm,xrightmargin=1cm,fontsize=\footnotesize}
61 \DefineVerbatimEnvironment{Terminal}{Verbatim}
62 {xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
64 \DefineVerbatimEnvironment{Command}{Verbatim}
65 {xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b,
66 fontsize=\footnotesize}
68 \DefineVerbatimEnvironment{Console}{Verbatim}
69 {commandchars=\\\{\},xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
72 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
73 hyperfootnotes=false]{hyperref}
79 \usepackage[italian]{babel}
83 \usepackage[hang,bf,footnotesize,it]{caption}
85 \lstloadlanguages{C++}
88 \providecommand{\defaultdesc}{%
89 \desclabelstyle{\pushlabel}%
90 \renewcommand{\makelabel}[1]{##1}%
91 \setlength{\labelwidth}{0pt}%
95 \usepackage{boxedminipage}
97 \usepackage{longtable}
99 %\usepackage{footnote}
103 \usetikzlibrary{shapes}
107 %\includeonly{macro,pref,intro,fdl}
109 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
110 \huge Guida alla Programmazione in Linux}
112 \author{Simone Piccardi}
116 % Solo prima parte, scommentare
117 % \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
118 % fileunix,filestd,system,signal,session,fileadv,ipc,errors,
119 % ringraziamenti,fdl}
121 % Solo seconda parte e appendici, scommentare
122 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
123 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
131 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
136 Copyright \copyright\ 2000-2018 Simone Piccardi. Permission is granted to
137 copy, distribute and/or modify this document under the terms of the GNU Free
138 Documentation License, Version 1.3 or any later version published by the
139 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
140 in ``Prefazione'', with no Front-Cover Texts, and with no Back-Cover Texts.
141 A copy of the license is included in the section entitled ``GNU Free
142 Documentation License''.
145 \clearemptydoublepage
147 %\ifx\hcode\undefined\else
151 \clearemptydoublepage
155 \clearemptydoublepage
158 \lstset{language=C++}
160 \lstset{basicstyle=\small,
168 basicstyle=\ttfamily,
169 keywordstyle=\color{blue}\ttfamily,
170 ndkeywordstyle=\color{yellow}\ttfamily,
171 % rdkeywordstyle=\ttfamily,
172 identifierstyle=\ttfamily,
173 commentstyle=\color{red}\ttfamily,
174 stringstyle=\color{green}\ttfamily,
175 % texcsststyle=\ttfamily,
176 directivestyle=\color{magenta}\ttfamily
179 % distance from margins for boxedminipage
182 % less hspace for tables
183 \setlength{\tabcolsep}{0.5em}
185 % comment following to have reference to incomplete section using \unavref
187 %\def\incomplete{\relax}
189 \part{Programmazione di sistema}
190 \label{part:progr-di-sist}
205 % Commentare sotto se si genera la prima parte
206 \part{Programmazione di rete}
207 \label{part:progr-di-rete}
218 \label{part:appendici}
223 \include{ringraziamenti}
226 % at the end put the bibliography
229 %\bibliographystyle{phaip}
230 %\bibliographystyle{ieeetr}
231 \bibliographystyle{abstract}
232 \bibliography{biblio}