Am 30.01.2015 um 18:17 schrieb Rob Heusdens <robheus@xs4all.nl>:

Problem is however resetting the background. In the after option of
\setuphead will not work, the \page is ejected directly after the section
title. I want to reset to normal background after the section itself
finishes. After this special section (summary) always a new chapter begins
(except perhaps the last summary).

Should I add that manually as the last command of every summary (where
also the chapter ends), or is there some way to perform a command after
the summary itself (at the location where one would place \stopsummary if
using the \startsummary syntax) ends?

The background should only be displayed behind the text itself, not the
whole text area (so if a section ends halfway of the page, the bottom part
should have no background) with some extra space surrounding it
(above,below,left,right) using the offset or perhaps backgroundoffset
options of \setupframed).

Use text backgrounds.

\definetextbackground
  [SummaryBackground]
  [frame=off,
   background=color,
   backgroundcolor=gray]

\definehead[summary][section]

\setuphead
  [summary]
  [before=,
   beforesection={\blank\starttextbackground[SummaryBackground]},
   aftersection={\stoptextbackground\blank}]

\starttext

\startsection[title=Knuth]

\input{knuth}

\stopsection

\startsummary[title=Zapf]

\input{zapf}

\stopsummary

\stoptext

Wolfgang