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 
<schuster.wolfg...@gmail.com> wrote:


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: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

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to