Q: Is there a way to prepend zeros to org-mode
numbered lists?
Text alignment in numbered lists starts to look unpleasant when numbers get into the double digits:
* A numbered list
1. Item 1
2. Item 2
3. Item 3
4. Item 4
5. Item 5
6. Item 6
7. Item 7
8. Item 8
9. Item 9
10. Item 10 # ah, my eyes!
The org-mode
manual on plain lists states that:
Items belonging to the same list must have the same indentation on the first line. In particular, if an ordered list reaches number ‘10.’, then the 2–digit numbers must be written left-aligned with the other numbers in the list. An item ends before the next line that is less or equally indented than its bullet/number.
So it looks like org-mode
needs the digits to left-align. As such, I'm wondering if it's possible to prepend zeros onto the single-digit items so that the text aligns nicely:
* A zero-padded numbered list
01. Item 1
02. Item 2
03. Item 3
04. Item 4
05. Item 5
06. Item 6
07. Item 7
08. Item 8
09. Item 9
10. Item 10 # much better!
Out of curiosity, I tried hand-entering the zeros in a list and hitting C-c C-c
, which simply strips them out again.
So: is there any way to convince org-mode
to prepend zeros in numbered lists?
(Note: question inspired by this S.O. thread.)