As you said before, in my problem, this kind of handler could break something
like hyper-links, and I assume Yue wanted those kind of stuffs.
Maybe just a \start(stop)setups which changes the background back to normal
and \prependtoks it to some token list. So is there an \everypage or
\everyshipout
token? Then using \setuphead (I don't know if it's appropriate) or
\appendtoks to
every title page.
On Sun, May 24, 2009 at 1:34 AM, Wolfgang Schuster
Took me a while but with the help of the MkII/IV manual I was able to implement the chapter layout.
\enableattributeinheritance
\newif\ifchapterpage
\installpagehandler{color}% {\dowithnextbox {\ifchapterpage
\actualshipout{\framed[background=color,backgroundcolor=black,foregroundcolor=white]{\attributedbox\nextbox}} \else \actualshipout{\flushnextbox} \fi\global\chapterpagefalse} \normalhbox}
\starttext
\setuppaper[method=color]
\subject{Tufte}\chapterpagetrue
\dorecurse{10}{\input tufte\par}
\page
\setuppaper[method=color]
\subject{Knuth}\chapterpagetrue
\dorecurse{10}{\input knuth\par}
\stoptext
Wolfgang
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Best Regards Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------