<TOCStyleEntry> / Element reference
TOCStyleEntry
The TOCStyleEntry element in IDML: where it appears (Resources/Styles), its 11 attributes, their values, and how real documents use them.
Definition
One entry of a TOC style: the paragraph style to collect, the style to set it in, its level and its page-number options.
- Lives in
Resources/Styles3- Frequency
- In 3 of the 305 documents of the census (1%), 2026-10-12
- Attributes
- 11 observed, 8 of them vary between documents
- Discussed in
- Table of contents and Styles
Structure
Relationships
TOCStyleEntry 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 |
|---|---|---|---|
| FormatStyle# The paragraph style the collected entry is set in, by Self. | object, string | any | 100% varies in 2 |
| Level# The entry's outline depth, 1 for the top level. | integer | any | 100% varies in 1 |
| Name# The name InDesign shows for the object in its panels. References between objects use Self, never the name. | builtin or keyword or text | any | 100% varies in 2 |
| Separator# The text between the entry and its page number; ^t is a tab. | builtin or text | any | 100% varies in 2 |
| PageNumberPosition# Where the entry's page number goes relative to its text. | keyword | any | 66.7% varies in 1 |
| PageNumberStyle a child of Properties #The character style the entry's page number is set in. | object, string | any | 66.7% varies in 1 |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | text | any | 66.7% varies in 2 |
| SeparatorStyle a child of Properties #The character style the separator is set in. | object, string | any | 66.7% varies in 1 |
| SortAlphabet# When true, the entries of this level are sorted alphabetically instead of in page order. | boolean | any | 66.7% |
| IncludeStyle# The paragraph style whose paragraphs this entry collects, by Self. | reference | any | 33.3% |
| PageNumber# Whether the entry carries a page number; PageNumberPosition says where. | keyword | any | 33.3% |
TOCStyleEntry (census of 2026-10-12, 305 documents). Seen in is the share of the 3 documents with a TOCStyleEntry 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 3 of 305 documents (1%):
Resources/Styles3. - 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 TOCStyleEntry. 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 11 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 |
|---|---|---|---|
| FormatStyle | readsstyles.rs:1643 | — | not written |
| Level | readsstyles.rs:1644 | — | not written |
| Name | readsstyles.rs:1626 | — | not written |
| Separator | readsstyles.rs:1636 | — | not written |
| PageNumberPosition | readsstyles.rs:1633 | — | not written |
| PageNumberStyle | not read | — | not written |
| Self | not read | — | not written |
| SeparatorStyle | not read | — | not written |
| SortAlphabet | readsstyles.rs:1648 | — | not written |
| IncludeStyle | readsstyles.rs:1627 | — | not written |
| PageNumber | readsstyles.rs:1632 | — | 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 TOCStyleEntry.
TOCStyle
The TOCStyle element in IDML: where it appears (Resources/Styles), its 12 attributes, their values, and how real documents use them.
TransformAttributeOption
The TransformAttributeOption element in IDML: where it appears (Resources/Styles), its 3 attributes, their values, and how real documents use them.