Re: inserire codice tcl in latex

#40565
Up
0
Down
::


ho usato questa cosa qui

\usepackage{listings}
\usepackage{color}
\usepackage{textcomp}
\definecolor{listinggray}{gray}{0.9}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}
\lstset{
backgroundcolor=\color{lbcolor},
tabsize=4,
rulecolor=,
language=matlab,
basicstyle=\scriptsize,
upquote=true,
aboveskip={1.5\baselineskip},
columns=fixed,
showstringspaces=false,
extendedchars=true,
breaklines=true,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
frame=single,
showtabs=false,
showspaces=false,
showstringspaces=false,
identifierstyle=\ttfamily,
keywordstyle=\color[rgb]{0,0,1},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.627,0.126,0.941},
}

e funziona, mi mette pure i colori alle parole chiave etc.., ho levato lo sfondo gigio perchè non mi piaceva

solo che mi mette una cosa del genere con dentro il listato

___________________________
|
|
|
|
|
|
|
|
|
___________________________

etc.. non continuo, cmq come faccio a toglierlo

Go to top