%%
%% GaPiL : Guida alla Programmazione in Linux
%%
%% S. Piccardi Oct. 2000
%% 
%% main.tex: file principale, gli altri vanno inclusi da questo.
%%
\documentclass[a4paper,11pt,twoside,italian]{book}
\usepackage[latin1]{inputenc}
\usepackage[bookmarks=true]{hyperref}
\usepackage{makeidx}
%\usepackage{booktabs}
\usepackage{pstcol}
\usepackage{pst-node}
\usepackage{graphicx}
\usepackage{babel}
\usepackage{cite}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[hang,bf,footnotesize,it]{caption2}
\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{multirow}
%\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}

%\includeonly{macro,pref,intro,fdl}

\title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
\huge Guida alla Programmazione in Linux} 

\author{Simone Piccardi}

\makeindex

\begin{document}

\pagenumbering{roman}
 
\maketitle

\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
\cleardoublepage}}

\begin{quote}
  
  Copyright \copyright\ 2000-2002 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'',
  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''.

\end{quote}
\clearemptydoublepage

\tableofcontents
\clearemptydoublepage

\include{compatib}    % commentare per la stampa PS e PDF
\include{macro}
\setcounter{secnumdepth}{-2}
\include{pref}
\setcounter{secnumdepth}{2}
\clearemptydoublepage

\pagenumbering{arabic}

\lstset{language=C++} 

\lstset{basicstyle=\small,
  labelstyle=\tiny,
  labelstep=1,
  labelsep=2pt, 
  frame=TB,
  frametextsep=5pt,
  indent=0.3cm,
  basicstyle=\ttfamily,
  keywordstyle=\color{blue}\ttfamily,
  ndkeywordstyle=\color{yellow}\ttfamily,
%  rdkeywordstyle=\ttfamily,
  identifierstyle=\ttfamily,
  commentstyle=\color{red}\ttfamily,
  stringstyle=\color{green}\ttfamily,
%  texcsststyle=\ttfamily,
  directivestyle=\color{magenta}\ttfamily
} 

% distance from margins for boxedminipage
%\fboxsep=6pt

\include{intro}
\include{process}
\include{prochand}
\include{fileintro}
\include{filedir}
\include{fileunix}
\include{filestd}
\include{system}
\include{signal}
\include{session}
\include{fileadv}
\include{ipc}
\include{network}
\include{socket}
\include{elemtcp}
\include{simpltcp}
\appendix
\include{ipprot}
\include{tcpprot}
\include{errors}
\include{ringraziamenti}
\include{fdl}

% at the end put the bibliography

%\bibliographystyle{phaip}
%\bibliography{biblio}
\printindex

\bibliographystyle{alpha}
\bibliography{biblio}

\end{document}

