1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
<?sdop
foot_right_recto="&chaptertitle; (&chapternumber;)"
foot_right_verso="&chaptertitle; (&chapternumber;)"
?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book>
<chapter>
<title>Test chapter with ‘quotes’ in the title</title>
<para>
This is a non-empty paragraph, followed by an special empty paragraph, notated
as a single zero-width space.
</para>
<para>
​
</para>
<para>
This is a following paragraph. The space above should be narrower than if
a true empty line were printed.
</para>
<para>
So is this, to show a normal paragraph gap. Then an empty para that contains
one hard space, so it won’t be special.
</para>
<para>
</para>
<para>
Next paragraph. The gap between this and the last should be larger.
</para>
</chapter>
<chapter>
<title>Chapter entities: × ✗ ✓</title>
<para>
Another test chapter.
</para>
</chapter>
<chapter>
<title>Bad entities &bad; &badbad; and – a dash</title>
<para>
Another test chapter.
</para>
</chapter>
<chapter>
<title>A chapter with an abstract</title>
<abstract><para>In brief, this chapter …</para></abstract>
<para>
This is a real paragraph. Check an abbreviation. <abbrev>U.N.I.T.</abbrev> is
fictitious. And an acronym such as <acronym>scuba</acronym> or
<acronym>PIN</acronym>.
</para>
</chapter>
<chapter>
<title>A chapter with a subtitle</title>
<subtitle>In which we witter on</subtitle>
<para>
Rhubarb rhubarb rhubarb rhubarb rhubarb and so on and so forth and so on etc
etc etc ribbit ribbit ribbit.
</para>
</chapter>
<chapter>
<title>A chapter with an epigraph</title>
<epigraph><attribution><emphasis>Anon</emphasis></attribution>
<para>
This is the text of an epigraph that comes at the start of chapter in this
particular example.
</para>
</epigraph>
<para>
This is the first paragraph.
This is the first paragraph.
This is the first paragraph.
This is the first paragraph.
This is the first paragraph.
This is the first paragraph.
Reference an example: <xref linkend="EX001"/>.
</para>
<example><title>A listing</title>
<programlisting>
Line 1
Line 2
</programlisting>
</example>
<?sdop example_number_format="[%s]"
example_title_format="Ex. %s "
example_title_justify="centre"
example_title_width="150" ?>
<example id="EX001">
<title>Another listing, longish, centred title in 150pt</title>
<programlisting>
Line 1 <lineannotation>This is an annotation</lineannotation>
Line 2
</programlisting>
</example>
<para>
For a footnote with an id,
<footnote id="F001">
<para>
This is a footnote with an ID.
</para>
</footnote>
it is possible to refer to the same footnote from elsewhere, like that.
<footnoteref linkend="F001"/>
This is most commonly used in tables. For example:
</para>
<informaltable>
<tgroup cols="2">
<colspec colwidth="100"/>
<colspec colwidth="100"/>
<tbody>
<row>
<entry>foo<footnote id="FNA"><para>A meaningless word</para></footnote></entry>
<entry>3<footnote id="FNB"><para>A meaningless number</para></footnote></entry>
</row>
<row>
<entry>bar<footnoteref linkend="FNA"/></entry>
<entry>5<footnoteref linkend="FNB"/></entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
We can even forward reference<footnoteref linkend="F002"/> a footnote that
appears later in the page.
<footnote id="F002">
<para>
That is, have "footnoteref" precede "footnote".
</para>
</footnote>
Check that <link> is <link linkend="rhubarb">completely</link> ignored.
</para>
</chapter>
</book>
|