%...............................................................................................%
%        definicia farieb do listingov  --- COLOR print

\colorlet{farbaI}{RedViolet}
\colorlet{farbaO}{blue}
\colorlet{farbaV}{black}
\colorlet{farbaC}{red}
\colorlet{farbaBG}{black!5}

%...............................................................................................%
\def\maximaotext#1{\color{farbaO}\text{\sf(\%o#1)}}
\def\maximaitext#1{\color{farbaI}\text{\sf(\%i#1)}}
\def\maximao#1{\color{farbaO}\text{\sf(\%o#1)\hspace{-2em}}}
\def\maximai#1{\color{farbaI}\text{\sf(\%i#1)\hspace{-2em}}}
\def\maximax#1{\color{farbaO}\text{#1\hspace{-2em}}}

\def\mblue#1{\ScS{\color{farbaO}\text{#1}}}
\def\mRedV#1{\ScS{\color{farbaI}\text{#1}}}
\def\rbDolar{\text{\$}}



\lstdefinelanguage{rbmaxima}{backgroundcolor=\color{farbaBG},tabsize=6,tab=\rightarrowfill,
  aboveskip=1em,belowskip=1em,%lineskip=.25em,%
  basicstyle=\color{farbaI}\ttfamily,%
  commentstyle=\color{farbaC}\ttfamily,%
  numberstyle=\color{farbaO},%numbers=left,%numberblanklines=false,
  xleftmargin=.75em,xrightmargin=.75em,framesep=.75em,rulecolor=\color{black},
  mathescape=true,frame=single,%
  escapeinside=\@\@,
%  escapechar=\@,
  comment=[s][commentstyle]{/*}{*/}%
}
\lstset{language={rbmaxima}}



