Varie correzioni, completata revisione capitolo sull'I/O su file
[gapil.git] / gapil.tex
index 34c22f78ed8de06130d6c835d4d6744f27614cb1..4439b5bc871f2814507fddc398c3c268873a9c1e 100644 (file)
--- a/gapil.tex
+++ b/gapil.tex
@@ -1,8 +1,8 @@
 %% gapil.tex
 %%
-%% Copyright (C) 2000-2011 Simone Piccardi.  Permission is granted to
+%% Copyright (C) 2000-2019 Simone Piccardi.  Permission is granted to
 %% copy, distribute and/or modify this document under the terms of the GNU Free
-%% Documentation License, Version 1.1 or any later version published by the
+%% Documentation License, Version 1.3 or any later version published by the
 %% Free Software Foundation; with the Invariant Sections being "Un preambolo",
 %% with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
 %% license is included in the section entitled "GNU Free Documentation
 %% gapil.tex: file principale, gli altri vanno inclusi da questo.
 %%
 \documentclass[10pt,twoside]{book}
+
+%\usepackage[paperwidth=18.91cm,paperheight=24.589cm,
+%inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry}
+
 \usepackage[paperwidth=18.91cm,paperheight=24.589cm,
-inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry}
+vmargin=1.9cm,inner=1.9cm,outer=1.9cm,bindingoffset=0.89cm]{geometry}
+
+
+
 
 % encodings
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenc}
 \usepackage{ae,aecompl}
 
+% more fonts
+\usepackage{inconsolata}
+
+
 %
 % New header style
 %
@@ -42,11 +53,24 @@ inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry}
 \ #1}{}}
 
 
-% more fonts
-\usepackage{inconsolata}
-
 % fancy verbatim
 \usepackage{fancyvrb}
+\DefineVerbatimEnvironment{Example}{Verbatim}
+{xleftmargin=1cm,xrightmargin=1cm}
+
+\DefineVerbatimEnvironment{FileExample}{Verbatim}
+{frame=lines,framerule=0.5mm,framesep=2mm,xleftmargin=1cm,xrightmargin=1cm,fontsize=\footnotesize}
+
+\DefineVerbatimEnvironment{Terminal}{Verbatim}
+{xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
+
+\DefineVerbatimEnvironment{Command}{Verbatim}
+{xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b,
+fontsize=\footnotesize}
+
+\DefineVerbatimEnvironment{Console}{Verbatim}
+{commandchars=\\\{\},xleftmargin=\parindent,xrightmargin=\parindent,fontsize=\footnotesize}
+
 
 \usepackage[bookmarks=true,plainpages=false,pdfpagelabels,
 hyperfootnotes=false]{hyperref}
@@ -63,10 +87,18 @@ hyperfootnotes=false]{hyperref}
 \usepackage{listings}
 \lstloadlanguages{C++}
 \usepackage{color} 
+
+\providecommand{\defaultdesc}{%
+\desclabelstyle{\pushlabel}%
+\renewcommand{\makelabel}[1]{##1}%
+\setlength{\labelwidth}{0pt}%
+}
 \usepackage{mdwlist}
+
 \usepackage{boxedminipage}
 \usepackage{multirow}
 \usepackage{longtable}
+\usepackage{varwidth}
 %\usepackage{footnote} 
 %\usepackage{mdwtab} 
 
@@ -85,9 +117,9 @@ hyperfootnotes=false]{hyperref}
 \makeindex
 
 % Solo prima parte, scommentare 
-%\includeonly{macro,preambolo,pref,intro,process,prochand,fileintro,filedir,
-%  fileunix,filestd,system,system,signal,session,fileadv,ipc,errors,
-%  ringraziamenti,fdl}
+% \includeonly{macro,preambolo,pref,intro,process,prochand,filedir,
+%   fileunix,filestd,system,signal,session,fileadv,ipc,errors,
+%   ringraziamenti,fdl}
 
 % Solo seconda parte e appendici, scommentare
 %\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock,
@@ -104,14 +136,13 @@ hyperfootnotes=false]{hyperref}
 
 \begin{quote}
   
-  Copyright \copyright\ 2000-2009 Simone Piccardi.  Permission is granted to
+  Copyright \copyright\ 2000-2019 Simone Piccardi.  Permission is granted to
   copy, distribute and/or modify this document under the terms of the GNU Free
-  Documentation License, Version 1.1 or any later version published by the
+  Documentation License, Version 1.3 or any later version published by the
   Free Software Foundation; with the Invariant Sections being ``Un preambolo''
-  in ``Prefazione'',
-  with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
-  license is included in the section entitled ``GNU Free Documentation
-  License''.
+  in ``Prefazione'', with no Front-Cover Texts, and with no Back-Cover Texts.
+  A copy of the license is included in the section entitled ``GNU Free
+  Documentation License''.
 
 \end{quote}
 \clearemptydoublepage
@@ -151,20 +182,26 @@ hyperfootnotes=false]{hyperref}
 % distance from margins for boxedminipage
 %\fboxsep=6pt
 
+% less hspace for tables
+\setlength{\tabcolsep}{0.5em}
+
+% comment following to have reference to incomplete section using \unavref
+% command removed
+\def\incomplete{\relax}
+
 \part{Programmazione di sistema}
 \label{part:progr-di-sist}
 \include{intro}
 \include{process}
 \include{prochand}
-\include{fileintro}
 \include{filedir}
-\include{fileunix}
-\include{filestd}
+\include{fileio}
 \include{system}
 \include{signal}
 \include{session}
-\include{ipc}
+\include{procadv}
 \include{fileadv}
+\include{ipc}
 \include{thread}
 
 % Commentare sotto se si genera la prima parte
@@ -181,21 +218,24 @@ hyperfootnotes=false]{hyperref}
 
 \part{Appendici}
 \label{part:appendici}
+\include{errors}
 \include{netlayer}
 \include{trasplayer}
-\include{errors}
 \include{build}
 \include{ringraziamenti}
-\include{fdl}
+\include{fdl-1.3}
 
 % at the end put the bibliography
 \backmatter
-
-%\bibliographystyle{phaip}
-%\bibliography{biblio}
 \printindex
-
-\bibliographystyle{ieeetr}
+%\bibliographystyle{phaip}
+%\bibliographystyle{ieeetr}
+\bibliographystyle{abstract}
 \bibliography{biblio}
 
 \end{document}
+
+%%% Local Variables:
+%%% mode: latex
+%%% TeX-master: t
+%%% End: