X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=gapil.tex;h=d73b1b0f2a9600529e9856ab17d683330b39c448;hp=ed88f9a338d7e06fcced2aecea2b080a9fdff169;hb=beece18eba2dcc2a9b915dab61277df8685a3da6;hpb=9c3be0a6a901fad667ba1abcd8b46c712020cf26 diff --git a/gapil.tex b/gapil.tex index ed88f9a..d73b1b0 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-2014 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,40 +14,83 @@ %% %% gapil.tex: file principale, gli altri vanno inclusi da questo. %% -\documentclass[a4paper,11pt,twoside,italian]{book} -\usepackage[latin1]{inputenc} -\usepackage[bookmarks=true]{hyperref} +\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[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} +\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,fontfamily=courier,fontsize=\footnotesize} + +\DefineVerbatimEnvironment{Command}{Verbatim} +{xleftmargin=\parindent,xrightmargin=\parindent,fontseries=b, +fontfamily=courier,fontsize=\footnotesize} + +\DefineVerbatimEnvironment{Console}{Verbatim} +{commandchars=\\\{\},xleftmargin=\parindent,xrightmargin=\parindent,fontfamily=courier,fontsize=\footnotesize} + + +\usepackage[bookmarks=true,plainpages=false,pdfpagelabels, +hyperfootnotes=false]{hyperref} + \usepackage{makeidx} -%\usepackage{booktabs} -\usepackage{pstcol} \usepackage{pst-node} +\usepackage{eso-pic} \usepackage{graphicx} -\usepackage{babel} +\usepackage[italian]{babel} \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{varwidth} %\usepackage{footnote} %\usepackage{mdwtab} -% -% Setting page layout -% -\oddsidemargin=0.5cm -\evensidemargin=-0.5cm -\textwidth=16cm -\textheight=24.2cm -\topmargin=-1.cm -%\setcaptionmargin{2cm} -%\renewcommand{\chaptername}{Capitolo} -%\renewcommand{\contentsname}{Indice} -%\renewcommand{\bibname}{Bibliografia} -\pagestyle{headings} + +\usepackage{tikz} +\usetikzlibrary{shapes} + +\frenchspacing %\includeonly{macro,pref,intro,fdl} @@ -58,10 +101,19 @@ \makeindex +% Solo prima parte, scommentare +% \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, +% sockadv,netlayer,trasplayer,errors,ringraziamenti,fdl} + \begin{document} -\pagenumbering{roman} - +\frontmatter + \maketitle \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty} @@ -69,10 +121,11 @@ \begin{quote} - Copyright \copyright\ 2000-2002 Simone Piccardi. Permission is granted to + Copyright \copyright\ 2000-2014 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''. @@ -80,28 +133,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, @@ -116,37 +168,49 @@ % distance from margins for boxedminipage %\fboxsep=6pt +\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{fileunix} +%\include{filestd} \include{system} \include{signal} \include{session} \include{fileadv} \include{ipc} +\include{thread} + +% Commentare sotto se si genera la prima parte +\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{errors} +\include{netlayer} +\include{trasplayer} +\include{build} \include{ringraziamenti} \include{fdl} % at the end put the bibliography - -%\bibliographystyle{phaip} -%\bibliography{biblio} +\backmatter \printindex - -\bibliographystyle{alpha} +%\bibliographystyle{phaip} +%\bibliographystyle{ieeetr} +\bibliographystyle{abstract} \bibliography{biblio} \end{document} -