Am 17.08.2010 um 00:49 schrieb taco:

Andreas Harder wrote:
Hi all,
if I try to put \placelist in \framed an error (You can't use `\prevdepth' in restricted horizontal mode) occurs.
\starttext
\framed
 [background=color,backgroundcolor=gray]
 {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext
So what is the way to put a background behind the list?

putting it in a \vbox works, but \startframedtext ... \stopframedtext is nicer:

\startframedtext
 [background=color,width=\the\hsize,backgroundcolor=gray]
 \placelist[section]
\stopframedtext

Thanks Taco, this helps.

Greeting
Andreas