Re: [NTG-context] zero padding with itemize

2008-06-12 Thread Carlos Breton Besnier
And 9? Best


\starttext

\def\mypaddednumber#1{\ifnum#110 0\fi\number#1\relax}

\defineconversion[pn] [\mypaddednumber]

\startitemize[pn,broad]
\item oeps
\item oeps
\item oeps
\stopitemize

\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] zero padding with itemize

2008-06-12 Thread Wolfgang Schuster
Hi Carlos,

On Thu, Jun 12, 2008 at 8:37 AM, Carlos Breton Besnier
[EMAIL PROTECTED] wrote:
 And 9? Best

What do you mean, I didn't understand your questions.

Wolfgang

 \starttext

 \def\mypaddednumber#1{\ifnum#110 0\fi\number#1\relax}

 \defineconversion[pn] [\mypaddednumber]

 \startitemize[pn,broad]
 \item oeps
 \item oeps
 \item oeps
 \stopitemize

 \stoptext

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] zero padding with itemize

2008-06-12 Thread Wolfgang Schuster
On Wed, Jun 11, 2008 at 5:39 PM, Peter Münster [EMAIL PROTECTED] wrote:
 On Sun, Jun 08 2008, Hans Hagen wrote:

  If yes, how? And if no, where is the magic point, where I could apply a
  patch (if it's not too difficult ;)

 has always been possible ...

 \starttext

 \def\mypaddednumber#1{\ifnum#19 0\fi\number#1\relax}

 \defineconversion[pn] [\mypaddednumber]

 So the \defineconversion is the magic point I could not find (I only
 searched in core-itm.tex ...).

This is described in ConTeXt the manual, page 216:

The symbols used under 1 to 8 can be defined with the command
\definesymbol and the conversion of the numbering with \defineconversion

 Thanks a lot!
 Peter

Wolfgang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] zero padding with itemize

2008-06-12 Thread Carlos Breton Besnier
2008/6/8, Hans Hagen [EMAIL PROTECTED]:

 Peter Münster wrote:
  Hello,
 
  Is it already possible to get 0 padding with \startitemize:
  01
  02
  03
  and so on ?
 
  If yes, how? And if no, where is the magic point, where I could apply a
  patch (if it's not too difficult ;)

 has always been possible ...

 \starttext

 \def\mypaddednumber#1{\ifnum#19 0\fi\number#1\relax}

 \defineconversion[pn] [\mypaddednumber]

 \startitemize[pn,broad]
 \item oeps
 \item oeps
 \item oeps
 \stopitemize

 \stoptext



 And 9?

Best

\def\mypaddednumber#1{\ifnum#110 0\fi\number#1\relax}
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] zero padding with itemize

2008-06-11 Thread Peter Münster
On Sun, Jun 08 2008, Hans Hagen wrote:

  If yes, how? And if no, where is the magic point, where I could apply a
  patch (if it's not too difficult ;)
 
 has always been possible ...
 
 \starttext
 
 \def\mypaddednumber#1{\ifnum#19 0\fi\number#1\relax}
 
 \defineconversion[pn] [\mypaddednumber]

So the \defineconversion is the magic point I could not find (I only
searched in core-itm.tex ...).
Thanks a lot!
Peter

-- 
http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] zero padding with itemize

2008-06-08 Thread Peter Münster
Hello,

Is it already possible to get 0 padding with \startitemize:
01
02
03
and so on ?

If yes, how? And if no, where is the magic point, where I could apply a
patch (if it's not too difficult ;)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] zero padding with itemize

2008-06-08 Thread Hans Hagen
Peter Münster wrote:
 Hello,
 
 Is it already possible to get 0 padding with \startitemize:
 01
 02
 03
 and so on ?
 
 If yes, how? And if no, where is the magic point, where I could apply a
 patch (if it's not too difficult ;)

has always been possible ...

\starttext

\def\mypaddednumber#1{\ifnum#19 0\fi\number#1\relax}

\defineconversion[pn] [\mypaddednumber]

\startitemize[pn,broad]
\item oeps
\item oeps
\item oeps
\stopitemize

\stoptext



-
   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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___