X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=main.tex;h=da2fd9759030cb7b36008c5abd59453223a9f300;hp=dfdfb152d01ab36471188d3bb6735dc05728b032;hb=a8d6fb4cf9036d69f2884d9ba9d9350f649ed401;hpb=e323f7e103dac7a264d3ef335d23540719df2623 diff --git a/main.tex b/main.tex index dfdfb15..da2fd97 100644 --- 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 % @@ -65,6 +68,26 @@ \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}