X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=gapil.tex;h=435aa9a45bf9f0e6ae109e13d48de135c477e04f;hp=6f3560d72a9a7802bcc21b57d146b84710bf2110;hb=406973e35011347c3812c671511ce738378a525b;hpb=758b135b7f04cdcebc4fe2726dc540cb24d116ba diff --git a/gapil.tex b/gapil.tex index 6f3560d..435aa9a 100644 --- a/gapil.tex +++ b/gapil.tex @@ -1,9 +1,9 @@ %% gapil.tex %% -%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2004 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", +%% 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 %% License". @@ -14,16 +14,22 @@ %% %% gapil.tex: file principale, gli altri vanno inclusi da questo. %% -\documentclass[a4paper,11pt,twoside,italian]{book} -%\usepackage{tex4ht} +\documentclass[a4paper,11pt,twoside]{book} +\usepackage{ae,aecompl} +\usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} -\usepackage[bookmarks=true]{hyperref} +%\usepackage[tex4ht, bookmarks=true]{hyperref} +\usepackage[bookmarks=true,plainpages=false,pdfpagelabels,hyperfootnotes=false]{hyperref} \usepackage{makeidx} %\usepackage{booktabs} %\usepackage{pstcol} +%\usepackage{pslatex} \usepackage{pst-node} \usepackage{graphicx} -\usepackage{babel} +\usepackage[italian]{babel} +\newcommand{\includecodesnip}[1]{\lstinputlisting[stepnumber=0,frame=]{#1}}{} +\newcommand{\includestruct}[1]{\lstinputlisting[stepnumber=0]{#1}}{} +\newcommand{\includecodesample}[1]{\lstinputlisting{#1}}{} \usepackage{cite} \usepackage{amsmath} \usepackage{amsfonts} @@ -36,14 +42,23 @@ \usepackage{multirow} %\usepackage{footnote} %\usepackage{mdwtab} +\usepackage{geometry} +\usepackage{fancyvrb} + +\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} @@ -61,8 +76,8 @@ \begin{document} -\pagenumbering{roman} - +\frontmatter + \maketitle \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty} @@ -70,10 +85,11 @@ \begin{quote} - Copyright \copyright\ 2000-2002 Simone Piccardi. Permission is granted to + Copyright \copyright\ 2000-2004 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'', + 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''. @@ -81,28 +97,27 @@ \end{quote} \clearemptydoublepage +%\ifx\hcode\undefined\else \tableofcontents +%\fi + \clearemptydoublepage -% commentare per la stampa PS e PDF -%\include{compatib} % commentare per la stampa PS e PDF -% commentare per la stampa PS e PDF \include{macro} -\setcounter{secnumdepth}{-2} +\include{preambolo} \include{pref} -\setcounter{secnumdepth}{2} \clearemptydoublepage - -\pagenumbering{arabic} +\mainmatter \lstset{language=C++} \lstset{basicstyle=\small, - labelstyle=\tiny, - labelstep=1, - labelsep=2pt, + numbers=left, + numberstyle=\tiny, + stepnumber=1, + numbersep=2pt, frame=TB, - frametextsep=5pt, - indent=0.3cm, + framesep=5pt, +% xleftmargin=0.3cm, basicstyle=\ttfamily, keywordstyle=\color{blue}\ttfamily, ndkeywordstyle=\color{yellow}\ttfamily, @@ -117,7 +132,8 @@ % distance from margins for boxedminipage %\fboxsep=6pt - +\part{Programmazione di sistema} +\label{part:progr-di-sist} \include{intro} \include{process} \include{prochand} @@ -130,18 +146,25 @@ \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{sockctrl} +\include{othersock} +\include{sockadv} \appendix -\include{ipprot} -\include{tcpprot} +\part{Appendici} +\label{part:appendici} +\include{netlayer} +\include{trasplayer} \include{errors} \include{ringraziamenti} \include{fdl} % at the end put the bibliography +\backmatter %\bibliographystyle{phaip} %\bibliography{biblio} @@ -151,4 +174,3 @@ \bibliography{biblio} \end{document} -