index_insert
Insert a Word INDEX field after a body paragraph as tracked insertions, with an optional title and a dirty placeholder that Word fills on update.
Instructions
Insert an index (an INDEX field) after a body paragraph, as tracked insertions: an optional title, the field with a placeholder result and the paragraph that closes it. The field is marked dirty: Word builds the entries and page numbers from the index.mark marks (F9); fields.update leaves it alone. Returns the address of the field's paragraph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Path to the .docx. | |
| tag | No | Appended to the author. | |
| after | Yes | Address of the body paragraph it goes after. | |
| title | No | Title paragraph above it (default "Index"); "" for none. | |
| author | No | Revision author. | |
| expect | No | ||
| dry_run | No | Preview only; write nothing. |