ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \framed \placelist
@ 2010-08-16 22:34 Andreas Harder
  2010-08-16 22:49 ` taco
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Harder @ 2010-08-16 22:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Greeting
	Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \framed \placelist
  2010-08-16 22:34 \framed \placelist Andreas Harder
@ 2010-08-16 22:49 ` taco
  2010-08-17 13:13   ` Andreas Harder
  0 siblings, 1 reply; 3+ messages in thread
From: taco @ 2010-08-16 22:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \framed \placelist
  2010-08-16 22:49 ` taco
@ 2010-08-17 13:13   ` Andreas Harder
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Harder @ 2010-08-17 13:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]


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

[-- Attachment #1.2: Type: text/html, Size: 1487 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-17 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-16 22:34 \framed \placelist Andreas Harder
2010-08-16 22:49 ` taco
2010-08-17 13:13   ` Andreas Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).