Qualche modifica ai colori dei listati

Leonardo Robol [2009-11-25 22:14]
Qualche modifica ai colori dei listati
Filename
CalcoloScientifico.tex
diff --git a/CalcoloScientifico.tex b/CalcoloScientifico.tex
index 69c9332..4a64577 100644
--- a/CalcoloScientifico.tex
+++ b/CalcoloScientifico.tex
@@ -149,15 +149,16 @@

 %% Codice fortran
 \definecolor{listinggray}{gray}{0.95}
+\definecolor{keycolor}{rgb}{0.1,0.1,0.1}
 \lstset{language=fortran}
 \lstset{backgroundcolor=\color{listinggray}}
 \lstset{frameround=trbl}
 \lstset{% general command to set parameter(s)
-    basicstyle=\footnotesize\ttfamily,          % print whole listing small
-    keywordstyle=\color{black}\bfseries\underbar,
+    basicstyle=\footnotesize,          % print whole listing small
+    keywordstyle=\color{keycolor}\bfseries\ttfamily\underbar,
                                 % underlined bold black keywords
     identifierstyle=,           % nothing happens
-    commentstyle=\color{red!80}, % white comments
+    commentstyle=\color{red!80}\ttfamily, % white comments
     stringstyle=\ttfamily,      % typewriter type for strings
     numbers=left,		% numbers
     numberstyle=\scriptsize,            % che non rompano troppo
ViewGit