Am 11.03.2015 um 09:30 schrieb Hans Hagen <pragma@wxs.nl>:

On 3/11/2015 12:55 AM, Wolfgang Schuster wrote:

Am 10.03.2015 um 22:30 schrieb Hans Hagen <pragma@wxs.nl
<mailto:pragma@wxs.nl>>:

On 3/10/2015 3:12 PM, Wolfgang Schuster wrote:

Am 10.03.2015 um 15:05 schrieb Hans Hagen <pragma@wxs.nl
<mailto:pragma@wxs.nl>>:

On 3/10/2015 1:32 PM, Wolfgang Schuster wrote:
    \ifnum\c_page_breaks_prevpage<\realpageno
      \global\pageornamentstate\zerocount
-    \fi
+    \else\ifnum\c_page_breaks_prevpage=\realpageno
+      \global\pageornamentstate\zerocount
+    \fi\fi

so

   \ifnum\c_page_breaks_prevpage>\realpageno \else
     \global\pageornamentstate\zerocount
   \fi

In this case you can drop the check because \pageornamentstate will
be reset anyway and

   \global\pageornamentstate\zerocount

alone is enough.

no it's reset elsewhere (after shipout) .. anyway say we have

\def\page_breaks_process[#1]% so, page ornaments are reset after a
pagebreak command, unless set
{\par % always before group so that we clear hangs etc (as in side
floats)
 \ifvmode % extra check
   \begingroup
   \the\everybeforepagebreak
   \ifcase\pageornamentstate \or
     % disable reset after shipout
     \global\pageornamentstate\plustwo
   \fi
   \iffirstargument % or if empty i.e. []
     \page_breaks_handle{#1}%
   \else % so, no pagebreak when \pagebreak[] ! ! !
     \page_breaks_handle_direct\v!yes
   \fi
   \relax
   \the\everyafterpagebreak
   \endgroup
 \fi}

this works ok with

\setuphead
[chapter]
[page={yes,right,blank}]

watch the order: yes and right are done in sequence and when we're om
a right page we bloek the ornaments for one page

It depends which result you expect, do you want to hide all backgrounds
elements on the first page of the chapter or from the empty left page
before the chapter.

hm, the last one is tricky and more like:

\page
\doifoddpageelse
 \relax
 {\page[blank,right}

or so, so we'd need a new key for it (what key)

When I follow the description from the manual [1] on page 75 which reads
“insert a completely blank page” I expect something similar like

    \setuphead[chapter][page={yes,header,footer,right}]

with the exception that backgrounds are disabled as well.

[1] http://pragma-ade.com/general/manuals/cont-enp.pdf

Wolfgang