ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Carlos Breton Besnier" <breton.carlos@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: zero padding with itemize
Date: Thu, 12 Jun 2008 09:06:17 +0200	[thread overview]
Message-ID: <cbdd7abd0806120006l3e194617q9dc44d9d043f4ba6@mail.gmail.com> (raw)
In-Reply-To: <484C521A.8060602@wxs.nl>


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

      parent reply	other threads:[~2008-06-12  7:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-08 19:44 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cbdd7abd0806120006l3e194617q9dc44d9d043f4ba6@mail.gmail.com \
    --to=breton.carlos@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).