Hi,
In the process of mkiv-ing a new beta has been uploaded. This time the
rendering of sections has been dealt with. New is that one can use
'setups' for rendering. This mechanism is still somewhat experimental
(and might get improved) but the idea is given below:
\starttext
\section{test}
\unexpanded\def\whatever#1#2{[#1][#2]}
\setuphead[section][command=\whatever] % traditional
\section{test}
\defineheadplacement[whatever]#1#2{(#1)(#2)} % traditional
\setuphead[section][command=,alternative=whatever]
\section{test}
\defineheadalternative % new
[whatever]
[alternative=vertical,
renderingsetup=whatever]
\startsetups[whatever]
/\headnumbercontent/\headtextcontent/
\stopsetups
\setuphead[section][command=,alternative=whatever]
\section{test}
\stoptext
There are some helpers. These fetch content:
\headnumbercontent \headtextcontent
These are dimensions:
\headwidth
\headtextwidth
\headnumberdistance
\headnumberwidth
This is for local spacing setup:
\headsetupspacing
These are conditionals
\headshownumber
\headisdisplay
Maybe these names will change. Setups are also used in constructions
(the building blocks for descriptions, enumerations, notes etc) but
there some more work is needed.
The code is somewhat faster, but that will probably go unnoticed unless
one has documents with hundreds of heads.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________