ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Grey background for pages belonging to last section of every chapter
@ 2015-01-30 15:13 Rob Heusdens
  2015-01-30 16:18 ` Rob Heusdens
  0 siblings, 1 reply; 12+ messages in thread
From: Rob Heusdens @ 2015-01-30 15:13 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

end of thread, other threads:[~2015-02-02 22:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-30 15:13 Grey background for pages belonging to last section of every chapter Rob Heusdens
2015-01-30 16:18 ` Rob Heusdens
2015-01-30 16:34   ` Wolfgang Schuster
2015-01-30 17:17     ` Rob Heusdens
2015-01-30 17:27       ` Wolfgang Schuster
2015-01-30 18:28         ` Rob Heusdens
2015-01-30 19:05           ` Wolfgang Schuster
2015-01-30 20:36             ` Rob Heusdens
2015-01-30 20:43             ` Rob Heusdens
2015-02-02 11:51               ` Wolfgang Schuster
2015-02-02 13:00                 ` TOC with " Keith J. Schultz
2015-02-02 22:23                   ` Wolfgang Schuster

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).