Re: Codice in Latex

#52034
Up
0
Down
::

Scusate se torno sull’argomento, ma ho un’altra questione..

Io ho definito un nuovo ambiente `\newenvironment{code}
{\def\b{\textbackslash}%\small
\begin{shaded}\begin{alltt}%
\doquotesingle \let~\textasciitilde
\setlength{\parindent}{0pt}\ignorespaces}
{\end{alltt}\end{shaded}}`

l’unico problema è che io non riesco ad inserire una parentesi graffa..

O meglio, anche se la metto, non fa nulla.

Come fare?? Devo fare $\{$??

Grazie,
Samuele

Se devi inserire graffe non bilanciate, l’ambiente alltt non fa per te. Guarda il pacchetto listings oppure fancyvrb.

Ciao
Enrico

Go to top