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[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}
51 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
52 hyperfootnotes=false]{hyperref}
58 \usepackage[italian]{babel}
62 \usepackage[hang,bf,footnotesize,it]{caption}
64 \lstloadlanguages{C++}
67 \usepackage{boxedminipage}
69 \usepackage{longtable}
70 %\usepackage{footnote}
74 \usetikzlibrary{shapes}
78 %\includeonly{macro,pref,intro,fdl}
80 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
81 \huge Guida alla Programmazione in Linux}
83 \author{Simone Piccardi}
87 % Solo prima parte, scommentare
88 %\includeonly{macro,preambolo,pref,intro,process,prochand,fileintro,filedir,
89 % fileunix,filestd,system,system,signal,session,fileadv,ipc,errors,
92 % Solo seconda parte e appendici, scommentare
93 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
94 % sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl}
102 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
107 Copyright \copyright\ 2000-2011 Simone Piccardi. Permission is granted to
108 copy, distribute and/or modify this document under the terms of the GNU Free
109 Documentation License, Version 1.1 or any later version published by the
110 Free Software Foundation; with the Invariant Sections being ``Un preambolo''
112 with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the
113 license is included in the section entitled ``GNU Free Documentation
117 \clearemptydoublepage
119 %\ifx\hcode\undefined\else
123 \clearemptydoublepage
127 \clearemptydoublepage
130 \lstset{language=C++}
132 \lstset{basicstyle=\small,
140 basicstyle=\ttfamily,
141 keywordstyle=\color{blue}\ttfamily,
142 ndkeywordstyle=\color{yellow}\ttfamily,
143 % rdkeywordstyle=\ttfamily,
144 identifierstyle=\ttfamily,
145 commentstyle=\color{red}\ttfamily,
146 stringstyle=\color{green}\ttfamily,
147 % texcsststyle=\ttfamily,
148 directivestyle=\color{magenta}\ttfamily
151 % distance from margins for boxedminipage
154 \part{Programmazione di sistema}
155 \label{part:progr-di-sist}
170 % Commentare sotto se si genera la prima parte
171 \part{Programmazione di rete}
172 \label{part:progr-di-rete}
183 \label{part:appendici}
188 \include{ringraziamenti}
191 % at the end put the bibliography
194 %\bibliographystyle{phaip}
195 %\bibliographystyle{ieeetr}
196 \bibliographystyle{abstract}
197 \bibliography{biblio}