+%%
+%% GaPiL : Guida alla Programmazione in Linux
+%%
+%% S. Piccardi Feb. 2001
+%%
+%% main.tex: file principale, gli altri vanno inclusi da questo.
+%%
+\documentclass[a4paper,11pt,twoside,italian]{book}
+\usepackage[latin1]{inputenc}
+\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}
+%
+% 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{Guida alla Programmazione in Linux.}
+
+\author{Simone Piccardi}
+
+\begin{document}
+
+\pagenumbering{roman}
+
+\maketitle
+
+\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
+\cleardoublepage}}
+
+\begin{quote}
+
+ Copyright \copyright\ 2000-2001 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{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,
+ 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
+}
+\include{intro}
+\include{fileintro}
+\include{filedir}
+\include{fileunix}
+\include{filestd}
+\include{process}
+\include{prochand}
+\include{signal}
+\include{ipc}
+\include{network}
+\include{socket}
+\include{elemtcp}
+\include{simpltcp}
+\include{app_a}
+\include{app_b}
+\include{fdl}
+
+
+
+% at the end put the bibliography
+
+%\bibliographystyle{phaip}
+%\bibliography{biblio}
+
+\end{document}
+