mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-23 16:56:43 +00:00
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.
75 lines
1.8 KiB
XML
75 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">
|
|
<w:body>
|
|
$if(title)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="$title-style-id$" />
|
|
</w:pPr>
|
|
$title$
|
|
</w:p>
|
|
$endif$
|
|
$if(subtitle)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="$subtitle-style-id$" />
|
|
</w:pPr>
|
|
$subtitle$
|
|
</w:p>
|
|
$endif$
|
|
$for(author)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="$author-style-id$" />
|
|
</w:pPr>
|
|
$author$
|
|
</w:p>
|
|
$endfor$
|
|
$if(date)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="$date-style-id$" />
|
|
</w:pPr>
|
|
$date$
|
|
</w:p>
|
|
$endif$
|
|
$if(abstract)$
|
|
$if(abstract-title)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="$abstract-title-style-id$" />
|
|
</w:pPr>
|
|
<w:r><w:t xml:space="preserve">$abstract-title$</w:t></w:r>
|
|
</w:p>
|
|
$endif$
|
|
$abstract$
|
|
$endif$
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
$if(toc)$
|
|
$toc$
|
|
$endif$
|
|
$if(lof)$
|
|
$lof$
|
|
$endif$
|
|
$if(lot)$
|
|
$lot$
|
|
$endif$
|
|
$body$
|
|
$for(include-after)$
|
|
$include-after$
|
|
$endfor$
|
|
$-- sectpr will be set to the last sectpr in a reference.docx, if present
|
|
$if(sectpr)$
|
|
$sectpr$
|
|
$else$
|
|
<w:sectPr>
|
|
<w:footnotePr>
|
|
<w:numRestart w:val="eachSect" />
|
|
</w:footnotePr>
|
|
</w:sectPr>
|
|
$endif$
|
|
</w:body>
|
|
</w:document>
|