padcount

Pad numbers with arbitrary characters

Version:
1.0
Copyright:
Donald P. Goodman
License:
lppl1.3c
Packaged on:
05/06/2018 20:11:41
Number of files:
7
Size on disk:
163.29 kB

This package provides some simple macros which will pad numbers (or, indeed, any expanded token) with your choice of character (defaulting to “0”) to your choice of number of places (defaults to “2”). This works not only on arabic numerals, but on any expanded list of tokens passed to it. This makes it suitable for, among other things, counters of all kinds.