mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-26 11:27:10 -06:00
Insert Table of Figures now opens a Table of Figures dialog (caption label, include label and number, page numbers, right margin, tab leader) instead of always building a list of Figures. The label list offers the built-in labels, the user's own and those the document's captions use, so a document can have a list of figures beside a list of tables. references.tableOfFigures takes includeLabel, pageNumbers, rightAlign and tabLeader and writes the TOC switches for them (ECMA-376 17.16.5.68: \c or \a, \n, \p). Captions are matched on their whole label (SEQ identifier), a Word table of figures with its switches in any order (TOC \h \z \c "Figure") is recognised, and Update Table keeps each list's leader. The table of contents code treats any \c or \a TOC as a table of figures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>