On 8/3/2017 8:11 PM, Mikael P. Sundqvist wrote:

that solves the other problem that appeared. What about the one I
originally posted in this thread? Is it possible to pause backgrounds
on chapter pages?
one of the many ways ...

\definelayer
  [chapter]
  [width=\paperwidth,
   height=\paperheight]

\defineoverlay
  [pagebackground]
  [\directsetup{pagebackground}]

\setupbackgrounds
  [page]
  [background=pagebackground]

\startsetups pagebackground
    \doifelsemode {chapterpage} {
        \setlayer
          [chapter]
          [preset=middle]
          {\scale[width=\textwidth]{CHAPTER}}
        \globaldisablemode[chapterpage]
    } {
        \setlayer
          [chapter]
          [preset=middle]
          {\scale[width=\textwidth]{WHATEVER}}
    }
    \placelayer[chapter]
\stopsetups

\startsetups chapter:before
    \globalenablemode[chapterpage]
\stopsetups

\setuphead
  [chapter]
  [before=\setup{chapter:before}]

\starttext
    \chapter{foo} test \page test
    \chapter{bar} test \page test
\stoptext

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to