Re: Codice in Latex

#52028
Up
0
Down
::


Quindi, riasumento, posso fare una cosa del genere nel mio preambolo:

`
\definecolor{shadecolor}{gray}{0.90}
\begingroup
\catcode`\'=\active
\gdef\doquotesingle{\let'\textquotesingle}
\endgroup
\newenvironment{code}
{\def\b{\textbackslash}%\small
\begin{shaded}\begin{alltt}%
\doquotesingle \let~\textasciitilde
\setlength{\parindent}{0pt}\ignorespaces}
{\end{alltt}\end{shaded}}
`

Corretto??
Ora provo. Grazie,
Samuele

Go to top