Share via

Manual TOC : Level issue

Anonymous
2017-06-22T12:13:11+00:00

Hello,

I would like to create a manual partial TOC while using only level 2 titles. The document is correctly formatted, I applied styles to the titles (Heading 1..4), and I created a bookmark for "section_1".

When I insert a TOC using insert -> text -> quick parts -> field, I select TOC (field name then field codes) and I insert /b (options) and I specify the section resulting in this code:

{ TOC \b section_1 \* MERGEFORMAT }

I obtain the table of contents. No problem here.

However when I add the \l option and specify 2 or even 2-3 (see code below) I obtain and error "No table of contents entries found"

{ TOC \b section_1 \l 2-3 \* MERGEFORMAT }

I would like to know what am I doing wrong.

Thank you.

Microsoft 365 and Office | Word | For home | 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

Stefan Blom 342.4K Reputation points MVP Volunteer Moderator
2017-06-22T12:38:59+00:00

You can't use the \L switch to specify heading levels. For that, you need the \o switch:

{ TOC \b section_1 \o "2-3" }

\o "2-3" includes heading levels 2 and 3. If you want just level 2, use \o "2-2".

I'm assuming here that "section_1" is your actual bookmark name.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-06-24T12:21:24+00:00

    Thank you! That's exactly what I'm looking for.

    Was this answer helpful?

    0 comments No comments