1
<!-- -*- DocBook -*- -->
3
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" [
4
<!ENTITY arches SYSTEM "arches.ent" >
5
<!ENTITY debianwebsite "http://www.debian.org" >
6
<!ENTITY entities "entities" >
10
<title>The Title for the Book</title>
13
<title>The Chapter Title</title>
15
<!-- note to debiandoc users: there is no sect, start with sect1 -->
16
<sect1 id="sect1-cross-referencable-id">
17
<title>First Level Section</title>
20
A paragraph explaining something In this manual we will make extensive
21
use of &entities;, to insert the contents of smaller independent
22
files. This should help translators; any changes will be easier to
23
find within the files. We will try to keep the files
24
<emphasis>small</emphasis>, feel free to create new ones for new
25
subjects or subtopics.
29
This example document contains some of the most useful types
30
of xml markup for our purposes. Some quick rules:
35
All tags must be in lower case
40
Every tag must have a closing tag also
45
No abbreviations in the tags
55
Keep starting tags to the left margin as much as possible
60
Keep tag pairs intact on one line if it's reasonable to do so
65
The right margin will not be even, it doesn't matter
70
Use 1-space indentation, but don't sweat it
75
Try to leave a blank line between paragraph tags and the
76
words in the paragraph (this makes word wrapping much easier)
82
<sect2 id="cross-referencable-id">
83
<title>Second Level Section</title>
86
I use the docbookide xemacs mode to edit:
91
<userinput>apt-get install docbookide</userinput>
92
or <command>apt-get install docbookide</command>
97
It displays syntax coloring and closes your tags if you
98
are at the end of a line. Here is an internal cross reference:
99
<xref linkend="cross-referencable-id"></xref>
100
and here is an external link to
101
<ulink url="http://www.debian.org">the main Debian website</ulink>.
102
Many times we will put common urls in an entity document and use
103
something like a link to
104
<ulink url="&debianwebsite;">Debian Website</ulink>
105
instead of using url directly.
109
If you need to specify text that is only present for a certain
110
condition or a given architecture, use attributes arch and
111
condition. For example,
116
A paragraph only interesting for i386 users
119
<sect3 condition="bootable-from-hard-disk">
120
A section pertaining only to computers which
121
can boot from their hard disk
124
<phrase arch="powerpc">PowerPC-only text within a para</phrase>
129
<!-- More example tags, all these must occur within a block: -->
132
<prompt>the command prompt text</prompt>
133
<replaceable>text to be replaced by user, debiandoc var</replaceable>
134
<computeroutput>that's self explanatory!</computeroutput>
135
<application>abiword</application>
136
<filename>/install/basedebs.tar</filename>
137
<medialabel>/dev/hda1</medialabel>
139
You can exit from GNU Emacs with
144
<keycombo><keysym>C-x</keysym><keysym>C-c</keysym></keycombo>
148
<guimenu>Files</guimenu>
149
<guimenuitem>Exit Emacs</guimenuitem>
154
<keycap>Ctrl</keycap>
157
</keycombo> selects console 1.
161
<!-- This is what used to be a taglist in debiandoc -->
165
<term>1st term to be defined</term>
168
A paragraph definition of the term.
175
<term>2nd term to be defined</term>
179
A paragraph definition of the 2nd term.
185
<!-- Admonitions must have paragraph level tags within them -->
187
<tip><para>making things easier on yourself</para></tip>
188
<note><para>something of interest</para></note>
189
<important><para>pay attention now</para></important>
190
<caution><para>watch out here</para></caution>
191
<warning><para>this is really critical to success</para></warning>
194
<tgroup cols="2"><tbody><row>
196
<entry>1st row, 1st column</entry>
197
<entry>1st row, 2nd column</entry>
201
<entry>2nd row, 1st column</entry>
202
<entry>2nd row, 2nd column</entry>
204
</row></tbody></tgroup>
207
<table><title>A Formal Table has a Title</title>
208
<tgroup cols="2"><tbody><row>
210
<entry>1st row, 1st column</entry>
211
<entry>1st row, 2nd column</entry>
215
<entry>2nd row, 1st column</entry>
216
<entry>2nd row, 2nd column</entry>
218
</row></tbody></tgroup>
222
<graphic fileref="some-graphic-reference.jpg"></graphic>
226
<graphic fileref="some-figure-reference.png"></graphic>
230
<title>A Formal Figure has a Title (Caption)</title>
231
<graphic fileref="some-figure-reference.jpg"></graphic>
241
<glossterm>some glossary entry</glossterm>
244
Some appropriate glossary definition goes here.