aboutsummaryrefslogtreecommitdiff
path: root/data/odt
diff options
context:
space:
mode:
authorNikolay Yakimov <root@livid.pp.ru>2015-04-12 00:34:03 +0300
committerNikolay Yakimov <root@livid.pp.ru>2015-04-12 00:34:03 +0300
commitb2ba922638a296887fa29b780d12ea40814a86bb (patch)
treefc0ef4e0838bde2a5d4f2fbf7d7101b00ee11199 /data/odt
parent9e16fb3b961c1aa8e79a707204d5815528cfb5c6 (diff)
downloadpandoc-b2ba922638a296887fa29b780d12ea40814a86bb.tar.gz
ODT Writer: Figure captions
Works pretty much the same as Word writer. Following styles are used for figures: Figure -- for figure with empty caption FigureWithCaption (based on Figure) -- for figure with caption FigureCaption (based on Caption) -- for figure captions Also, TableCaption (based on Caption) is used for table captions. We need FigureWithCaption to set keepWithNext, in order to keep caption with figure.
Diffstat (limited to 'data/odt')
-rw-r--r--data/odt/styles.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/odt/styles.xml b/data/odt/styles.xml
index ac0cbd742..32b918406 100644
--- a/data/odt/styles.xml
+++ b/data/odt/styles.xml
@@ -133,6 +133,22 @@ xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2">
style:font-size-complex="12pt"
style:font-style-complex="italic" />
</style:style>
+ <style:style style:name="TableCaption" style:family="paragraph"
+ style:parent-style-name="Caption" style:class="extra">
+ </style:style>
+ <style:style style:name="FigureCaption" style:family="paragraph"
+ style:parent-style-name="Caption" style:class="extra">
+ </style:style>
+ <style:style style:name="Figure" style:family="paragraph"
+ style:parent-style-name="Standard" style:class="extra">
+ <style:paragraph-properties text:number-lines="false"
+ text:line-number="0" />
+ </style:style>
+ <style:style style:name="FigureWithCaption" style:family="paragraph"
+ style:parent-style-name="Figure" style:class="extra">
+ <style:paragraph-properties text:number-lines="false"
+ text:line-number="0" fo:keep-with-next="always" />
+ </style:style>
<style:style style:name="Index" style:family="paragraph"
style:parent-style-name="Standard" style:class="index">
<style:paragraph-properties text:number-lines="false"