<TOCStyle> / Element reference
TOCStyle
The TOCStyle element in IDML: where it appears (Resources/Styles), its 12 attributes, their values, and how real documents use them.
Definition
A table-of-contents recipe: a title, its paragraph style, and one entry per paragraph style to collect.
- Lives in
Resources/Styles272- Frequency
- In 272 of the 305 documents of the census (89.2%), 2026-10-12
- Attributes
- 12 observed, 5 of them vary between documents
- Discussed in
- Table of contents, Cross-references & hyperlinks, Resource parts and Styles
Structure
Relationships
TOCStyle sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Seen in |
|---|---|---|---|
| Name# The name InDesign shows for the object in its panels. References between objects use Self, never the name. | keyword or text | any | 100% varies in 2 |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | reference to TOCStyle | any | 100% varies in 2 |
| Title# The heading set at the top of the generated list, such as Contents. | keyword or text | any | 100% varies in 8 |
| TitleStyle# The paragraph style the title is set in, by Self. | reference to ParagraphStyle | any | 100% varies in 1 |
| CreateBookmarks# When true, the entries become bookmarks in exported PDF. | boolean | true271 | 99.6% |
| IncludeBookDocuments# When true, entries are also collected from the other documents of the book this document belongs to. | boolean | false271 | 99.6% |
| IncludeHidden# Whether paragraphs on hidden layers are collected too. | boolean | false271 | 99.6% |
| NumberedParagraphs# | keyword | IncludeFullParagraph270 | 99.6% varies in 1 |
| RunIn# When true, all entries of a level run together in one paragraph instead of one per line. | boolean | false271 | 99.6% |
| SetStoryDirection# | keyword | Horizontal271 | 99.6% |
| MakeAnchor# When true, a text anchor is placed at each collected paragraph. | boolean | false266 | 97.8% |
| RemoveForcedLineBreak# When true, forced line breaks are removed from the collected text. | boolean | false84 | 30.9% |
TOCStyle (census of 2026-10-12, 305 documents). Seen in is the share of the 272 documents with a TOCStyle that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Evidence
- Observed
- In 272 of 305 documents (89.2%):
Resources/Styles272. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
Paged support
What Paged, one implementation of the format, does with TOCStyle. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged b6f499b, read 2026-11-30; render from the capability record exported 2026-11-29.
- Parse
- Reads 8 of the 12 attributes
- Render
- No feature of the capability record names this element
- Edit
- No attribute maps to a scriptable path
- Write
- Writes none of its attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| Name | readsstyles.rs:1603 | — | not written |
| Self | readsstyles.rs:1602 | — | not written |
| Title | readsstyles.rs:1604 | — | not written |
| TitleStyle | readsstyles.rs:1605 | — | not written |
| CreateBookmarks | readsstyles.rs:1610 | — | not written |
| IncludeBookDocuments | readsstyles.rs:1606 | — | not written |
| IncludeHidden | readsstyles.rs:1607 | — | not written |
| NumberedParagraphs | not read | — | not written |
| RunIn | readsstyles.rs:1608 | — | not written |
| SetStoryDirection | not read | — | not written |
| MakeAnchor | not read | — | not written |
| RemoveForcedLineBreak | not read | — | not written |
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names TOCStyle.
TextFrameFootnoteOptionsObject
The TextFrameFootnoteOptionsObject element in IDML: where it appears (Resources/Styles), its 4 attributes, their values, and how real documents use them.
TOCStyleEntry
The TOCStyleEntry element in IDML: where it appears (Resources/Styles), its 11 attributes, their values, and how real documents use them.