ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* zero padding with itemize
@ 2008-06-08 19:44 Peter Münster
  2008-06-08 21:41 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2008-06-08 19:44 UTC (permalink / raw)
  To: ConTeXt list

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
___________________________________________________________________________________


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

* Re: zero padding with itemize
  2008-06-08 19:44 zero padding with itemize Peter Münster
@ 2008-06-08 21:41 ` Hans Hagen
  2008-06-11 15:39   ` Peter Münster
  2008-06-12  7:06   ` Carlos Breton Besnier
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2008-06-08 21:41 UTC (permalink / raw)
  To: ConTeXt list

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#1<9 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
___________________________________________________________________________________

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

* Re: zero padding with itemize
  2008-06-08 21:41 ` Hans Hagen
@ 2008-06-11 15:39   ` Peter Münster
  2008-06-12  6:37     ` Carlos Breton Besnier
  2008-06-12  6:57     ` Wolfgang Schuster
  2008-06-12  7:06   ` Carlos Breton Besnier
  1 sibling, 2 replies; 7+ messages in thread
From: Peter Münster @ 2008-06-11 15:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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#1<9 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
___________________________________________________________________________________


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

* Re: zero padding with itemize
  2008-06-11 15:39   ` Peter Münster
@ 2008-06-12  6:37     ` Carlos Breton Besnier
  2008-06-12  6:52       ` Wolfgang Schuster
  2008-06-12  6:57     ` Wolfgang Schuster
  1 sibling, 1 reply; 7+ messages in thread
From: Carlos Breton Besnier @ 2008-06-12  6:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

And 9? Best


\starttext

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

\defineconversion[pn] [\mypaddednumber]

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

\stoptext

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

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: zero padding with itemize
  2008-06-12  6:37     ` Carlos Breton Besnier
@ 2008-06-12  6:52       ` Wolfgang Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2008-06-12  6:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Carlos,

On Thu, Jun 12, 2008 at 8:37 AM, Carlos Breton Besnier
<breton.carlos@gmail.com> wrote:
> And 9? Best

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

Wolfgang

> \starttext
>
> \def\mypaddednumber#1{\ifnum#1<10 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
___________________________________________________________________________________


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

* Re: zero padding with itemize
  2008-06-11 15:39   ` Peter Münster
  2008-06-12  6:37     ` Carlos Breton Besnier
@ 2008-06-12  6:57     ` Wolfgang Schuster
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2008-06-12  6:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jun 11, 2008 at 5:39 PM, Peter Münster <pmlists@free.fr> 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#1<9 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
___________________________________________________________________________________


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

* Re: zero padding with itemize
  2008-06-08 21:41 ` Hans Hagen
  2008-06-11 15:39   ` Peter Münster
@ 2008-06-12  7:06   ` Carlos Breton Besnier
  1 sibling, 0 replies; 7+ messages in thread
From: Carlos Breton Besnier @ 2008-06-12  7:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2008/6/8, Hans Hagen <pragma@wxs.nl>:
>
> 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#1<9 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#1<10 0\fi\number#1\relax}

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

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2008-06-12  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-08 19:44 zero padding with itemize Peter Münster
2008-06-08 21:41 ` Hans Hagen
2008-06-11 15:39   ` Peter Münster
2008-06-12  6:37     ` Carlos Breton Besnier
2008-06-12  6:52       ` Wolfgang Schuster
2008-06-12  6:57     ` Wolfgang Schuster
2008-06-12  7:06   ` Carlos Breton Besnier

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