Re: Listings su piu pagine: Underfull

#27099
Up
0
Down
::

anche se ci metto 100 non cambia niente… ma il plus lo devo cambiare con + o scrivere proprio plus?

io ora ho scritto:

`\lstnewenvironment{xml}{
\small\baselineskip=\the\baselineskip plus 1pt\relax
\lstset{language=XML,
breaklines,
breakindent=0pt,
breakatwhitespace,
basicstyle=\ttfamily,
tagstyle=\bfseries,
identifierstyle=\ttfamily\itshape,
showstringspaces=false,
xleftmargin=25pt,
xrightmargin=5pt,
}
}{}`

Devi mettere \small e l’altra impostazione in basicstyle, ma nascondendole dentro una macro:
`\lstnewenvironment{xml}{
\lstset{language=XML,
breaklines,
breakindent=0pt,
breakatwhitespace,
basicstyle=\lstsmall\ttfamily,
tagstyle=\bfseries,
identifierstyle=\ttfamily\itshape,
showstringspaces=false,
xleftmargin=25pt,
xrightmargin=5pt,
}
}{}
\newcommand{\lstsmall}{\small\baselineskip=\the\baselineskip plus 1pt\relax}`
Ciao
Enrico

Go to top