aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default.openxml
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-12-22 13:18:27 -0800
committerJohn MacFarlane <[email protected]>2024-12-22 13:18:27 -0800
commitb6aff2145231a7284b47b030c08a6410fb114ec1 (patch)
tree7121ea41c9f833b975d9558a2312a8ab6cbb0a14 /data/templates/default.openxml
parentab29a767ff292d41bc6f76da4e02b81b9f298a03 (diff)
Docx writer: restart footnotes by section by default.
This can be overridden by a final sectPr element in the body of the reference.docx. It will only change things for `--top-level-division=chapter`, since only top-level chapters are put in separate sections. For that use it will mean that footnote numbers start over with each chapter, which is usually what is wanted. Closes #2773.
Diffstat (limited to 'data/templates/default.openxml')
-rw-r--r--data/templates/default.openxml6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/default.openxml b/data/templates/default.openxml
index 000609df7..b86efffa2 100644
--- a/data/templates/default.openxml
+++ b/data/templates/default.openxml
@@ -64,7 +64,11 @@ $-- sectpr will be set to the last sectpr in a reference.docx, if present
$if(sectpr)$
$sectpr$
$else$
- <w:sectPr />
+ <w:sectPr>
+ <w:footnotePr>
+ <w:numRestart w:val="eachSect" />
+ </w:footnotePr>
+ </w:sectPr>
$endif$
</w:body>
</w:document>