Problem or bug with enumerations in latest ConTeXt beta
Hello all, I have attached a fairly minimal example that demonstrates three problems I currently have using an enumeration for code listings. The first problem is that \placelist[enumeration:listing] errors out with: ! Missing number, treated as zero. <to be read again> ) \placestructurelist ...sts.process("#1","#2","#3") } \doplacerawlist ...mber \listparameter \c!number } \stoplistreferences \endgr... \doplacelist ...ginoflist \doplacerawlist [#1][#2] \doendoflist <to be read again> \par l.24 The second problem is that \in{Listing}[lst:b] produces Listing 2.2 rather than Listing 2 as I expect since I've asked for numbering way=bytext in \defineenumeration. How can I get the number produced by \in{Listing}[lst:b] to match the listing number typeset in the listing title? The third problem is that the document hyperlinks produced by \in{Listing}[lst:b] with interaction enabled don't seem to do anything. Cheers, Kevin
Kevin D. Robbins wrote:
has to do with the fact that the list is not initialized (i'll add a test for that) and therefore variables are not resolved using the parent chain for the moment add: \definelist[listing] also, use "listing' as name in order to get some result \setuplist[listing]... \placelist[listing][criterium=text] 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Kevin D. Robbins