Debian Codegraph @

init_templates/MAIN.db4-article.template

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