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.
This commit is contained in:
parent
ab29a767ff
commit
b6aff21452
40 changed files with 13 additions and 5 deletions
data
test/docx/golden
block_quotes.docxcodeblock.docxcomments.docxcustom_style_no_reference.docxcustom_style_preserve.docxcustom_style_reference.docxdefinition_list.docxdocument-properties-short-desc.docxdocument-properties.docxheaders.docximage.docxinline_code.docxinline_formatting.docxinline_images.docxlink_in_notes.docxlinks.docxlists.docxlists_9994.docxlists_continuing.docxlists_div_bullets.docxlists_multiple_initial.docxlists_restarting.docxnested_anchors_in_header.docxnotes.docxraw-blocks.docxraw-bookmarks.docxtable_one_row.docxtable_with_list_cell.docxtables-default-widths.docxtables.docxtables_separated_with_rawblock.docxtask_list.docxtrack_changes_deletion.docxtrack_changes_insertion.docxtrack_changes_move.docxtrack_changes_scrubbed_metadata.docxunicode.docxverbatim_subsuper.docx
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue