ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem or bug with enumerations in latest ConTeXt beta
@ 2009-10-22  0:12 Kevin D. Robbins
  2009-10-24 13:07 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin D. Robbins @ 2009-10-22  0:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1125 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1447 bytes --]

[-- Attachment #2: test-enumerations.tex --]
[-- Type: application/x-tex, Size: 696 bytes --]

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem or bug with enumerations in latest ConTeXt beta
  2009-10-22  0:12 Problem or bug with enumerations in latest ConTeXt beta Kevin D. Robbins
@ 2009-10-24 13:07 ` Hans Hagen
  2009-10-26 18:10   ` Kevin D. Robbins
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-10-24 13:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Kevin D. Robbins wrote:
> 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:

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem or bug with enumerations in latest ConTeXt beta
  2009-10-24 13:07 ` Hans Hagen
@ 2009-10-26 18:10   ` Kevin D. Robbins
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin D. Robbins @ 2009-10-26 18:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1725 bytes --]

Hi Hans,

Thanks for the quick fix! I retested with the latest from minimals, and all
three problems I reported are fixed.

Kevin

On Sat, Oct 24, 2009 at 7:07 AM, Hans Hagen <pragma@wxs.nl> wrote:

> Kevin D. Robbins wrote:
>
>> 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:
>>
>
> 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
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2878 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-26 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22  0:12 Problem or bug with enumerations in latest ConTeXt beta Kevin D. Robbins
2009-10-24 13:07 ` Hans Hagen
2009-10-26 18:10   ` Kevin D. Robbins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).