Re: [NTG-context] itemize with conversion

2011-12-29 Thread Hans Hagen

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
___


[NTG-context] itemize with conversion

2011-12-29 Thread Herbert Voss

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

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