Debian Codegraph @

init_templates/MAIN.db4-book.template

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE book 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 <book id="book.template" lang="en">
10 <bookinfo>
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 </bookinfo>
22 <chapter id="cha.template.examples">
23 <title>Examples: the most commonly used DocBook XML constructs</title>
24 <abstract>
25 <para>
26 You may use this file as a template. For a complete DocBook
27 reference see <citetitle>&tdg;</citetitle>. It is available at <ulink
28 url="http://www.docbook.org/tdg/en/html/docbook.html"/>.
29 </para>
30 </abstract>
31 <para>
32 I am a paragraph in a chapter.
33 </para>
34 <sect1 id="sec.template.examples.lists">
35 <title>Lists</title>
36 <para>
37 This section 1 showcases 3 types of lists.
38 </para>
39 <sect2 id="sec.template.examples.lists.itemized">
40 <title>Itemized Lists</title>
41 <para>I am a paragraph in a section 2.</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 </sect2>
56 <sect2 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 </sect2>
72 <sect2 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 </sect2>
94 </sect1>
95 <sect1 id="sec.template.examples.table">
96 <title>Tables</title>
97 <para>This section 1 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 </sect1>
131 <sect1 id="sec.template.examples.images">
132 <title>Images</title>
133 <para>
134 This section 1 shows two types of images: with and without a
135 caption.
136 </para>
137 <figure>
138 <title>Basketball Player</title>
139 <mediaobject>
140 <imageobject role="fo">
141 <imagedata fileref="example2.png" width="75%"/>
142 </imageobject>
143 <imageobject role="html">
144 <imagedata fileref="example2.png" width="75%"/>
145 </imageobject>
146 </mediaobject>
147 </figure>
148 <para>
149 And now an image without caption:
150 </para>
151 <informalfigure>
152 <mediaobject>
153 <imageobject role="fo">
154 <imagedata fileref="example1.png" width="75%"/>
155 </imageobject>
156 <imageobject role="html">
157 <imagedata fileref="example1.png" width="75%"/>
158 </imageobject>
159 </mediaobject>
160 </informalfigure>
161 </sect1>
162 </chapter>
163 </book>