summaryrefslogtreecommitdiff
path: root/data/docx/word
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-30 20:30:15 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-30 20:30:15 -0700
commit2b2f7fe15e2632fe123934ec105c8cc72cd593fd (patch)
tree0b67631fa4db3e43fc75c6c5c550b453a1a2cc2d /data/docx/word
parentc2cb64379ec24eadc43d8f4a48bf3b19b4e33624 (diff)
parent0d4d26294491b3f16e11231e90dc79ccd16b0b48 (diff)
Merge pull request #2035 from lierdakil/issue2031
Docx Writer/Reference: Add keepNext to objects w/ captions
Diffstat (limited to 'data/docx/word')
-rw-r--r--data/docx/word/styles.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml
index 01190ef5a..347e7ff07 100644
--- a/data/docx/word/styles.xml
+++ b/data/docx/word/styles.xml
@@ -308,11 +308,25 @@
<w:style w:type="paragraph" w:customStyle="1" w:styleId="TableCaption">
<w:name w:val="Table Caption" />
<w:basedOn w:val="Caption" />
+ <w:pPr>
+ <w:keepNext />
+ </w:pPr>
</w:style>
<w:style w:type="paragraph" w:customStyle="1" w:styleId="ImageCaption">
<w:name w:val="Image Caption" />
<w:basedOn w:val="Caption" />
</w:style>
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="Figure">
+ <w:name w:val="Figure" />
+ <w:basedOn w:val="Normal" />
+ </w:style>
+ <w:style w:type="paragraph" w:customStyle="1" w:styleId="FigureWithCaption">
+ <w:name w:val="Figure with Caption" />
+ <w:basedOn w:val="Figure" />
+ <w:pPr>
+ <w:keepNext />
+ </w:pPr>
+ </w:style>
<w:style w:type="character" w:customStyle="1" w:styleId="BodyTextChar">
<w:name w:val="Body Text Char" />
<w:basedOn w:val="DefaultParagraphFont" />