aboutsummaryrefslogtreecommitdiff
path: root/test/command/5474-figures.md
diff options
context:
space:
mode:
authorNils Carlson <nils.carlson@ludd.ltu.se>2019-09-21 20:12:00 +0000
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-24 15:23:59 -0700
commit8028de33220af0a43ac8d14021b7fa2b98b22d64 (patch)
tree3f414a7a173669d83b766a10b1760db96daf5541 /test/command/5474-figures.md
parent251e2b2d6d4310aa22f3575db371c6c1cfa909af (diff)
downloadpandoc-8028de33220af0a43ac8d14021b7fa2b98b22d64.tar.gz
odt: Add external option for native numbering
This adds an external options +native_numbering to the ODT writer enabling enumeration of figures and tables in ODT output.
Diffstat (limited to 'test/command/5474-figures.md')
-rw-r--r--test/command/5474-figures.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command/5474-figures.md b/test/command/5474-figures.md
new file mode 100644
index 000000000..915bf3434
--- /dev/null
+++ b/test/command/5474-figures.md
@@ -0,0 +1,15 @@
+```
+% pandoc -t opendocument+native_numbering
+
+![First image](lalune.jpg)
+
+![Second image](lalune.jpg)
+
+^D
+<text:p text:style-name="FigureWithCaption"><draw:frame draw:name="img1"><draw:image xlink:href="lalune.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame></text:p>
+<text:p text:style-name="FigureCaption">Figure <text:sequence text:ref-name="refIllustration0" text:name="Illustration" text:formula="ooow:Illustration+1" style:num-format="1">1</text:sequence>: First
+image</text:p>
+<text:p text:style-name="FigureWithCaption"><draw:frame draw:name="img2"><draw:image xlink:href="lalune.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame></text:p>
+<text:p text:style-name="FigureCaption">Figure <text:sequence text:ref-name="refIllustration1" text:name="Illustration" text:formula="ooow:Illustration+1" style:num-format="1">2</text:sequence>: Second
+image</text:p>
+```