diff options
| author | John MacFarlane <[email protected]> | 2024-12-22 13:18:27 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-12-22 13:18:27 -0800 |
| commit | b6aff2145231a7284b47b030c08a6410fb114ec1 (patch) | |
| tree | 7121ea41c9f833b975d9558a2312a8ab6cbb0a14 /data | |
| parent | ab29a767ff292d41bc6f76da4e02b81b9f298a03 (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')
| -rw-r--r-- | data/docx/word/document.xml | 12 | ||||
| -rw-r--r-- | data/templates/default.openxml | 6 |
2 files changed, 13 insertions, 5 deletions
diff --git a/data/docx/word/document.xml b/data/docx/word/document.xml index 475ae1894..aca3487d2 100644 --- a/data/docx/word/document.xml +++ b/data/docx/word/document.xml @@ -189,7 +189,7 @@ Body Text. Body Text Char. </w:r> <w:r> <w:t xml:space="preserve"> - + </w:t> </w:r> <w:r> @@ -207,7 +207,7 @@ Verbatim Char </w:r> <w:r> <w:t xml:space="preserve"> - + </w:t> </w:r> <w:hyperlink r:id="rId30"> @@ -227,7 +227,7 @@ Hyperlink </w:r> <w:r> <w:t xml:space="preserve"> - + </w:t> </w:r> <w:r> @@ -391,6 +391,10 @@ Definition </w:t> </w:r> </w:p> - <w:sectPr /> + <w:sectPr> + <w:footnotePr> + <w:numRestart w:val="eachSect" /> + </w:footnotePr> + </w:sectPr> </w:body> </w:document> 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> |
