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

This new beta crashed here immidiately: ConTeXt ver: 2012.07.09 20:28 MKIV fmt: 2012.7.9 int: english/english metapost > loading 'metafun': /Users/hans/TeX/context-new/tex/texmf-context/metapost/context/base/metafun.mpiv structure > sectioning > @ level 1 : 0 -> \headtext {content} ! Extra \else. system > tex > error on line 23 in file practicum.tex: Extra ... 13 14 \starttext 15 16 \startstandardmakeup 17 \input front % the front page 18 \stopstandardmakeup 19 20 \startfrontmatter % the table of contents 21 \setuppagenumber[number=1,numberconversion=romannumerals] 22 \completecontent 23 >> \stopfrontmatter 24 25 \startbodymatter % the main body of the contents 26 \setuppagenumber[number=1,numberconversion=numbers]\resetpagenumber 27 \page[right]\input algemeen 28 \page[right]\input transpositie 29 \page[right]\input monoalfabeet 30 \page[right]\input polyalfabeet 31 \page[right]\input midway 32 \page[right]\input isomorfie 33 \page[right]\input kerckhoffs \strc_sectioning_handle ...ioning_after_yes \else \ifconditional \c_strc_sec... \strc_sectioning_start_named_section_indeed ...#3} \headparameter \c!insidese... <to be read again> \strc_lists_combined_place \strc_lists_combined_complete ...s_combined_place [#1][#2]\stopnamedsection <to be read again> \stopfrontmatter l.23 \stopfrontmatter Hans van der Meer On 9 jul. 2012, at 20:38, Hans Hagen wrote:
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:

On 9-7-2012 20:59, Meer, H. van der wrote:
This new beta crashed here immidiately:
how new? keep in mind that the garden needs to sync as well 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 -----------------------------------------------------------------

···
I can confirm this for 2012.07.09 20:28. Minimal example: ······································································· \setuphead [section] [ page=yes, header=sectiontext, ] \definetext [sectiontext] [header] [foo] [bar] \starttext \startsection[title=Foo] \input dawkins \stopsection \stoptext \endinput ······································································· But I can’t tell if this code requires a rewrite with the new functionality. Regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments

On 9-7-2012 21:44, Philipp Gesang wrote:
fixed in next upload ----------------------------------------------------------------- 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 -----------------------------------------------------------------

Your message was posted 20:38 this day. The format told me: ConTeXt ver: 2012.07.09 20:28 MKIV fmt: 2012.7.9 int: english/english I therefore concluded this would be the newst version. Did you perhaps procure a new beta within that 10 minute interval? I would call that a close finish ;-) I see and do another rush to the server now. Hans van der Meer On 9 jul. 2012, at 20:59, Meer, H. van der wrote: ConTeXt ver: 2012.07.09 20:28 MKIV fmt: 2012.7.9 int: english/english
participants (4)
-
Hans Hagen
-
Meer, H. van der
-
Philipp Gesang
-
Prashanth