Skip to content

Instantly share code, notes, and snippets.

@azyobuzin
Last active July 5, 2018 19:00
Show Gist options
  • Save azyobuzin/98ace84cd78432c21ecd75b4cf67bbac to your computer and use it in GitHub Desktop.
Save azyobuzin/98ace84cd78432c21ecd75b4cf67bbac to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<office:document-content office:version="1.2"
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0">
<office:automatic-styles>
<!-- table 系は automatic-styles に書かないと LibreOffice が認識しない -->
<style:style style:name="TableCell" style:family="table-cell">
<style:table-cell-properties fo:border="0.5pt solid #000000" fo:padding-top="0in" fo:padding-bottom="0in" fo:padding-left="0.075in" fo:padding-right="0.075in" style:vertical-align="middle" fo:wrap-option="no-wrap" />
</style:style>
<style:style style:name="Table1" style:family="table">
<style:table-properties table:align="center" table:border-model="collapsing" />
</style:style>
<text:list-style style:name="List0">
<text:list-level-style-bullet text:level="1" text:bullet-char="•">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.27cm" fo:margin-left="0.635cm" />
</style:list-level-properties>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="2" text:bullet-char="◦">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.905cm" fo:margin-left="1.27cm" />
</style:list-level-properties>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="3" text:bullet-char="▪">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="2.54cm" fo:margin-left="1.905cm" />
</style:list-level-properties>
</text:list-level-style-bullet>
</text:list-style>
<text:list-style style:name="List1">
<text:list-level-style-number text:level="1" style:num-suffix="." style:num-format="1">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.27cm" fo:margin-left="0.635cm" />
</style:list-level-properties>
</text:list-level-style-number>
<text:list-level-style-number text:level="2" style:num-suffix="." style:num-format="1">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="1.905cm" fo:margin-left="1.27cm" />
</style:list-level-properties>
</text:list-level-style-number>
<text:list-level-style-number text:level="3" style:num-suffix="." style:num-format="1">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" text:list-tab-stop-position="2.54cm" fo:margin-left="1.905cm" />
</style:list-level-properties>
</text:list-level-style-number>
</text:list-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-decls>
<text:h text:style-name="Heading1" text:outline-level="1">はじめに</text:h>
<text:h text:style-name="Heading2" text:outline-level="2">目的</text:h>
<text:p text:style-name="Paragraph">段落だんだん</text:p>
<text:p text:style-name="ImageBlock"><draw:frame text:anchor-type="as-char" style:rel-width="50%" style:rel-height="scale"><draw:image xlink:href="media/img035.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></draw:frame><text:line-break />図<text:sequence text:ref-name="refIllustration0" text:name="Illustration" style:num-format="1">1</text:sequence>:<text:s />あああ</text:p>
<text:p text:style-name="Paragraph">画像のあと</text:p>
<text:p text:style-name="BlockCaption">表<text:sequence text:ref-name="refTable0" text:name="Table" style:num-format="1">1</text:sequence>:<text:s />うひょー</text:p>
<table:table table:style-name="Table1">
<table:table-column />
<table:table-column />
<table:table-row>
<table:table-cell table:style-name="TableCell" office:value-type="string">
<text:p text:style-name="TableHeading">a</text:p>
</table:table-cell>
<table:table-cell table:style-name="TableCell" office:value-type="string">
<text:p text:style-name="TableHeading">ああああああああああああ</text:p>
</table:table-cell>
</table:table-row>
<table:table-row>
<table:table-cell table:style-name="TableCell" office:value-type="string">
<text:p text:style-name="Standard">c</text:p>
</table:table-cell>
<table:table-cell table:style-name="TableCell" office:value-type="string">
<text:p text:style-name="Standard">d</text:p>
</table:table-cell>
</table:table-row>
</table:table>
<text:p text:style-name="BlockCaption">リスト<text:sequence text:ref-name="refList0" text:name="List" style:num-format="1">1</text:sequence>:<text:s />箇条書き</text:p>
<text:list text:style-name="List0">
<text:list-item>
<text:p text:style-name="Standard">あ</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="Standard">い</text:p>
<text:list>
<text:list-item>
<text:p text:style-name="Standard">う</text:p>
</text:list-item>
</text:list>
</text:list-item>
</text:list>
<text:p text:style-name="BlockCaption">リスト<text:sequence text:ref-name="refList1" text:name="List" style:num-format="1">2</text:sequence>:<text:s />番号付き箇条書き</text:p>
<text:list text:style-name="List1">
<text:list-item>
<text:p text:style-name="Standard">あ</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="Standard">い</text:p>
<text:list>
<text:list-item>
<text:p text:style-name="Standard">う</text:p>
</text:list-item>
</text:list>
</text:list-item>
</text:list>
<text:h text:style-name="Heading1" text:outline-level="1">おわり</text:h>
</office:text>
</office:body>
</office:document-content>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="report">
<xsd:annotation>
<xsd:documentation xml:lang="ja">ルート要素</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="section" type="section" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="title" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="ja">レポートのタイトル</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="section">
<xsd:annotation>
<xsd:documentation xml:lang="ja">章、節、項、……</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="block" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="section" type="section" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attributeGroup ref="referable" />
<xsd:attribute name="title" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation xml:lang="ja">見出し</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:group name="block">
<xsd:annotation>
<xsd:documentation xml:lang="ja">section 直下に配置できる要素</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="p" type="textContainer">
<xsd:annotation>
<xsd:documentation xml:lang="ja">段落</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ul" type="listBlock">
<xsd:annotation>
<xsd:documentation xml:lang="ja">箇条書き</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ol" type="listBlock">
<xsd:annotation>
<xsd:documentation xml:lang="ja">番号付き箇条書き</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="figure" type="figure" />
<xsd:element name="table" type="table" />
<xsd:element name="codeBlock" type="codeBlock" />
<xsd:element name="bibliography" type="bibliography" />
</xsd:choice>
</xsd:group>
<xsd:group name="inline">
<xsd:annotation>
<xsd:documentation xml:lang="ja">p 直下に配置できる要素</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="ref">
<xsd:annotation>
<xsd:documentation xml:lang="ja">referable 属性を持つ要素への参照</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="target" type="xsd:IDREF" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="code" type="code">
<xsd:annotation>
<xsd:documentation xml:lang="ja">文章の中に差し込むプログラム</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:group>
<xsd:attributeGroup name="referable">
<xsd:annotation>
<xsd:documentation xml:lang="ja">ref で参照するための属性</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="id" type="xsd:ID" />
</xsd:attributeGroup>
<xsd:complexType name="captionContainer" abstract="true">
<xsd:annotation>
<xsd:documentation xml:lang="ja">説明を設定できる要素</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="caption" type="textContainer" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="ja">ブロック要素の説明</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attributeGroup ref="referable" />
</xsd:complexType>
<xsd:complexType name="textContainer" mixed="true">
<xsd:annotation>
<xsd:documentation xml:lang="ja">インライン要素を含むことができる文章</xsd:documentation>
</xsd:annotation>
<xsd:group ref="inline" minOccurs="0" maxOccurs="unbounded" />
</xsd:complexType>
<xsd:complexType name="listBlock">
<xsd:annotation>
<xsd:documentation xml:lang="ja">ブロックとしてのリスト</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="captionContainer">
<xsd:sequence>
<xsd:element name="li" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="innerList">
<xsd:annotation>
<xsd:documentation xml:lang="ja">リストの中のリスト</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="li" type="li" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="li" mixed="true">
<xsd:annotation>
<xsd:documentation xml:lang="ja">リストの項目</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="inline" minOccurs="0" maxOccurs="unbounded" />
<xsd:choice minOccurs="0">
<xsd:element name="ul" type="innerList" />
<xsd:element name="ol" type="innerList" />
</xsd:choice>
</xsd:sequence>
<xsd:attributeGroup ref="referable" />
</xsd:complexType>
<xsd:complexType name="figure">
<xsd:annotation>
<xsd:documentation xml:lang="ja">画像</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="captionContainer">
<xsd:attribute name="src" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="ja">画像ファイルへのパス</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="table">
<xsd:annotation>
<xsd:documentation xml:lang="ja">表</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="captionContainer">
<xsd:sequence>
<xsd:element name="tr" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="ja">表の行</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="th" type="textContainer">
<xsd:annotation>
<xsd:documentation xml:lang="ja">見出しセル</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="td" type="textContainer">
<xsd:annotation>
<xsd:documentation xml:lang="ja">データセル</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="codeBlock">
<xsd:annotation>
<xsd:documentation xml:lang="ja">コードブロック</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="captionContainer">
<xsd:sequence>
<xsd:element name="code" type="code" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="bibliography">
<xsd:annotation>
<xsd:documentation xml:lang="ja">参考文献リスト</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="cite" maxOccurs="unbounded" >
<xsd:complexType>
<xsd:attributeGroup ref="referable" />
<xsd:attribute name="title" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation xml:lang="ja">文献のタイトル</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="author" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="ja">著者</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="publisher" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="ja">出版社</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="pubDate">
<xsd:annotation>
<xsd:documentation xml:lang="ja">発行年(月日)</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:union memberTypes="xsd:date xsd:gYearMonth xsd:gYear" />
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="pages">
<xsd:annotation>
<xsd:documentation xml:lang="ja">参考にしたページまたはページの範囲のリスト</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:list>
<xsd:simpleType>
<xsd:annotation>
<xsd:documentation xml:lang="ja">ページ番号 または ページ番号-ページ番号</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9]+(\-[0-9]+)?" />
</xsd:restriction>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="xsd:anyURI">
<xsd:annotation>
<xsd:documentation xml:lang="ja">文献が web にあるなら、その URI</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="browseDate" type="xsd:date">
<xsd:annotation>
<xsd:documentation xml:lang="ja">閲覧日</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="code" mixed="true">
<xsd:attribute name="lang" type="xsd:token">
<xsd:annotation>
<xsd:documentation xml:lang="ja">プログラムの言語</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<office:document-styles office:version="1.2"
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0">
<office:font-face-decls>
<!-- 使用するフォントリスト -->
<style:font-face style:name="游明朝" svg:font-family="游明朝" style:font-family-generic="modern" style:font-pitch="variable" />
</office:font-face-decls>
<office:styles>
<!-- 基本の文章スタイル -->
<style:default-style style:family="paragraph">
<!-- 見出し用にタブの大きさを指定 -->
<style:paragraph-properties style:tab-stop-distance="1cm" />
<style:text-properties style:font-name="游明朝" fo:font-size="10.5pt" style:font-name-asian="游明朝" style:font-size-asian="10.5pt" />
</style:default-style>
<style:style style:name="Standard" style:display-name="標準" style:family="paragraph">
<style:paragraph-properties fo:line-height="110%" />
</style:style>
<!-- 段落(1字下げ) -->
<style:style style:name="Paragraph" style:display-name="段落" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:margin-top="0.1cm" fo:margin-bottom="0.1cm" style:auto-text-indent="true"/>
</style:style>
<!-- 見出し -->
<style:style style:name="Heading1" style:display-name="見出し1" style:family="paragraph" style:parent-style-name="Standard" style:default-outline-level="1">
<style:paragraph-properties fo:margin-top="0.2cm" fo:margin-bottom="0.2cm" />
<style:text-properties fo:font-size="12pt" style:font-size-asian="12pt" />
</style:style>
<style:style style:name="Heading2" style:display-name="見出し2" style:family="paragraph" style:parent-style-name="Standard" style:default-outline-level="2">
<style:paragraph-properties fo:margin-top="0.1cm" fo:margin-bottom="0.1cm" />
</style:style>
<style:style style:name="Heading3" style:display-name="見出し3" style:family="paragraph" style:parent-style-name="Heading2" style:default-outline-level="3" />
<!-- 見出し番号 -->
<text:outline-style style:name="Outline">
<text:outline-level-style text:level="1" style:num-suffix="." style:num-format="1">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" />
</style:list-level-properties>
</text:outline-level-style>
<text:outline-level-style text:level="2" style:num-suffix="." style:num-format="1" text:display-levels="2">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" />
</style:list-level-properties>
</text:outline-level-style>
<text:outline-level-style text:level="3" style:num-suffix="." style:num-format="1" text:display-levels="3">
<style:list-level-properties text:list-level-position-and-space-mode="label-alignment">
<style:list-level-label-alignment text:label-followed-by="listtab" />
</style:list-level-properties>
</text:outline-level-style>
</text:outline-style>
<!-- 画像ブロックのための段落 -->
<style:style style:name="ImageBlock" style:display-name="画像ブロック" style:family="paragraph">
<style:paragraph-properties fo:text-align="center" fo:margin-top="0.3cm" fo:margin-bottom="0.3cm" />
</style:style>
<!-- その他のブロックの説明(図表番号) -->
<style:style style:name="BlockCaption" style:display-name="図表番号" style:family="paragraph">
<style:paragraph-properties fo:text-align="center" fo:margin-top="0.3cm" />
</style:style>
<!-- 表のタイトル行 -->
<style:style style:name="TableHeading" style:display-name="タイトル行" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:text-align="center" />
</style:style>
<!-- ページ番号の書式 -->
<style:style style:name="PageNumber" style:display-name="ページ番号" style:family="paragraph">
<style:paragraph-properties fo:text-align="end" />
</style:style>
</office:styles>
<office:automatic-styles>
<!-- 用紙サイズ(A4) -->
<!-- 余白 左25mm、それ以外20mm -->
<style:page-layout style:name="StandardLayout">
<style:page-layout-properties fo:page-width="210mm" fo:page-height="297mm" style:print-orientation="portrait" fo:margin-top="20mm" fo:margin-bottom="20mm" fo:margin-left="25mm" fo:margin-right="20mm" />
</style:page-layout>
</office:automatic-styles>
<office:master-styles>
<style:master-page style:name="Standard" style:page-layout-name="StandardLayout">
<!-- ページ番号 -->
<style:header>
<text:p text:style-name="PageNumber"><text:page-number text:select-page="current" style:num-format="1" /></text:p>
</style:header>
</style:master-page>
</office:master-styles>
</office:document-styles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment