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/
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 -----------------------------------------------------------------
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/
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
Hi Carlos,
On Thu, Jun 12, 2008 at 8:37 AM, Carlos Breton Besnier
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 ___________________________________________________________________________________
On Wed, Jun 11, 2008 at 5:39 PM, 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#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
2008/6/8, 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#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}
participants (4)
-
Carlos Breton Besnier
-
Hans Hagen
-
Peter Münster
-
Wolfgang Schuster