Hello Wolfgang,
thank you for the solution, it pretty systemic.
Ad "Ad 2": There was no question as succeeded placing page number and name into the page gold ratio, so just mentioned as one of the features required.
After some plying with your solution, I deduce:
We have to derive a new alternative for "part" (here "partpage") as we CAN assign a new "renderingsetup" to this alternative but we CANNOT assign a rendering setup in the scope of \setuphead.
IOW, there is no "\setuphead[part][renderingsetup=partpage]".
If there was the option "\setuphead[part][renderingsetup=partpage]" we could simplify to:
----
% No headalternative here
\startsetups[partpage]
\startmakeup[part]
\headsetupspacing
\headnumbercontent
\blank[big]
\headtextcontent
\stopmakeup
\stopsetups
\definemakeup
[part]
[align=middle,
top=\vfill\vfill,
bottom=\vfill\vfill\vfill]
\setuphead
[part]
[...
renderingsetup=partpage,
...
]
...
----
Am I right?
(And, I understand that the aim is not to support all extraordinary request(s) in \setuphead by its keys/options - it is enough to have A way to get them, here using a "headalternative"...)
Thanks again.
Best regards,
Lukas
On Mon, 22 Jun 2015 10:51:46 +0200, Wolfgang Schuster
You can use the \pushbackground and \popbackground command to limit the background changes to a certain part of your document.
\defineheadalternative [partpage] [renderingsetup=partpage]
\startsetups[partpage]
\startmakeup[part] \headsetupspacing \headnumbercontent \blank[big] \headtextcontent \stopmakeup
\stopsetups
\definemakeup [part] [align=middle, top=\vfill\vfill, bottom=\vfill\vfill\vfill]
\setuphead [part] [placehead=yes, alternative=partpage, page=right, before={\pushbackground[page]\setupbackgrounds[page][background=color,backgroundcolor=blue]}, after={\page\popbackground}, bodypartlabel=part, align=middle, numberstyle=\bfb, textstyle=\bfd\sc]
\setuplabeltext[en][part=DĂl ]
\starttext \part{Part} \input knuth \stoptext
BTW: Where is Ad 2?
Wolfgang
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038