<TextVariable> / Element reference
TextVariable
The TextVariable element in IDML: where it appears (designmap), its 3 attributes, their values, and how real documents use them.
Definition
A text variable: computed text such as a running header, the file name or a date, placed in stories as instances.
- Lives in
designmap273- Frequency
- In 273 of the 305 documents of the census (89.5%), 2026-10-12
- Attributes
- 3 observed, 3 of them vary between documents
- Discussed in
- Sections, numbering & variables, Text variables, How the parts reference each other and The design map
Structure
Relationships
Inside
Document273
TextVariable 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 273 |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | reference or text | any | 100% varies in 273 |
| VariableType# What the variable computes, such as CustomTextType, MatchParagraphStyleType (a running header), LastPageNumberType or FileNameType. | keyword | CustomTextType5FileNameType271PageCountTypeCreationDateType272ModificationDateType271OutputDateType272ChapterNumberType271MatchParagraphStyleType271MatchCharacterStyleTypeLastPageNumberType271XrefPageNumberType271XrefChapterNumberType271 or a named value | 100% varies in 273 |
TextVariable (census of 2026-10-12, 305 documents). Seen in is the share of the 273 documents with a TextVariable 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 273 of 305 documents (89.5%):
designmap273. - 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 TextVariable. 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 3 of the 3 attributes
- Render
- No feature of the capability record names this element
- Edit
- 2 attributes map to a scriptable path for
paged.set - Write
- Writes 3 of the 3 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| Name | readsdesignmap.rs:201 | textVariableName | writestext_variables.rs:289 |
| Self | readsdesignmap.rs:198 | — | writestext_variables.rs:288 |
| VariableType | readsdesignmap.rs:202 | textVariableType | writestext_variables.rs:290 |
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 TextVariable.
TaggedPDFPreference
The TaggedPDFPreference element in IDML: where it appears (designmap), its 1 attribute, their values, and how real documents use them.
TextVariablePreference
The TextVariablePreference element in IDML: where it appears (designmap), its 4 attributes, their values, and how real documents use them.