Newsgroup: it.comp.software.tex
Titolo: listing e (x)color

Ho un codice di prova di questo tipo:
==================================================================
\documentclass[a4paper]{scrartcl}
\usepackage[utf8x]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{color}
\definecolor{mycyan}{rgb}{0.99,1,1}
\definecolor{shadecolor}{rgb}{0.99,1,1}
\usepackage{listings}
\lstset{
   basicstyle=\color{blue}\small\ttfamily,
   keywordstyle=\color{black}\bfseries,
   commentstyle=\color{green},
   stringstyle=\color{red},
   showstringspaces=true,
   backgroundcolor=\color{mycyan},
   moredelim=[is][\color{black}\textrm]{|*}{*|}}
%language=Pascal
%numbers=left,numberstyle=\tiny
\usepackage[nochapters]{classicthesis-ldpkg}
\usepackage[linedheaders,pdfspacing,eulerchapternumbers,subfig,%
beramono,eulermath,nochapters]{classicthesis}
\begin{document}
\begin{lstlisting}[frame=lines]
for i:=maxint to 0 do
begin |* commento *|
    { non far nulla }
end;
write('Benvenuto in Pascal.');
\end{lstlisting}
\begin{lstlisting}[frame=lines]
{From: 
ki...@grassland.com
}; |* usa la semplice mail *|
\end{lstlisting}
\end{document}
==================================================================
A parte l'avviso
"Package classicthesis-ldpk Warning:
Package "natbib" not loaded, command "cauth or" will not work.."
che ho letto un una discussione nel forum del GUIT
non dovrebbe generare problemi, durante la compilazione ottengo:
========================================================================
Package xcolor Warning: Incompatible color definition on input line 25.
Package xcolor Warning: Incompatible color definition on input line 25.
Package xcolor Warning: Incompatible color definition on input line 25.
Package xcolor Warning: Incompatible color definition on input line 25.
Package xcolor Warning: Incompatible color definition on input line 25.
Package xcolor Warning: Incompatible color definition on input line 31.
Package xcolor Warning: Incompatible color definition on input line 31.
Package xcolor Warning: Incompatible color definition on input line 33.
Package xcolor Warning: Incompatible color definition on input line 33.
Package xcolor Warning: Incompatible color definition on input line 33.
Package xcolor Warning: Incompatible color definition on input line 33.
Package xcolor Warning: Incompatible color definition on input line 33.
Package xcolor Warning: Incompatible color definition on input line 35.
Package xcolor Warning: Incompatible color definition on input line 35.
========================================================================
Se allora sostituisco il pacchetto color con xcolor,
addirittura si blocca la compilazione:
===========================================================================
! LaTeX Error: Option clash for package xcolor.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...
l.169 \definecolor
                  {halfgray}{gray}{0.55} % chapter numbers will be semi
tran...
?   
===========================================================================
Grazie
M.


===========================================================================
Risolto aggiungendo a xcolor l'opzione [dvipscolor]
M.