Share via

Paragraph style not rendered as list

Anonymous
2022-12-20T17:49:52+00:00

I have this sample .docx file (Sample file) which was genererated from a software I build.

I build the XML structure of this .docx file and based on the available documentation for the OOXML structure, the first paragraph should be rendered as list.

The first paragraph has a paragraph style reference - "TOCQuestion(1)".

And in the paragraph style definition of "TOCQuestion(1)" theres a reference to a numId which exists in the numbering part.

Any ideas why this paragraph is not being displayed with a list?

Microsoft 365 and Office | Word | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

John Korchok 232.7K Reputation points Volunteer Moderator
2022-12-20T21:21:00+00:00

Word uses 4 types of styles: Character, Paragraph, List and Table. You would have to add the paragraph style to the list style you've created. Once you've done that, all text in that paragraph style will also display the list styling.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Charles Kenyon 167.6K Reputation points Volunteer Moderator
2022-12-20T19:57:09+00:00

Looking at your sample, I see a TOC Question style and a TOC Question (1) style. Neither is attached to a list.

The idea in my previous reply is to attach each level in a list to a separate paragraph style and use that style to apply numbering or bullets.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Stefan Blom 342.2K Reputation points MVP Volunteer Moderator
    2022-12-20T21:31:49+00:00

    Looking at the drop down Home tab > Paragraph group > Multilevel List, the document appears to contain a multilevel bulleted list. See the screen shot below.

    However, to create a stable list, you need to set it up with paragraph styles (one style per level), as Charles has already mentioned (http://www.shaunakelly.com/word/numbering/numbering20072010.html).

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Charles Kenyon 167.6K Reputation points Volunteer Moderator
    2022-12-20T19:50:26+00:00

    I use Word to construct documents and templates. I will take a look at your sample. In the meantime, here is how to create numbering that works in Word across editing.

    If you use automatic paragraph numbering or bullets read Shauna Kelly's directions on numbering and bullets. Start with How to create numbered headings or outline numbering in Word 2007 and Word 2010. For large documents you must follow these directions or you will lose your hair!
    (Mac version: https://www.brandwares.com/bestpractices/2016/06/outline-numbering-in-word-for-os-x/)

    This may seem a bit convoluted at first, but it really is not. Just follow the steps. Shauna Kelly's instructions use the built-in heading styles, but you can use any existing paragraph styles including your custom styles. There are, however advantages to using the built-in heading styles when you create a Table of Contents. Here are some more advantages: Why Use Word's Built-In Heading Styles? by Shauna Kelly Note, you can modify these built-in styles to look exactly the way you want.

    The basic idea is that the numbering is set using the Define MultiLevel List dialog with each numbering level being attached to an existing paragraph style. Once you have this set up, you should not use the buttons for numbering in the Ribbon but rather apply the appropriate style for that level.

    You can save a document with this as a template for future documents if you want so you will not need to do this every time.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments