
Recalculate a docx's Word fields (ToC page numbers/entries) in place
Source:R/recalculate-fields.R
styling_recalculate_fields.RdDelegates to quartifyr-styling recalculate-fields in the bundled Python
engine, via headless LibreOffice. Experimental and known-flaky: real
runs against the same document have produced three different outcomes
(hang, silent no-op, success), reproduced both sandboxed and in a plain
terminal. Don't treat a clean return as proof it worked.