[texhax] number format [001]
Lars Madsen
daleif at imf.au.dk
Thu May 28 10:12:52 CEST 2009
rhessel at comcast.net wrote:
> Hi,
> I'm fixing a patent that was originally formatted in LaTeX. I'm using numberpar.sty to
> number the paragraphs. My problem is that the patent office wants the numbers to
> be 001 002 etc instead of 1 2 ... How can I convince LaTex to use leading zeros in
> the numbers?
>
> Thanks!
> Dick
> -----
> Dick Hessel
> rhessel at comcast dot net
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
the kernal has a macro called \two at digits which provides 01 02 etc, just
make your own inspired from this. It is defined as
\def\two at digits#1{\ifnum#1<10 0\fi\number#1}
--
/daleif
More information about the texhax
mailing list