ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* itemize with conversion
@ 2011-12-29 12:55 Herbert Voss
  2011-12-29 14:59 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Voss @ 2011-12-29 12:55 UTC (permalink / raw)
  To: ntg-context

This worked some weeks ago:

\defineconversion[ordinal][\enordinaldaynumber]
\starttext
  \startitemize[ordinal]
  \item Test
  \item Test
  \item Test
  \item Test
  \item Test
  \stopitemize
\stoptext

current beta from today

Herbert


! Undefined control sequence.

system          > tex > error on line 7 in file 05-02-4.ctxcrop: 
Undefined control sequence ...

  1     \defineconversion[ordinal][\enordinaldaynumber]
  2     \starttext
  3      \startitemize[ordinal]
  4      \item Test
  5      \item Test
  6      \item Test
  7 >>   \item Test
  8      \item Test
  9      \stopitemize
10     \stoptext
11


\@@cvordinal ->\enordinaldaynumber

\convertnumber ... 2\else 3\fi \fi \endcsname {#1}
                                                   {\number #2}
l.7 }

\doconvertedstructurecounter ...!criterium ", } )}
                                                   \endgroup
<to be read again>
                    \fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi
 
\dohandleitemreference \en...
...
l.4  \item T
             est
?
___________________________________________________________________________________
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] 2+ messages in thread

* Re: itemize with conversion
  2011-12-29 12:55 itemize with conversion Herbert Voss
@ 2011-12-29 14:59 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-12-29 14:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Herbert Voss

On 29-12-2011 13:55, Herbert Voss wrote:
> \defineconversion[ordinal][\enordinaldaynumber]

use

\defineconversion[ordinal][\ordinaldaynumber]

instead ... it adapts itself to the current language

(I'm cleaning up modules and removing off cases and that was one of 
them, as it makes no sense to let all languages have their own command.)


> \starttext
>   \startitemize[ordinal]
>   \item Test
>   \item Test
>   \item Test
>   \item Test
>   \item Test
>   \stopitemize
> \stoptext


-- 

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


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

end of thread, other threads:[~2011-12-29 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 12:55 itemize with conversion Herbert Voss
2011-12-29 14:59 ` Hans Hagen

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