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}
29 \usepackage[T1]{fontenc}
30 \usepackage[utf8]{inputenc}
31 \usepackage{ae,aecompl}
34 \usepackage{inconsolata}
43 \fancyhead[RE]{\slshape \rightmark}
44 \fancyhead[RO,LE]{\thepage}
45 \fancyhead[LO]{\slshape \leftmark}
47 \renewcommand{\chaptermark}[1]{%
48 \markboth{\thechapter.%
51 \renewcommand{\sectionmark}[1]{%
52 \markright{\ \thesection%
58 \DefineVerbatimEnvironment{Example}{Verbatim}
59 {xleftmargin=1cm,xrightmargin=1cm}
61 \DefineVerbatimEnvironment{FileExample}{Verbatim}
62 {frame=lines,framerule=0.5mm,framesep=2mm,xleftmargin=1cm,xrightmargin=1cm,fontsize=\footnotesize}
64 \DefineVerbatimEnvironment{Terminal}{Verbatim}
65 {xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
67 \DefineVerbatimEnvironment{Command}{Verbatim}
68 {xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b,
69 fontsize=\footnotesize}
71 \DefineVerbatimEnvironment{Console}{Verbatim}
72 {commandchars=\\\{\},xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
75 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
76 hyperfootnotes=false]{hyperref}
82 \usepackage[italian]{babel}
86 \usepackage[hang,bf,footnotesize,it]{caption}
88 \lstloadlanguages{C++}
91 \providecommand{\defaultdesc}{%
92 \desclabelstyle{\pushlabel}%
93 \renewcommand{\makelabel}[1]{##1}%
94 \setlength{\labelwidth}{0pt}%
98 \usepackage{boxedminipage}
100 \usepackage{longtable}
101 \usepackage{varwidth}
102 %\usepackage{footnote}
106 \usetikzlibrary{shapes}
110 %\includeonly{macro,pref,intro,fdl}
112 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
113 \huge Guida alla Programmazione in Linux}
115 \author{Simone Piccardi}
119 % Solo prima parte, scommentare
120 % \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
121 % fileunix,filestd,system,signal,session,fileadv,ipc,errors,
122 % ringraziamenti,fdl}
124 % Solo seconda parte e appendici, scommentare
125 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
126 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
134 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
139 Copyright \copyright\ 2000-2018 Simone Piccardi. Permission is granted to
140 copy, distribute and/or modify this document under the terms of the GNU Free
141 Documentation License, Version 1.3 or any later version published by the
142 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
143 in ``Prefazione'', with no Front-Cover Texts, and with no Back-Cover Texts.
144 A copy of the license is included in the section entitled ``GNU Free
145 Documentation License''.
148 \clearemptydoublepage
150 %\ifx\hcode\undefined\else
154 \clearemptydoublepage
158 \clearemptydoublepage
161 \lstset{language=C++}
163 \lstset{basicstyle=\small,
171 basicstyle=\ttfamily,
172 keywordstyle=\color{blue}\ttfamily,
173 ndkeywordstyle=\color{yellow}\ttfamily,
174 % rdkeywordstyle=\ttfamily,
175 identifierstyle=\ttfamily,
176 commentstyle=\color{red}\ttfamily,
177 stringstyle=\color{green}\ttfamily,
178 % texcsststyle=\ttfamily,
179 directivestyle=\color{magenta}\ttfamily
182 % distance from margins for boxedminipage
185 % less hspace for tables
186 \setlength{\tabcolsep}{0.5em}
188 % comment following to have reference to incomplete section using \unavref
190 \def\incomplete{\relax}
192 \part{Programmazione di sistema}
193 \label{part:progr-di-sist}
207 % Commentare sotto se si genera la prima parte
208 \part{Programmazione di rete}
209 \label{part:progr-di-rete}
220 \label{part:appendici}
225 \include{ringraziamenti}
228 % at the end put the bibliography
231 %\bibliographystyle{phaip}
232 %\bibliographystyle{ieeetr}
233 \bibliographystyle{abstract}
234 \bibliography{biblio}