How to Properly Mark Tables of Contents (Simplified Editor)

Modified on Wed, 15 Jul at 4:09 PM

Overview

A table of contents helps readers navigate a document. For it to work correctly in an accessible PDF, it needs to be identified as a TOC element in the Simplified Editor, with each item detected accurately, marked at the right level, and page numbers properly assigned. This article walks you through how to check and fix all of that.


Prerequisites 

Do this any time your document includes a Table of Contents. You should complete this step during the Clarify Page Elements stage of your remediation project or during the Full Document Review.


Steps to Follow

Step 1: Check the TOC element

First, make sure the TOC element includes the correct content. It should contain the table of contents entries only, not the heading above them.


  1. In the page view, look at what is inside your TOC element.
  2. If the words "Table of Contents" are inside the TOC element, resize the element so that the heading is excluded.

    Screenshot showing a Table of Contents in a TOC container.  Above and inside the same TOC container, there is "Table of Contents" text.
  3. Draw a new element around the heading text and assign it the correct heading level, for example, H2.

    Screenshot showing a Table of Contents in a TOC container.  Above and outside the TOC container, there is an H2 containing the text "Table of Contents."


Step 2: Check the TOC Item levels

TOC entries have levels that need to match the structure of the table of contents in the document.

  1. Select the TOC element in the page view.
  2. Click the "TOC" button in the toolbar to open the TOC-specific toolbar.
  3. Review the level indicat,ors on each TOC item. Top level entries should show "L1" and any nested entries should show "L2" or deeper.

    Screenshot showing the TOC Item levels.  
  1. If any item is at the wrong level, click on it and select the correct level from the TOC Item menu. If needed, use the zoom functionality at the top right of the interface to get a closer look while working with TOC items.

    A TOC Item is selected, the TOC Item menu is expanded, and "L1" is highlighted to assign a TOC Item to level 1.  


Step 3: Verify and mark page numbers

The Simplified Editor will usually mark page numbers in TOC items automatically. For complex layouts, you may need to check and fix these manually. This matters because the Simplified Editor uses the marked page number to set the range for artifacting dot leaders, keeping them out of the tag structure.

  1. Select the TOC element and click the "TOC" button in the toolbar to open the TOC toolbar.
  2. Review each TOC item to confirm the page number is marked correctly.

    A TOC has been selected in the page view and the child toolbar is open.  On the right side of the page, the page numbers are highlighted.

  3. If a page number is missing or marked incorrectly, click the TOC item you want to fix.
  4. In the TOC toolbar, click "Clear Page Number" to remove any existing marking.

    The "Clear Page Number" button is highlighted in the TOC "child toolbar."
     
  5. Click "Mark Page Number" and draw a box around the page number in the page view.

    The "Mark Page Number" button is highlighted in the TOC "child toolbar."

    When drawing the box around the page number, be careful not to include any dot leaders. Only the number itself should be inside the box.

Common Problems

The "Table of Contents" heading is inside the TOC element

This is one of the most common issues with tables of contents. The heading text should sit in its own element outside the TOC element. Resize the TOC element to exclude it and create a separate heading element for it.


TOC item levels do not match the visual structure

If all entries are showing as L1 when some should be nested, go through each item in the TOC toolbar and set the correct level manually. Zooming in on the page view makes this much easier.


Page numbers are not being marked automatically

If the layout of your table of contents is complex, for example, with wide dot leaders or unusual spacing, the Simplified Editor may not detect page numbers reliably. Use the "Mark Page Number" tool to draw a box around each one manually.


Frequently Asked Questions

Why does the "Table of Contents" heading need to be outside the TOC element?

The TOC element is specifically for the navigational entries in the table of contents. A heading sitting above those entries serves a different structural purpose and should be tagged as a heading, not as part of the TOC. Mixing them together produces an incorrect tag structure in the final output.


What are dot leaders and why do they get artifacted?

Dot leaders are the rows of dots that visually connect a TOC entry to its page number. They are decorative and carry no meaningful information for someone using a screen reader. Artifacting them removes them from the tag structure so they are not read aloud, which keeps the reading experience clean.


What happens if TOC item levels are wrong?

If all entries are at the same level when some should be nested, a screen reader will not be able to convey the hierarchy of the table of contents to the user. Someone navigating the document by TOC entries will lose the sense of which items are top level sections and which are subsections.


Related Articles

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article