index_mark
Insert a tracked XE field right after a range to mark an index entry, so Word can build the index from those marks.
Instructions
Mark an index entry: an XE field, as a tracked insertion, right after a range. The entry is "Term" or "Term:Sub" (up to three levels). index.insert puts the index, which Word builds from the marks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | A range inside one paragraph; the mark goes after it. | |
| doc | Yes | Path to the .docx. | |
| tag | No | Appended to the author. | |
| entry | Yes | The index entry, e.g. "Term" or "Term:Sub". | |
| author | No | Revision author. | |
| expect | No | ||
| dry_run | No | Preview only; write nothing. |