insert_citation
Insert a citation field at a specified anchor text occurrence in a Word document, using a stored source tag. Control page, prefix/suffix, and author/year suppression for the rendered citation.
Instructions
Insert a CITATION field for a stored source (tag from add_source / list_sources) after the occurrence-th anchor_text match; renders in the document citation style on field update (placeholder until then). pages, prefix/suffix, and the suppress flags shape the rendered cite. Run detect_citation_system first on unfamiliar documents: mixing Word-native and Zotero/Mendeley/EndNote citations creates a bibliography no single manager maintains. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| pages | No | ||
| backup | No | ||
| prefix | No | ||
| suffix | No | ||
| file_path | Yes | ||
| occurrence | No | ||
| anchor_text | Yes | ||
| suppress_year | No | ||
| suppress_author | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||