[NTG-context] TOC with Grey background for pages belonging to last section of every chapter

Keith J. Schultz keithjschultz at web.de
Mon Feb 2 14:00:55 CET 2015


Hi Wolgang,

I noticed that \startnamedsection does not add it to the TOC
how would one go about having these „namedsections“ added to the TOC.

regards
	Keith.

> Am 02.02.2015 um 12:51 schrieb Wolfgang Schuster <schuster.wolfgang at gmail.com>:
> 
> You have to add „location=paragraph” to the textbackground setup.
> 
> \definetextbackground
>  [ChapterFrame]
>  [frame=off,
>   background=color,
>   backgroundcolor=green,
>   backgroundoffset=1ex,
>   location=paragraph] % default: location=text
> 
> \definehead [Framed]    [chapter]
> \definehead [Frameless] [chapter]
> 
> \setuphead
>  [Frameless]
>  [before={\blank[2*line]}]
> 
> \setuphead
>  [Framed]
>  [page=no,
>   before=,
>   beforesection={\page\blank[2*line]\starttextbackground[ChapterFrame]},
>   aftersection=\stoptextbackground]
> 
> \starttext
> 
> \startnamedsection[Frameless][title=Chapter without frame]
> 
> \input knuth
> 
> \stopnamedsection
> 
> \startnamedsection[Framed][title=Chapter with frame]
> 
> \input knuth
> 
> \stopnamedsection
> 
> \stoptext
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150202/4e2b7549/attachment-0001.html>


More information about the ntg-context mailing list