Iniziate le funzioni di conversione
[gapil.git] / main.tex
index dfdfb152d01ab36471188d3bb6735dc05728b032..8ecd9a3c91639fb4b1f53dff650d7853324277ee 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
 %
@@ -29,7 +32,6 @@
 
 \author{Simone Piccardi}
 
-
 \begin{document}
 
 \pagenumbering{roman}
@@ -53,6 +55,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}