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}
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,fontsize=\footnotesize}
59 \DefineVerbatimEnvironment{Command}{Verbatim}
60 {xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b,
61 fontsize=\footnotesize}
63 \DefineVerbatimEnvironment{Console}{Verbatim}
64 {commandchars=\\\{\},xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
67 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
68 hyperfootnotes=false]{hyperref}
74 \usepackage[italian]{babel}
78 \usepackage[hang,bf,footnotesize,it]{caption}
80 \lstloadlanguages{C++}
83 \providecommand{\defaultdesc}{%
84 \desclabelstyle{\pushlabel}%
85 \renewcommand{\makelabel}[1]{##1}%
86 \setlength{\labelwidth}{0pt}%
90 \usepackage{boxedminipage}
92 \usepackage{longtable}
94 %\usepackage{footnote}
98 \usetikzlibrary{shapes}
102 %\includeonly{macro,pref,intro,fdl}
104 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
105 \huge Guida alla Programmazione in Linux}
107 \author{Simone Piccardi}
111 % Solo prima parte, scommentare
112 % \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
113 % fileunix,filestd,system,signal,session,fileadv,ipc,errors,
114 % ringraziamenti,fdl}
116 % Solo seconda parte e appendici, scommentare
117 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
118 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
126 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
131 Copyright \copyright\ 2000-2018 Simone Piccardi. Permission is granted to
132 copy, distribute and/or modify this document under the terms of the GNU Free
133 Documentation License, Version 1.3 or any later version published by the
134 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
135 in ``Prefazione'', with no Front-Cover Texts, and with no Back-Cover Texts.
136 A copy of the license is included in the section entitled ``GNU Free
137 Documentation License''.
140 \clearemptydoublepage
142 %\ifx\hcode\undefined\else
146 \clearemptydoublepage
150 \clearemptydoublepage
153 \lstset{language=C++}
155 \lstset{basicstyle=\small,
163 basicstyle=\ttfamily,
164 keywordstyle=\color{blue}\ttfamily,
165 ndkeywordstyle=\color{yellow}\ttfamily,
166 % rdkeywordstyle=\ttfamily,
167 identifierstyle=\ttfamily,
168 commentstyle=\color{red}\ttfamily,
169 stringstyle=\color{green}\ttfamily,
170 % texcsststyle=\ttfamily,
171 directivestyle=\color{magenta}\ttfamily
174 % distance from margins for boxedminipage
177 \part{Programmazione di sistema}
178 \label{part:progr-di-sist}
193 % Commentare sotto se si genera la prima parte
194 \part{Programmazione di rete}
195 \label{part:progr-di-rete}
206 \label{part:appendici}
211 \include{ringraziamenti}
214 % at the end put the bibliography
217 %\bibliographystyle{phaip}
218 %\bibliographystyle{ieeetr}
219 \bibliographystyle{abstract}
220 \bibliography{biblio}