Source & result attached. On Wed, 15 Oct 2014 10:33:28 +0200, Hans Hagen <pra...@wxs.nl> wrote:
Hi, new in next beta %D Sometimes you have a document wide (page) background but need to overload it %D locally. In such case (at least in my experience) the only values that get set %D are the background and backgroundcolor (if set at all). A full inheritance chain %D would complicate things because then we need to use named backgrounds which in %D turn will make this mechanism slower. I considered independent local backgrounds %D but that also complicates the code (not that much) but isolation means that we %D need to set more parameters each time. The following simple approach proabbly %D suits most usage. \starttext \setupbackgrounds[page][background=color,backgroundcolor=red] \input tufte \page \setupbackgrounds[page][background=,backgroundcolor=] \input tufte \page \setupbackgrounds[page][background=color,backgroundcolor=red] \input tufte \page \pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=green] \input tufte \page \popbackground \input tufte \page \stoptext (only two parameters pushed/popped)
-- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038
Bkgs.mkiv
Description: Binary data
Bkgs.pdf
Description: Adobe PDF document
___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________