How to format numbered lists in a document