Skip to content

How can I pull off nested numbering? #1569

Discussion options

You must be logged in to vote

I figured it out for anyone who finds this. In Word/DOCX a paragraph just refers to a block of text. To get the above to work,

  • "1. Item one" is a paragraph with numbering.
  • The sub items are also their own paragraphs, but level 2
  • The "some more stuff..." line is actually its own paragraph as well! It is just indented so it looks like it is a child of item one. But in the code, it is not a child, it is its own paragraph object.

To see exactly how paragraphs work in word, open up a document, format it how you want. Then click the ¶ symbol. This will show you the outline that you will need to replicate in the DOCX code.

Hopefully this helps someone one day...

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Joshua-Flores
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants