
Hi, I uploaded beta zip with a prelude to the new structure related code. I hope that I didn't forget files. context --make xp will generate the experimental format (you really need a luatools --generate because there are many new files). With context --interface=xp yourfile will use that format. Eventually the xp format will go away but this is a nice intermediate step for those who are willing to help debugging the code. Those who look into the source ... it all happens in strc-*.tex|lua and when you look in the tua/tuc file you see what is carried around (this will be optimized). Much code still needs a rewrite. The format file is slightly smaller and less hash space is used, in spite of more functionality. This is a side effect of a more dynamic inheritance model (slower, but not so much an issue noaways and compensated by speedups in other areas like one time multipass data reading). For xml users: although somewhat experimental, we now have roundtrip xml in lists (and some other constructs, more to come). \setuphead[chapter][expansion=xml] This only works for mkiv xml, as we also keep track of the document root in order to apply the right setups. For Aditya: numbering of math is redone and soon we have to split up strc-mat into pieces (when we start doing unicode math) but you can already have a look at it. Don't worry too much if your documents crash. I simply cannot test everything so it might be a good opportunity for volunteers to help documenting behaviour and making tests. The main incompatibilities are in the numbering: we now use sets for numbering, seperators, converters etc as well as processors for specific layout of these thingies. This info is carried around so that intermediate style changes are reflected in tables of contents and references (of course they can be overloaded). It's the price we pay fro more flexibility. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------

Diego Depaoli wrote:
sure, it's cont-xp (only mkiv), not cont-en (mkii and mkiv) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------

On Tue, Jan 13, 2009 at 7:08 PM, Hans Hagen
$>/opt/luatex/minimals-beta/tex# context --make xp MtxRun | running command: luatools --make --compile cont-xp LuaTools | no tex file with name: cont-xp.tex LuaTools | LuaTools | runtime: 0.049 seconds MtxRun | total runtime: 0.094 :( minimals-beta Linux luigicasa-laptop 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.31.3-2008122919, build unknown ConTeXt MtxRun | current version: 2009.01.13 16:53 -- luigi

Am 13.01.2009 um 19:08 schrieb Hans Hagen:
Here is the first bug in your new code. \starttext \startitemize[fit] \item item \stopitemize \stoptext ! Undefined control sequence. \dolistitem ...itembox }\fi \splititemtwopassdata \currentnoflists \ifdim \i... \complexdoitemgroupitem ...obreak \fi \dolistitem \relax \ifconditional \pac... <to be read again> i l.4 \item i tem Wolfgang

Am 13.01.2009 um 19:08 schrieb Hans Hagen:
The numbering of subpages did not work correct. \setupheadertexts[\subpagenumber\ -- \nofsubpages] \setupsubpagenumber[way=bytext,state=start] \starttext \dorecurse{10}{\input knuth\par} \page \resetsubpagenumber \dorecurse{14}{\input knuth\par} \stoptext I miss also the function to use the subpagenumber value in number tests like \ifnum and \ifodd. The following example worked with the old numbering mechanism but not with the new. \setupheadertexts[\ifnum\subpagenumber=\plusone\else\subpagenumber\fi] \setupsubpagenumber[way=bytext,state=start] \starttext \dorecurse{10}{\input knuth\par} \stoptext Wolfgang

On Tue, 13 Jan 2009, Hans Hagen wrote:
How do I use the new separator code? Using the hint in strc-sec I tried \let\spr\separatorlist % this will enable this feature \setuphead[section] [separator={?,!,*}] \setuphead[subsection][separator={??,!!,**}] \starttext \chapter{test} \section{test} \subsection{test} \subsection{test} \section{test} \subsection{test} \subsection{test} \stoptext I get the default separators. I do not see where \separatorlist is defined. Also, it is possible to use different separators in heads and when they are referenced. Specifically, I am trying to achieve IEEE formatting guidelines which state In the head only show the current number Section I. Subsection B. Subsubsection 3) paragraph a) While refereing to a section, use Section I Subsection I-A subsubsection I-A.1 paragraph I-A.1.a Can the current implementation of separator sets achieve this? Aditya
participants (6)
-
Aditya Mahajan
-
Diego Depaoli
-
Hans Hagen
-
luigi scarso
-
Mojca Miklavec
-
Wolfgang Schuster