Usato geometry per le dimensioni della pagina, e completati i commenti
[gapil.git] / gapil.tex
index f26a9b8835f1b1bc6cd33ee0ad7a44d57c9bb92c..1d15abe5a60638ead221d04f8f66de1e5cda8dc2 100644 (file)
--- a/gapil.tex
+++ b/gapil.tex
@@ -1,6 +1,6 @@
 %% gapil.tex
 %%
-%% Copyright (C) 2000-2002 Simone Piccardi.  Permission is granted to
+%% Copyright (C) 2000-2003 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
 %% Free Software Foundation; with the Invariant Sections being "Prefazione",
@@ -15,8 +15,8 @@
 %% gapil.tex: file principale, gli altri vanno inclusi da questo.
 %%
 \documentclass[a4paper,11pt,twoside]{book}
-\usepackage[T1]{fontenc}
 \usepackage{ae,aecompl}
+\usepackage[T1]{fontenc}
 \usepackage[latin1]{inputenc}
 %\usepackage[tex4ht, bookmarks=true]{hyperref}
 \usepackage[bookmarks=true]{hyperref}
 \usepackage{pst-node}
 \usepackage{graphicx}
 \usepackage[italian]{babel}
-%\newcommand{\mkinputlistingplain}[1]{\lstinputlisting[labelstep=0,frame=,indent=1cm]{#1}}{}
-%\newcommand{\mkinputlistinglines}[1]{\lstinputlisting[labelstep=0]{#1}}{}
-
 \newcommand{\includecodesnip}[1]{\lstinputlisting[stepnumber=0,frame=]{#1}}{}
-\newcommand{\includestruct}[1]{\lstinputlisting[labelstep=0]{#1}}{}
+\newcommand{\includestruct}[1]{\lstinputlisting[stepnumber=0]{#1}}{}
 \newcommand{\includecodesample}[1]{\lstinputlisting{#1}}{}
-
 \usepackage{cite}
 \usepackage{amsmath}
 \usepackage{amsfonts}
@@ -46,6 +42,7 @@
 \usepackage{multirow}
 %\usepackage{footnote} 
 %\usepackage{mdwtab} 
+\usepackage{geometry}
 
 \def\tild{\char'176}
 
 %
 % Setting page layout
 %
-\oddsidemargin=0.5cm
-\evensidemargin=-0.5cm
-\textwidth=16cm
-\textheight=24.2cm
-\topmargin=-1.cm
+%\oddsidemargin=0.5cm
+%\evensidemargin=-0.5cm
+%\textwidth=16cm
+%\textheight=24.2cm
+%\topmargin=-1.cm
+\geometry{textheight=24.2cm,textwidth=16cm}
+
+
 %\setcaptionmargin{2cm} 
 %\renewcommand{\chaptername}{Capitolo}
 %\renewcommand{\contentsname}{Indice}
@@ -84,7 +84,7 @@
 
 \begin{quote}
   
-  Copyright \copyright\ 2000-2002 Simone Piccardi.  Permission is granted to
+  Copyright \copyright\ 2000-2003 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
   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
@@ -95,9 +95,9 @@
 \end{quote}
 \clearemptydoublepage
 
-\ifx\hcode\undefined\else
+%\ifx\hcode\undefined\else
 \tableofcontents
-\fi
+%\fi
 
 \clearemptydoublepage
 \include{macro}
 % distance from margins for boxedminipage
 %\fboxsep=6pt
 
-
+\part{Programmazione di sistema}
+\label{part:progr-di-sist}
 \include{intro}
 \include{process}
 \include{prochand}
 \include{session}
 \include{fileadv}
 \include{ipc}
+\part{Programmazione di rete}
+\label{part:progr-di-rete}
 \include{network}
 \include{socket}
-\include{elemtcp}
-\include{simpltcp}
+\include{tcpsock}
+\include{othersock}
+\include{sockctrl}
+\include{sockadv}
 \appendix
-\include{ipprot}
-\include{tcpprot}
+\part{Appendici}
+\label{part:appendici}
+\include{netlayer}
+\include{trasplayer}
 \include{errors}
 \include{ringraziamenti}
 \include{fdl}