aboutsummaryrefslogtreecommitdiff
path: root/test/writer.opendocument
diff options
context:
space:
mode:
authorNils Carlson <pyssling@ludd.ltu.se>2018-10-03 21:21:46 +0000
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-03 14:21:46 -0700
commitecd4d5b8d8cfda6a2cd8d8fb631e0d7c79bee363 (patch)
tree9384aadc6a79594ba06fb6216fbca64062d177d7 /test/writer.opendocument
parent05d52eb9bbaf6faf2ce52947e916a82d7f29275e (diff)
downloadpandoc-ecd4d5b8d8cfda6a2cd8d8fb631e0d7c79bee363.tar.gz
OpenDocument writer: Implement figure numbering in captions (#4944)
Figure captions are now numbered 1, 2, 3, ... The format in the caption is "Figure 1: <caption>" and so on. This is necessary in order for libreoffice to generate an Illustration Index (Table of Figures) for included figures.
Diffstat (limited to 'test/writer.opendocument')
-rw-r--r--test/writer.opendocument2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/writer.opendocument b/test/writer.opendocument
index 28c38ee1d..09a246b52 100644
--- a/test/writer.opendocument
+++ b/test/writer.opendocument
@@ -1880,7 +1880,7 @@ link in pointy braces</text:span></text:a>.</text:p>
<text:p text:style-name="First_20_paragraph">From “Voyage dans la Lune” by
Georges Melies (1902):</text:p>
<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">lalune</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>: lalune</text:p>
<text:p text:style-name="Text_20_body">Here is a movie
<draw:frame draw:name="img2"><draw:image xlink:href="movie.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame>
icon.</text:p>