![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 10.03.2015 um 22:30 schrieb Hans Hagen
: On 3/10/2015 3:12 PM, Wolfgang Schuster wrote:
Am 10.03.2015 um 15:05 schrieb Hans Hagen
: 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. Wolfgang