Hello list,

For the last section of every chapter I want a grey background for the
text, which otherwise should look the same as every other section, except
that it starts on a new page (I can set that by defining my own section
command).

The last section summarizes the chapter.

My current implementation is using a frame:


\defineframed[achtergrond]
    [frame=off,
    background=color,
    backgroundcolor=gray,
    width=fit,
    height=fit,
    offset=2ex,
    align={flushleft,nothyphenated,verytolerant}]

And use it as:

\achtergrond{
\section{Last section}

\startitemize[n]
\item ...
\stopitemize
}

But this does not accomodate sections longer then a page. And I can't
place \page command in the middle of an itemize, and using \stopitemize,
\startitemize[continue] makes the pages vary in sizes.

Is there some way to achieve the desired effect (grey background behind
the text, and otherwise page layour identical to other sections) without
the problem that text exceeds the page size?

Greetings,

Rob

PS. The defined frame is also used elsewhere, but the last section should
in fact not have normal alignment like the other sections.


___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to