Debian Codegraph @

init_templates/MAIN.db5-article.template

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?xml-model href="http://docbook.org/xml/5.0/rng/docbookxi.rng"
3 schematypens="http://relaxng.org/ns/structure/1.0"?>
4 <!--
5 <?xml-model href="http://docbook.org/xml/5.1CR3/rng/docbook.rng"
6 schematypens="http://purl.oclc.org/dsdl/schematron"?>
7 -->
8 <article xml:lang="en" xml:id="art.template" version="5.0"
9 xmlns:xlink="http://www.w3.org/1999/xlink"
10 xmlns:xi="http://www.w3.org/2001/XInclude"
11 xmlns="http://docbook.org/ns/docbook">
12 <info>
13 <title>§§TITLE§§</title>
14 <subtitle>generated by DAPS</subtitle>
15 <releaseinfo>Version 0.1</releaseinfo>
16 <releaseinfo>Revision: 0</releaseinfo>
17 <date>§§DATE§§</date>
18 <legalnotice>
19 <para>
20 <link xlink:href="http://www.gnu.org/licenses/fdl-1.3-standalone.html">GNU Free Documentation License</link>
21 </para>
22 </legalnotice>
23 <abstract>
24 <para>
25 You may use this file as a template. For a complete DocBook reference,
26 see <citetitle>DocBook: The Definitive Guide</citetitle>
27 (<link xlink:href="http://www.docbook.org/tdg51/en/html/docbook.html"/>).
28 </para>
29 </abstract>
30 </info>
31
32 <sect1 xml:id="sec.template.examples">
33 <title>Examples: The most commonly used DocBook XML constructs</title>
34 <para>
35 I am a paragraph in a section 1.
36 </para>
37 <sect2 xml:id="sec.template.examples.lists">
38 <title>Lists</title>
39 <para>
40 This section 2 showcases 3 types of lists.
41 </para>
42 <sect3 xml:id="sec.template.examples.lists.itemized">
43 <title>Itemized Lists</title>
44 <para>I am a paragraph in a section 3.</para>
45 <itemizedlist>
46 <title>Example Itemized List</title>
47 <listitem>
48 <para>
49 Listitem 1
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Listitem 2
55 </para>
56 </listitem>
57 </itemizedlist>
58 </sect3>
59 <sect3 xml:id="sec.template.examples.lists.ordered">
60 <title>Ordered Lists</title>
61 <orderedlist>
62 <title>Example Ordered List</title>
63 <listitem>
64 <para>
65 First item
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Second item
71 </para>
72 </listitem>
73 </orderedlist>
74 </sect3>
75 <sect3 xml:id="sec.template.examples.lists.variable">
76 <title>Variablelists</title>
77 <variablelist>
78 <title>Example Variablelist</title>
79 <varlistentry>
80 <term>Term 1</term>
81 <listitem>
82 <para>
83 Definition 1
84 </para>
85 </listitem>
86 </varlistentry>
87 <varlistentry>
88 <term>Term 2</term>
89 <listitem>
90 <para>
91 Definition 2
92 </para>
93 </listitem>
94 </varlistentry>
95 </variablelist>
96 </sect3>
97 </sect2>
98 <sect2 xml:id="sec.template.examples.table">
99 <title>Tables</title>
100 <para>This section 2 features a table with 4 columns and 3 rows:
101 </para>
102 <table>
103 <title>Example Table</title>
104 <tgroup cols="4">
105 <colspec colnum="1" colname="1" colwidth="25*"/>
106 <colspec colnum="2" colname="2" colwidth="25*"/>
107 <colspec colnum="3" colname="3" colwidth="25*"/>
108 <colspec colnum="4" colname="4" colwidth="25*"/>
109 <thead>
110 <row>
111 <entry><para>Col 1</para></entry>
112 <entry><para>Col 2</para></entry>
113 <entry><para>Col 3</para></entry>
114 <entry><para>Col 4</para></entry>
115 </row>
116 </thead>
117 <tbody>
118 <row>
119 <entry><para>Row 1, Cell 1</para></entry>
120 <entry><para>Row 1, Cell 2</para></entry>
121 <entry><para>Row 1, Cell 3</para></entry>
122 <entry><para>Row 1, Cell 4</para></entry>
123 </row>
124 <row>
125 <entry><para>Row 2, Cell 1</para></entry>
126 <entry><para>Row 2, Cell 2</para></entry>
127 <entry><para>Row 2, Cell 3</para></entry>
128 <entry><para>Row 2, Cell 4</para></entry>
129 </row>
130 </tbody>
131 </tgroup>
132 </table>
133 </sect2>
134 <sect2 xml:id="sec.template.examples.images">
135 <title>Images</title>
136 <para>
137 This section 2 shows two types of images: with and without a caption.
138 </para>
139 <figure>
140 <title>Basketball Player</title>
141 <mediaobject>
142 <imageobject role="fo">
143 <imagedata fileref="example2.png" width="75%"/>
144 </imageobject>
145 <imageobject role="html">
146 <imagedata fileref="example2.png" width="75%"/>
147 </imageobject>
148 </mediaobject>
149 </figure>
150 <para>
151 And now an image without caption:
152 </para>
153 <informalfigure>
154 <mediaobject>
155 <imageobject role="fo">
156 <imagedata fileref="example1.png" width="75%"/>
157 </imageobject>
158 <imageobject role="html">
159 <imagedata fileref="example1.png" width="75%"/>
160 </imageobject>
161 </mediaobject>
162 </informalfigure>
163 </sect2>
164 </sect1>
165 </article>