Files
John MacFarlane 3385981157 ODT reference doc: demonstrate predefined styles.
Previously data/odt/content.xml contained only "Hello World!", so the
reference.odt produced by `--print-default-data-file reference.odt` gave
users no visual indication of which styles pandoc uses or how their
customizations would render.

Populate content.xml with example content exercising the predefined
paragraph and text styles shipped in data/odt/styles.xml: Author, Date,
Abstract, Heading_20_1..6, First_20_paragraph, Text_20_body (with
Emphasis, Strong_20_Emphasis, Strikeout, Superscript, Subscript,
Source_20_Text, Highlighted, hyperlink, and footnote), Quotations,
Preformatted_20_Text, List_20_Bullet, List_20_Number, TableCaption,
a two-column table using Table_20_Heading and Table_20_Contents,
FigureCaption, Definition_20_Term, and Definition_20_Definition.

This mirrors the demonstration content already present in
data/docx/word/document.xml.

Closes #10327.
2026-05-29 11:17:16 +02:00

83 lines
7.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.3">
<office:scripts/>
<office:font-face-decls>
<style:font-face style:name="StarSymbol" svg:font-family="StarSymbol"/>
<style:font-face style:name="Tahoma1" svg:font-family="Tahoma"/>
<style:font-face style:name="Courier New" svg:font-family="&apos;Courier New&apos;" style:font-family-generic="modern" style:font-pitch="fixed"/>
<style:font-face style:name="Times New Roman" svg:font-family="&apos;Times New Roman&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="Lucida Sans Unicode" svg:font-family="&apos;Lucida Sans Unicode&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
</office:font-face-decls>
<office:automatic-styles>
<style:style style:name="DemoTable" style:family="table">
<style:table-properties style:width="6in" table:align="margins"/>
</style:style>
<style:style style:name="DemoTable.A" style:family="table-column">
<style:table-column-properties style:column-width="3in"/>
</style:style>
</office:automatic-styles>
<office:body>
<office:text>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
</text:sequence-decls>
<text:p text:style-name="Title">Title</text:p>
<text:p text:style-name="Subtitle">Subtitle</text:p>
<text:p text:style-name="Author">Author</text:p>
<text:p text:style-name="Date">Date</text:p>
<text:p text:style-name="Abstract">Abstract.</text:p>
<text:h text:style-name="Heading_20_1" text:outline-level="1">Heading 1</text:h>
<text:h text:style-name="Heading_20_2" text:outline-level="2">Heading 2</text:h>
<text:h text:style-name="Heading_20_3" text:outline-level="3">Heading 3</text:h>
<text:h text:style-name="Heading_20_4" text:outline-level="4">Heading 4</text:h>
<text:h text:style-name="Heading_20_5" text:outline-level="5">Heading 5</text:h>
<text:h text:style-name="Heading_20_6" text:outline-level="6">Heading 6</text:h>
<text:p text:style-name="First_20_paragraph">First Paragraph.</text:p>
<text:p text:style-name="Text_20_body">Body Text. <text:span text:style-name="Emphasis">Emphasis</text:span>. <text:span text:style-name="Strong_20_Emphasis">Strong Emphasis</text:span>. <text:span text:style-name="Strikeout">Strikeout</text:span>. <text:span text:style-name="Superscript">Superscript</text:span>. <text:span text:style-name="Subscript">Subscript</text:span>. <text:span text:style-name="Source_20_Text">Source Text</text:span>. <text:span text:style-name="Highlighted">Highlighted</text:span>. <text:a xlink:type="simple" xlink:href="https://pandoc.org"><text:span text:style-name="Definition">Hyperlink</text:span></text:a>. Footnote.<text:note text:id="ftn1" text:note-class="footnote"><text:note-citation>1</text:note-citation><text:note-body><text:p text:style-name="Footnote">Footnote text.</text:p></text:note-body></text:note></text:p>
<text:p text:style-name="Quotations">Block quote.</text:p>
<text:p text:style-name="Preformatted_20_Text">Preformatted Text.</text:p>
<text:list text:style-name="List_20_1">
<text:list-item>
<text:p text:style-name="List_20_Bullet">Bullet list item.</text:p>
</text:list-item>
</text:list>
<text:list text:style-name="Numbering_20_1">
<text:list-item>
<text:p text:style-name="List_20_Number">Numbered list item.</text:p>
</text:list-item>
</text:list>
<text:p text:style-name="TableCaption">Table caption.</text:p>
<table:table table:name="DemoTable" table:style-name="DemoTable">
<table:table-column table:style-name="DemoTable.A"/>
<table:table-column table:style-name="DemoTable.A"/>
<table:table-header-rows>
<table:table-row>
<table:table-cell office:value-type="string">
<text:p text:style-name="Table_20_Heading">Table Heading</text:p>
</table:table-cell>
<table:table-cell office:value-type="string">
<text:p text:style-name="Table_20_Heading">Table Heading</text:p>
</table:table-cell>
</table:table-row>
</table:table-header-rows>
<table:table-row>
<table:table-cell office:value-type="string">
<text:p text:style-name="Table_20_Contents">Table Contents</text:p>
</table:table-cell>
<table:table-cell office:value-type="string">
<text:p text:style-name="Table_20_Contents">Table Contents</text:p>
</table:table-cell>
</table:table-row>
</table:table>
<text:p text:style-name="FigureCaption">Image caption.</text:p>
<text:p text:style-name="Definition_20_Term">Definition Term</text:p>
<text:p text:style-name="Definition_20_Definition">Definition.</text:p>
</office:text>
</office:body>
</office:document-content>