1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 <chapter revisionflag="changed">
5 <title>First chapter</title>
6 <titleabbrev>abbrev</titleabbrev>
8 This is text before the first section.
11 <title>First section</title>
14 <primary>primary</primary>
15 <secondary>secondary</secondary>
17 <indexterm id="ID" class="startofrange">
18 <primary>range</primary>
20 This is the text of the first section.
21 We are going to have an index in the middle of a paragraph.
23 <primary>primary two</primary>
24 <secondary>secondary two</secondary>
26 This is the rest of the paragraph.
30 <title>Second section</title>
32 This is the text of the second section. Here’s a reference to
33 chapter <xref linkend="CHAPsecond"/>. Here are some entities, both local and default:
34 &abcd; is ABCD; &amp is &.
39 <chapter id="CHAPsecond">
40 <title>Second chapter</title>
42 This is the second chapter. Test a block quote:
44 <primary>visions</primary>
48 <primary>noises</primary>
49 <secondary>off</secondary>
50 <seealso>sounds</seealso>
53 <blockquote revisionflag="changed">
54 <para revisionflag="changed">
55 All the world’s a stage, and all the men and women merely players. They have
56 their exits and their entrances, and one man in his time plays many parts.
59 <itemizedlist revisionflag="changed">
61 <para revisionflag="changed">
62 This is the first item in an itemized list.
64 <para revisionflag="changed">
65 There is more than one paragraph.
69 <para revisionflag="changed">
70 This is the second item in an itemized list.
74 <orderedlist numeration="arabic" revisionflag="changed">
76 <para revisionflag="changed">
77 Now we have an ordered list.
79 <para revisionflag="changed">
80 Again more than one paragraph.
84 <para revisionflag="changed">
89 <para revisionflag="changed">
94 <para revisionflag="changed">
95 <indexterm startref="ID" class="endofrange"/>
97 <orderedlist numeration="lowerroman">
100 Try lower case roman numerals.
115 back in the first of the ordered.
124 <para revisionflag="changed">
125 This is a normal text paragraph.
127 <literallayout revisionflag="changed">
128 This is a display where the font
130 even recognizing <emphasis>italic</emphasis> and stuff
134 <literallayout class="monospaced">
135 This, however is a code paragraph
136 where &'italic'& everything except
137 <angle> brackets is totally literal,
138 and & is no longer a flag.
141 And now we are back to a <emphasis role="bold">normal</emphasis> paragraph again.
143 <informaltable frame="none">
144 <tgroup cols="2" colsep="0" rowsep="0">
157 <informaltable frame="all">
158 <tgroup cols="3" colsep="1" rowsep="1">
159 <colspec colwidth="1*" align="left"/>
160 <colspec colwidth="2*" align="center"/>
161 <colspec colwidth="3*" align="right"/>
178 <term><emphasis role="bold">First</emphasis></term>
181 This is a paragraph about the first item.
184 In fact, here is a second paragraph.
186 </listitem></varlistentry>
188 <term><emphasis role="bold">Second</emphasis></term>
191 And now we have the second item.
193 </listitem></varlistentry>
197 jumps over the lazy dog.
199 <!--this should be--> <para>
206 whereas this should note concats
208 Test © and Ӓ and ䷄ for size.
211 Check ‘quote’ marks. And ‘‘doublequote’’ marks.
215 where things happen over multiple
219 Test some of the standard flags <emphasis>italic</emphasis> and <emphasis role="bold">bold</emphasis> text and
220 <literal>literal</literal> text and <filename>filename</filename> in text and <quote>quoted</quote> text and
221 we have & and – as single replacements.
237 This is text after the macro definition.
238 This is the first line of the macro abcd.
239 This is the second line. Contains a dollar ($) character.
243 Insert args: 1="default 1" 2="default-2" 3=""
245 Insert args: 1="set 1" 2="default-2" 3=""
247 Insert args: 1="set1" 2="set2" 3=""
249 Insert args: 1="set1" 2="set2" 3="set 3"
253 There is no second argument.
256 There is no second argument.
261 <literallayout class="monospaced">
262 Inside literal text, unknown directives
264 should be passed as data
267 <literal>&m1(1,2) </literal> |1 2|
268 <literal>&m1(1) </literal> |1 two|
269 <literal>&m1() </literal> |one two|
270 <literal>&m1("a(,b)") </literal> |a(,b) two|
271 <literal>&m1("a(,b)", c) </literal> |a(,b) c|
273 <literal>&m2() </literal> |three|
274 <literal>&m2(a) </literal> |a|
275 <literal>&m2(a,b) </literal> |ab|
277 <literal>&m2("&m1(x,y)") </literal> |x y|
278 <literal>&m2("&m1(x,y)", 3, 4) </literal> |x y34|
281 URL <emphasis role="bold"><ulink url="http://etc">http://etc</ulink></emphasis> and another <emphasis role="bold"><ulink url="http://etc">text</ulink></emphasis> and so on.
283 <para revisionflag="changed">
284 This is a paragraph marked new with .new/.wen.
287 The first line in a display.
288 <phrase revisionflag="changed">This line is between .new/.wen.
289 </phrase>Another line.
291 <literallayout class="monospaced">
292 The first line in a code section.
293 <phrase revisionflag="changed">This line is between .new/.wen.
294 </phrase>Another line.
298 <phrase revisionflag="changed">B
303 <phrase revisionflag="changed">ZZZ</phrase>
306 <literallayout class="monospaced">
308 <phrase revisionflag="changed">B
311 <literallayout class="monospaced">
313 &<phrase revisionflag="changed">&ZZZ&</phrase>&
318 B <phrase revisionflag="changed">BB</phrase> BBB
321 <literallayout class="monospaced">
347 Test footnotes. The quick brown fox
361 <informaltable frame="all">
362 <tgroup cols="3" colsep="1" rowsep="1">
363 <colspec colwidth="1*" align="left"/>
364 <colspec colwidth="2*" align="center"/>
365 <colspec colwidth="3*" align="right"/>
385 First para in footnote.
388 Second para in footnote.
394 This foot note will have text
396 <literallayout class="monospaced">
403 How about a footnote in a display?
411 <?sdop toc_sections="no" ?>
413 Here is a reference to figure <xref linkend="FIGfirst"/>.
415 <figure id="FIGfirst">
416 <title>This is the first figure</title>
417 <mediaobject><imageobject>
418 <imagedata fileref="eps1.eps" >
419 </imagedata></imageobject></mediaobject>
422 Here is another reference to figure <xref linkend="FIGfirst"/>. We also have
423 figure <xref linkend="FIGsecond"/> below.
425 <figure id="FIGsecond">
426 <title>The second figure</title>
427 <mediaobject><imageobject>
428 <imagedata fileref="eps1.eps" scale="80" align="centre">
429 </imagedata></imageobject></mediaobject>
432 <title>this is title</title>
433 <tgroup cols="2" colsep="" rowsep="">
434 <colspec colwidth="1*" align="left"/>
435 <colspec colwidth="1*" align="left"/>
449 A ref to table <xref linkend="TAB123"/>. Now check quotes: ‘normal’ should be changed
450 to typographic ones. In <literal>literal text, `they' shouldn't be</literal> changed.
452 <literallayout class="monospaced">
453 Check `quoted' in literal monospaced block.
456 But in a literal block that is ‘not monospaced’ ...
457 <literal>Check it's ok</literal> when ‘in the same line’.
460 Extra checks on the use of .nonl.
461 ABCDEFGH should be joined on
464 At the end of a paragraph? It just puts </para> on the same line.
467 At the start of a paragraph should work too.
470 What about in a display?
471 Use NONLWITH more stuff