Completato server elementare.
[gapil.git] / main.tex
index dfdfb152d01ab36471188d3bb6735dc05728b032..569f7086acebb9424631e2086f6f237199fdbfd5 100644 (file)
--- a/main.tex
+++ b/main.tex
@@ -9,6 +9,9 @@
 \usepackage{amsmath}
 \usepackage{amsfonts}
 \usepackage[hang,bf,footnotesize,it]{caption2}
+\usepackage{listings}
+\lstloadlanguages{C++}
+\usepackage{color}
 %
 % Setting page layout
 %
@@ -25,6 +28,8 @@
 
 %\includeonly{macro,pref,intro,fdl}
 
+
+
 \title{Guida alla Programmazione in Linux.}
 
 \author{Simone Piccardi}
@@ -53,6 +58,7 @@
 \end{quote}
 \clearemptydoublepage
 
+
 \tableofcontents
 \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{files}
 \include{process}