caption_add
Insert a labeled, auto-numbered caption with a hidden cross-reference bookmark above or below a body paragraph as tracked changes in a Word document, and return the caption's address.
Instructions
Add a caption paragraph above or below a body paragraph, as tracked insertions: the label (Table, Figure or Equation), a SEQ field that numbers it, and the text, with a hidden bookmark around the label and number for cross-references. The number is refreshed by fields.update. Returns the address of the caption.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Address of the body paragraph the caption goes next to. | |
| doc | Yes | Path to the .docx. | |
| tag | No | Appended to the author. | |
| text | Yes | Caption text after the number; may be empty. | |
| label | Yes | The caption label. | |
| author | No | Revision author. | |
| expect | No | ||
| dry_run | No | Preview only; write nothing. | |
| position | No | Default: above for a Table, below for a Figure or Equation. |