Ripulitura dell'HTML, tanto per vedere se ci capisco qualcosa di XHTML & C.
[gapil.git] / gapil.tex
index bc8621d96efc774a2e6e5e6542e13a4a3bb7734d..62f70cb7d0eb2b4734b0375c7f74cb228ffe82a2 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,7 +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}
@@ -26,8 +27,9 @@
 \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[stepnumber=0]{#1}}{}
+\newcommand{\includecodesample}[1]{\lstinputlisting{#1}}{}
 \usepackage{cite}
 \usepackage{amsmath}
 \usepackage{amsfonts}
 \usepackage{multirow}
 %\usepackage{footnote} 
 %\usepackage{mdwtab} 
+
+\def\tild{\char'176}
+
+
 %
 % Setting page layout
 %
@@ -74,7 +80,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'',
@@ -85,9 +91,9 @@
 \end{quote}
 \clearemptydoublepage
 
-\ifx\hcode\undefined\else
+%\ifx\hcode\undefined\else
 \tableofcontents
-\fi
+%\fi
 
 \clearemptydoublepage
 \include{macro}
 \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,
 \include{ipc}
 \include{network}
 \include{socket}
-\include{elemtcp}
-\include{simpltcp}
+\include{tcpsock}
+\include{tcpsockadv}
 \appendix
-\include{ipprot}
-\include{tcpprot}
+\include{netlayer}
+\include{trasplayer}
 \include{errors}
 \include{ringraziamenti}
 \include{fdl}