X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=gapil.tex;h=34c22f78ed8de06130d6c835d4d6744f27614cb1;hp=5d0a88f5e765897c8b36048e29a71ed117566454;hb=4e1da5b259a86278710be32441de7b88b9287ec1;hpb=9efe28fd24b23b1fca69f4c5296cb29e4372438c diff --git a/gapil.tex b/gapil.tex index 5d0a88f..34c22f7 100644 --- a/gapil.tex +++ b/gapil.tex @@ -1,9 +1,9 @@ %% gapil.tex %% -%% Copyright (C) 2000-2004 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2011 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,55 +14,66 @@ %% %% gapil.tex: file principale, gli altri vanno inclusi da questo. %% -\documentclass[a4paper,11pt,twoside]{book} -\usepackage{ae,aecompl} +\documentclass[10pt,twoside]{book} +\usepackage[paperwidth=18.91cm,paperheight=24.589cm, +inner=2.5cm,outer=1.8cm,bottom=3.3cm,top=2.3cm]{geometry} + +% encodings \usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} -%\usepackage[tex4ht, bookmarks=true]{hyperref} -\usepackage[bookmarks=true]{hyperref} +\usepackage[utf8]{inputenc} +\usepackage{ae,aecompl} + +% +% New header style +% +\usepackage{fancyhdr} +\pagestyle{fancy} +\fancyhf{} +\fancyhead[RE]{\slshape \rightmark} +\fancyhead[RO,LE]{\thepage} +\fancyhead[LO]{\slshape \leftmark} + +\renewcommand{\chaptermark}[1]{% +\markboth{\thechapter.% +\ #1}{}} + +\renewcommand{\sectionmark}[1]{% +\markright{\ \thesection% +\ #1}{}} + + +% more fonts +\usepackage{inconsolata} + +% fancy verbatim +\usepackage{fancyvrb} + +\usepackage[bookmarks=true,plainpages=false,pdfpagelabels, +hyperfootnotes=false]{hyperref} + \usepackage{makeidx} -%\usepackage{booktabs} -%\usepackage{pstcol} -%\usepackage{pslatex} \usepackage{pst-node} +\usepackage{eso-pic} \usepackage{graphicx} \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} -\usepackage[hang,bf,footnotesize,it]{caption2} +\usepackage[hang,bf,footnotesize,it]{caption} \usepackage{listings} \lstloadlanguages{C++} \usepackage{color} -\usepackage{mdwlist} % scommentare per la stampa (PS e PDF) -\usepackage{boxedminipage} % scommentare per la stampa (PS e PDF) +\usepackage{mdwlist} +\usepackage{boxedminipage} \usepackage{multirow} +\usepackage{longtable} %\usepackage{footnote} %\usepackage{mdwtab} -\usepackage{geometry} -\def\tild{\char'176} +\usepackage{tikz} +\usetikzlibrary{shapes} - -% -% Setting page layout -% -%\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} -%\renewcommand{\bibname}{Bibliografia} -\pagestyle{headings} +\frenchspacing %\includeonly{macro,pref,intro,fdl} @@ -73,6 +84,15 @@ \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} + +% Solo seconda parte e appendici, scommentare +%\includeonly{macro,preambolo,network,socket,tcpsock,sockctrl,othersock, +% sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl} + \begin{document} \frontmatter @@ -84,10 +104,11 @@ \begin{quote} - Copyright \copyright\ 2000-2004 Simone Piccardi. Permission is granted to + Copyright \copyright\ 2000-2009 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''. @@ -101,6 +122,7 @@ \clearemptydoublepage \include{macro} +\include{preambolo} \include{pref} \clearemptydoublepage \mainmatter @@ -141,10 +163,14 @@ \include{system} \include{signal} \include{session} -\include{fileadv} \include{ipc} +\include{fileadv} +\include{thread} + +% Commentare sotto se si genera la prima parte \part{Programmazione di rete} \label{part:progr-di-rete} + \include{network} \include{socket} \include{tcpsock} @@ -152,11 +178,13 @@ \include{othersock} \include{sockadv} \appendix + \part{Appendici} \label{part:appendici} \include{netlayer} \include{trasplayer} \include{errors} +\include{build} \include{ringraziamenti} \include{fdl}