The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="standalone.rst" title="reStructuredText\ Test\ Document">
<title>
reStructuredText Test Document
</title>
<subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">
Examples of Syntax Constructs
</subtitle>
<decoration>
<header>
<paragraph>
Document header</paragraph>
</header>
<footer>
<paragraph>
Document footer</paragraph>
</footer>
</decoration>
<docinfo>
<author>
David Goodger
</author>
<address xml:space="preserve">
123 Example Street
Example, EX  Canada
A1B 2C3
</address>
<contact>
<reference refuri="mailto:goodger@users.sourceforge.net">
goodger@users.sourceforge.net</reference>
</contact>
<authors>
<author>
Me</author>
<author>
Myself</author>
<author>
I
</author>
</authors>
<organization>
humankind
</organization>
<date>
Now, or yesterday.  Or maybe even <emphasis>
before</emphasis>
 yesterday.
</date>
<status>
This is a "work in progress"
</status>
<revision>
is managed by a version control system.
</revision>
<version>
1
</version>
<copyright>
This document has been placed in the public domain. You
may do with it as you wish. You may copy, modify,
redistribute, reattribute, sell, buy, rent, lease,
destroy, or improve it, quote it at length, excerpt,
incorporate, collate, fold, staple, or mutilate it, or do
anything else to it that your or anyone else's heart
desires.
</copyright>
<field>
<field_name>
field name</field_name>
<field_body>
<paragraph>
This is a "generic bibliographic field".
</paragraph>
</field_body>
</field>
<field>
<field_name>
field name "2"</field_name>
<field_body>
<paragraph>
Generic bibliographic fields may contain multiple body elements.
</paragraph>
<paragraph>
Like this.
</paragraph>
</field_body>
</field>
</docinfo>
<topic classes="dedication">
<title>
Dedication</title>
<paragraph>
For Docutils users & co-developers.
</paragraph>
</topic>
<topic classes="abstract">
<title>
Abstract</title>
<paragraph>
This is a test document, containing at least one example of each
reStructuredText construct.
</paragraph>
</topic>
<comment xml:space="preserve">
This is a comment. Note how any initial comments are moved by
transforms to after the document title, subtitle, and docinfo.
</comment>
<target refid="doctitle"/>
<comment xml:space="preserve">
Above is the document title, and below is the subtitle.
They are transformed from section titles after parsing.
</comment>
<target refid="subtitle"/>
<comment xml:space="preserve">
bibliographic fields (which also require a transform):
</comment>
<topic classes="contents" ids="table-of-contents" names="table\ of\ contents">
<title>
Table of Contents</title>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id28" refid="structural-elements">
<generated classes="sectnum">
1\u00a0\u00a0\u00a0</generated>
Structural Elements
</reference>
</paragraph>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id29" refid="section-title">
<generated classes="sectnum">
1.1\u00a0\u00a0\u00a0</generated>
Section Title
</reference>
</paragraph>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id30" refid="section-subtitle">
<generated classes="sectnum">
1.1.1\u00a0\u00a0\u00a0</generated>
Section Subtitle
</reference>
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
<reference ids="id31" refid="empty-section">
<generated classes="sectnum">
1.2\u00a0\u00a0\u00a0</generated>
Empty Section
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id32" refid="transitions">
<generated classes="sectnum">
1.3\u00a0\u00a0\u00a0</generated>
Transitions
</reference>
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
<reference ids="id33" refid="body-elements">
<generated classes="sectnum">
2\u00a0\u00a0\u00a0</generated>
Body Elements
</reference>
</paragraph>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id34" refid="paragraphs">
<generated classes="sectnum">
2.1\u00a0\u00a0\u00a0</generated>
Paragraphs
</reference>
</paragraph>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id35" refid="inline-markup">
<generated classes="sectnum">
2.1.1\u00a0\u00a0\u00a0</generated>
Inline Markup
</reference>
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
<reference ids="id36" refid="bullet-lists">
<generated classes="sectnum">
2.2\u00a0\u00a0\u00a0</generated>
Bullet Lists
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id37" refid="enumerated-lists">
<generated classes="sectnum">
2.3\u00a0\u00a0\u00a0</generated>
Enumerated Lists
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id38" refid="definition-lists">
<generated classes="sectnum">
2.4\u00a0\u00a0\u00a0</generated>
Definition Lists
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id39" refid="field-lists">
<generated classes="sectnum">
2.5\u00a0\u00a0\u00a0</generated>
Field Lists
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id40" refid="option-lists">
<generated classes="sectnum">
2.6\u00a0\u00a0\u00a0</generated>
Option Lists
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id41" refid="literal-blocks">
<generated classes="sectnum">
2.7\u00a0\u00a0\u00a0</generated>
Literal Blocks
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id42" refid="line-blocks">
<generated classes="sectnum">
2.8\u00a0\u00a0\u00a0</generated>
Line Blocks
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id43" refid="block-quotes">
<generated classes="sectnum">
2.9\u00a0\u00a0\u00a0</generated>
Block Quotes
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id44" refid="doctest-blocks">
<generated classes="sectnum">
2.10\u00a0\u00a0\u00a0</generated>
Doctest Blocks
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id45" refid="footnotes">
<generated classes="sectnum">
2.11\u00a0\u00a0\u00a0</generated>
Footnotes
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id46" refid="citations">
<generated classes="sectnum">
2.12\u00a0\u00a0\u00a0</generated>
Citations
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id47" refid="targets">
<generated classes="sectnum">
2.13\u00a0\u00a0\u00a0</generated>
Targets
</reference>
</paragraph>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id48" refid="duplicate-target-names">
<generated classes="sectnum">
2.13.1\u00a0\u00a0\u00a0</generated>
Duplicate Target Names
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id49" refid="id18">
<generated classes="sectnum">
2.13.2\u00a0\u00a0\u00a0</generated>
Duplicate Target Names
</reference>
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
<reference ids="id50" refid="directives">
<generated classes="sectnum">
2.14\u00a0\u00a0\u00a0</generated>
Directives
</reference>
</paragraph>
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id51" refid="document-parts">
<generated classes="sectnum">
2.14.1\u00a0\u00a0\u00a0</generated>
Document Parts
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id52" refid="images">
<generated classes="sectnum">
2.14.2\u00a0\u00a0\u00a0</generated>
Images
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id53" refid="admonitions">
<generated classes="sectnum">
2.14.3\u00a0\u00a0\u00a0</generated>
Admonitions
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id54" refid="topics-sidebars-and-rubrics">
<generated classes="sectnum">
2.14.4\u00a0\u00a0\u00a0</generated>
Topics, Sidebars, and Rubrics
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id55" refid="target-footnotes">
<generated classes="sectnum">
2.14.5\u00a0\u00a0\u00a0</generated>
Target Footnotes
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id56" refid="replacement-text">
<generated classes="sectnum">
2.14.6\u00a0\u00a0\u00a0</generated>
Replacement Text
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id57" refid="compound-paragraph">
<generated classes="sectnum">
2.14.7\u00a0\u00a0\u00a0</generated>
Compound Paragraph
</reference>
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
<reference ids="id58" refid="substitution-definitions">
<generated classes="sectnum">
2.15\u00a0\u00a0\u00a0</generated>
Substitution Definitions
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id59" refid="comments">
<generated classes="sectnum">
2.16\u00a0\u00a0\u00a0</generated>
Comments
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id60" refid="raw-text">
<generated classes="sectnum">
2.17\u00a0\u00a0\u00a0</generated>
Raw text
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id61" refid="colspanning-tables">
<generated classes="sectnum">
2.18\u00a0\u00a0\u00a0</generated>
Colspanning tables
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id62" refid="rowspanning-tables">
<generated classes="sectnum">
2.19\u00a0\u00a0\u00a0</generated>
Rowspanning tables
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id63" refid="complex-tables">
<generated classes="sectnum">
2.20\u00a0\u00a0\u00a0</generated>
Complex tables
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id64" refid="list-tables">
<generated classes="sectnum">
2.21\u00a0\u00a0\u00a0</generated>
List Tables
</reference>
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
<reference ids="id65" refid="error-handling">
<generated classes="sectnum">
3\u00a0\u00a0\u00a0</generated>
Error Handling
</reference>
</paragraph>
</list_item>
</bullet_list>
</topic>
<section ids="structural-elements" names="structural\ elements">
<title auto="1" refid="id28">
<generated classes="sectnum">
1\u00a0\u00a0\u00a0</generated>
Structural Elements
</title>
<section ids="section-title" names="section\ title">
<title auto="1" refid="id29">
<generated classes="sectnum">
1.1\u00a0\u00a0\u00a0</generated>
Section Title
</title>
<section ids="section-subtitle" names="section\ subtitle">
<title auto="1" refid="id30">
<generated classes="sectnum">
1.1.1\u00a0\u00a0\u00a0</generated>
Section Subtitle
</title>
<paragraph>
That's it, the text just above this line.
</paragraph>
</section>
</section>
<section ids="empty-section" names="empty\ section">
<title auto="1" refid="id31">
<generated classes="sectnum">
1.2\u00a0\u00a0\u00a0</generated>
Empty Section
</title>
</section>
<section ids="transitions" names="transitions">
<title auto="1" refid="id32">
<generated classes="sectnum">
1.3\u00a0\u00a0\u00a0</generated>
Transitions
</title>
<paragraph>
Here's a transition:
</paragraph>
<transition/>
<paragraph>
It divides the section.  Transitions may also occur between sections:
</paragraph>
</section>
</section>
<transition/>
<section ids="body-elements" names="body\ elements">
<title auto="1" refid="id33">
<generated classes="sectnum">
2\u00a0\u00a0\u00a0</generated>
Body Elements
</title>
<section ids="paragraphs" names="paragraphs">
<title auto="1" refid="id34">
<generated classes="sectnum">
2.1\u00a0\u00a0\u00a0</generated>
Paragraphs
</title>
<paragraph>
A paragraph.
</paragraph>
<section ids="inline-markup" names="inline\ markup">
<title auto="1" refid="id35">
<generated classes="sectnum">
2.1.1\u00a0\u00a0\u00a0</generated>
Inline Markup
</title>
<paragraph>
Paragraphs contain text and may contain inline markup: <emphasis>
emphasis</emphasis>
,
<strong>
strong emphasis</strong>
, <literal>
inline literals</literal>
, standalone hyperlinks
(<reference refuri="http://www.python.org">
http://www.python.org</reference>
), external hyperlinks (<reference name="Python" refuri="http://www.python.org/">
Python</reference>
 <footnote_reference auto="1" ids="id25" refid="id23">
5</footnote_reference>
), internal
cross-references (<reference name="example" refid="example">
example</reference>
), external hyperlinks with embedded URIs
(<reference name="Python\ web\ site" refuri="http://www.python.org">
Python web site</reference>
), footnote references
(manually numbered <footnote_reference ids="id1" refid="id6">
1</footnote_reference>
, anonymous auto-numbered <footnote_reference auto="1" ids="id2" refid="id9">
3</footnote_reference>
, labeled
auto-numbered <footnote_reference auto="1" ids="id3" refid="label">
2</footnote_reference>
, or symbolic <footnote_reference auto="*" ids="id4" refid="id10">
*</footnote_reference>
), citation references
(<citation_reference ids="id5" refid="cit2002">
CIT2002</citation_reference>
), substitution references (<image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"/>
), and <target ids="inline-hyperlink-targets" names="inline\ hyperlink\ targets">
inline
hyperlink targets</target>
 (see <reference name="Targets" refid="targets">
Targets</reference>
 below for a reference back to here).
Character-level inline markup is also possible (although exceedingly
ugly!) in <emphasis>
re</emphasis>
<literal>
Structured</literal>
<emphasis>
Text</emphasis>
.  Problems are indicated by
<problematic ids="id20" refid="id19">
|problematic|</problematic>
 text (generated by processing errors; this one is
intentional).  Here is a reference to the <reference name="doctitle" refid="doctitle">
doctitle</reference>
 and the <reference name="subtitle" refid="subtitle">
subtitle</reference>
.
</paragraph>
<paragraph>
The default role for interpreted text is <title_reference>
Title Reference</title_reference>
.  Here are
some explicit interpreted text roles: a PEP reference (<reference refuri="http://www.python.org/peps/pep-0287.html">
PEP 287</reference>
); an
RFC reference (<reference refuri="http://www.faqs.org/rfcs/rfc2822.html">
RFC 2822</reference>
); a <subscript>
subscript</subscript>
; a <superscript>
superscript</superscript>
;
and explicit roles for <emphasis>
standard</emphasis>
 <strong>
inline</strong>

<literal>
markup</literal>
.
</paragraph>
<comment xml:space="preserve">
DO NOT RE-WRAP THE FOLLOWING PARAGRAPH!
</comment>
<paragraph>
Let's test wrapping and whitespace significance in inline literals:
<literal>
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words.  Adjust-the-width-of-your-browser-window
to see how the text is wrapped.  -- ---- --------  Now note    the
spacing    between the    words of    this sentence    (words
should    be grouped    in pairs).</literal>
</paragraph>
<paragraph>
If the <literal>
--pep-references</literal>
 option was supplied, there should be a
live link to PEP 258 here.
</paragraph>
</section>
</section>
<section ids="bullet-lists" names="bullet\ lists">
<title auto="1" refid="id36">
<generated classes="sectnum">
2.2\u00a0\u00a0\u00a0</generated>
Bullet Lists
</title>
<bullet_list bullet="-">
<list_item>
<paragraph>
A bullet list
</paragraph>
<bullet_list bullet="+">
<list_item>
<paragraph>
Nested bullet list.
</paragraph>
</list_item>
<list_item>
<paragraph>
Nested item 2.
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
Item 2.
</paragraph>
<paragraph>
Paragraph 2 of item 2.
</paragraph>
<bullet_list bullet="*">
<list_item>
<paragraph>
Nested bullet list.
</paragraph>
</list_item>
<list_item>
<paragraph>
Nested item 2.
</paragraph>
<bullet_list bullet="-">
<list_item>
<paragraph>
Third level.
</paragraph>
</list_item>
<list_item>
<paragraph>
Item 2.
</paragraph>
</list_item>
</bullet_list>
</list_item>
<list_item>
<paragraph>
Nested item 3.
</paragraph>
</list_item>
<list_item>
<paragraph>
This nested list should be compacted by the HTML writer.
</paragraph>
<target refid="target"/>
<comment xml:space="preserve">
Even if this item contains a target and a comment.
</comment>
</list_item>
</bullet_list>
</list_item>
</bullet_list>
</section>
<section ids="enumerated-lists target" names="enumerated\ lists target">
<title auto="1" refid="id37">
<generated classes="sectnum">
2.3\u00a0\u00a0\u00a0</generated>
Enumerated Lists
</title>
<enumerated_list enumtype="arabic" prefix="" suffix=".">
<list_item>
<paragraph>
Arabic numerals.
</paragraph>
<enumerated_list enumtype="loweralpha" prefix="" suffix=")">
<list_item>
<paragraph>
lower alpha)
</paragraph>
<enumerated_list enumtype="lowerroman" prefix="(" suffix=")">
<list_item>
<paragraph>
(lower roman)
</paragraph>
<enumerated_list enumtype="upperalpha" prefix="" suffix=".">
<list_item>
<paragraph>
upper alpha.
</paragraph>
<enumerated_list enumtype="upperroman" prefix="" suffix=")">
<list_item>
<paragraph>
upper roman)
</paragraph>
</list_item>
</enumerated_list>
</list_item>
</enumerated_list>
</list_item>
</enumerated_list>
</list_item>
</enumerated_list>
</list_item>
<list_item>
<paragraph>
Lists that don't start at 1:
</paragraph>
<enumerated_list enumtype="arabic" prefix="" start="3" suffix=".">
<list_item>
<paragraph>
Three
</paragraph>
</list_item>
<list_item>
<paragraph>
Four
</paragraph>
</list_item>
</enumerated_list>
<enumerated_list enumtype="upperalpha" prefix="" start="3" suffix=".">
<list_item>
<paragraph>
C
</paragraph>
</list_item>
<list_item>
<paragraph>
D
</paragraph>
</list_item>
</enumerated_list>
<enumerated_list enumtype="lowerroman" prefix="" start="3" suffix=".">
<list_item>
<paragraph>
iii
</paragraph>
</list_item>
<list_item>
<paragraph>
iv
</paragraph>
</list_item>
</enumerated_list>
</list_item>
</enumerated_list>
</section>
<section ids="definition-lists" names="definition\ lists">
<title auto="1" refid="id38">
<generated classes="sectnum">
2.4\u00a0\u00a0\u00a0</generated>
Definition Lists
</title>
<definition_list>
<definition_list_item>
<term>
Term</term>
<definition>
<paragraph>
Definition
</paragraph>
</definition>
</definition_list_item>
<definition_list_item>
<term>
Term</term>
<classifier>
classifier</classifier>
<definition>
<paragraph>
Definition paragraph 1.
</paragraph>
<paragraph>
Definition paragraph 2.
</paragraph>
</definition>
</definition_list_item>
<definition_list_item>
<term>
Term</term>
<definition>
<paragraph>
Definition
</paragraph>
</definition>
</definition_list_item>
<definition_list_item>
<term>
Term</term>
<classifier>
classifier one</classifier>
<classifier>
classifier two</classifier>
<definition>
<paragraph>
Definition
</paragraph>
</definition>
</definition_list_item>
</definition_list>
</section>
<section ids="field-lists" names="field\ lists">
<title auto="1" refid="id39">
<generated classes="sectnum">
2.5\u00a0\u00a0\u00a0</generated>
Field Lists
</title>
<field_list>
<field>
<field_name>
what</field_name>
<field_body>
<paragraph>
Field lists map field names to field bodies, like database
records.  They are often part of an extension syntax.  They are
an unambiguous variant of RFC 2822 fields.
</paragraph>
</field_body>
</field>
<field>
<field_name>
how arg1 arg2</field_name>
<field_body>
<paragraph>
The field marker is a colon, the field name, and a colon.
</paragraph>
<paragraph>
The field body may contain one or more body elements, indented
relative to the field marker.
</paragraph>
</field_body>
</field>
<field>
<field_name>
credits</field_name>
<field_body>
<paragraph classes="credits">
This paragraph has the <title_reference>
credits</title_reference>
 class set.  (This is actually not
about credits but just for ensuring that the class attribute
doesn't get stripped away.)
</paragraph>
</field_body>
</field>
</field_list>
</section>
<section ids="option-lists" names="option\ lists">
<title auto="1" refid="id40">
<generated classes="sectnum">
2.6\u00a0\u00a0\u00a0</generated>
Option Lists
</title>
<paragraph>
For listing command-line options:
</paragraph>
<option_list>
<option_list_item>
<option_group>
<option>
<option_string>
-a</option_string>
</option>
</option_group>
<description>
<paragraph>
command-line option "a"
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
-b</option_string>
<option_argument delimiter="\ ">
file</option_argument>
</option>
</option_group>
<description>
<paragraph>
options can have arguments
and long descriptions
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
--long</option_string>
</option>
</option_group>
<description>
<paragraph>
options can be long also
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
--input</option_string>
<option_argument delimiter="=">
file</option_argument>
</option>
</option_group>
<description>
<paragraph>
long options can also have
arguments
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
--very-long-option</option_string>
</option>
</option_group>
<description>
<paragraph>
The description can also start on the next line.
</paragraph>
<paragraph>
The description may contain multiple body elements,
regardless of where it starts.
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
-x</option_string>
</option>
<option>
<option_string>
-y</option_string>
</option>
<option>
<option_string>
-z</option_string>
</option>
</option_group>
<description>
<paragraph>
Multiple options are an "option group".
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
-v</option_string>
</option>
<option>
<option_string>
--verbose</option_string>
</option>
</option_group>
<description>
<paragraph>
Commonly-seen: short & long options.
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
-1</option_string>
<option_argument delimiter="\ ">
file</option_argument>
</option>
<option>
<option_string>
--one</option_string>
<option_argument delimiter="=">
file</option_argument>
</option>
<option>
<option_string>
--two</option_string>
<option_argument delimiter="\ ">
file</option_argument>
</option>
</option_group>
<description>
<paragraph>
Multiple options with arguments.
</paragraph>
</description>
</option_list_item>
<option_list_item>
<option_group>
<option>
<option_string>
/V</option_string>
</option>
</option_group>
<description>
<paragraph>
DOS/VMS-style options too
</paragraph>
</description>
</option_list_item>
</option_list>
<paragraph>
There must be at least two spaces between the option and the
description.
</paragraph>
</section>
<section ids="literal-blocks" names="literal\ blocks">
<title auto="1" refid="id41">
<generated classes="sectnum">
2.7\u00a0\u00a0\u00a0</generated>
Literal Blocks
</title>
<paragraph>
Literal blocks are indicated with a double-colon ("::") at the end of
the preceding paragraph (over there <literal>
--></literal>
).  They can be indented:
</paragraph>
<literal_block xml:space="preserve">
if literal_block:
    text = 'is left as-is'
    spaces_and_linebreaks = 'are preserved'
    markup_processing = None
</literal_block>
<paragraph>
Or they can be quoted without indentation:
</paragraph>
<literal_block xml:space="preserve">
>> Great idea!
>
> Why didn't I think of that?
</literal_block>
</section>
<section ids="line-blocks" names="line\ blocks">
<title auto="1" refid="id42">
<generated classes="sectnum">
2.8\u00a0\u00a0\u00a0</generated>
Line Blocks
</title>
<paragraph>
This section tests line blocks.  Line blocks are body elements which
consist of lines and other line blocks.  Nested line blocks cause
indentation.
</paragraph>
<line_block>
<line>
This is a line block.  It ends with a blank line.
</line>
<line_block>
<line>
New lines begin with a vertical bar ("|").
</line>
<line>
Line breaks and initial indent are significant, and preserved.
</line>
<line_block>
<line>
Continuation lines are also possible.  A long line that is intended
to wrap should begin with a space in place of the vertical bar.
</line>
</line_block>
<line>
The left edge of a continuation line need not be aligned with
the left edge of the text above it.
</line>
</line_block>
</line_block>
<line_block>
<line>
This is a second line block.
</line>
<line/>
<line>
Blank lines are permitted internally, but they must begin with a "|".
</line>
</line_block>
<paragraph>
Another line block, surrounded by paragraphs:
</paragraph>
<line_block>
<line>
And it's no good waiting by the window
</line>
<line>
It's no good waiting for the sun
</line>
<line>
Please believe me, the things you dream of
</line>
<line>
They don't fall in the lap of no-one
</line>
</line_block>
<paragraph>
Take it away, Eric the Orchestra Leader!
</paragraph>
<block_quote>
<line_block>
<line>
A one, two, a one two three four
</line>
<line/>
<line>
Half a bee, philosophically,
</line>
<line_block>
<line>
must, <emphasis>
ipso facto</emphasis>
, half not be.
</line>
</line_block>
<line>
But half the bee has got to be,
</line>
<line_block>
<line>
<emphasis>
vis a vis</emphasis>
 its entity.  D'you see?
</line>
<line/>
</line_block>
<line>
But can a bee be said to be
</line>
<line_block>
<line>
or not to be an entire bee,
</line>
<line_block>
<line>
when half the bee is not a bee,
</line>
<line_block>
<line>
due to some ancient injury?
</line>
<line/>
</line_block>
</line_block>
</line_block>
<line>
Singing...
</line>
</line_block>
</block_quote>
</section>
<section ids="block-quotes" names="block\ quotes">
<title auto="1" refid="id43">
<generated classes="sectnum">
2.9\u00a0\u00a0\u00a0</generated>
Block Quotes
</title>
<paragraph>
Block quotes consist of indented body elements:
</paragraph>
<block_quote>
<paragraph>
My theory by A. Elk.  Brackets Miss, brackets.  This theory goes
as follows and begins now.  All brontosauruses are thin at one
end, much much thicker in the middle and then thin again at the
far end.  That is my theory, it is mine, and belongs to me and I
own it, and what it is too.
</paragraph>
<attribution>
Anne Elk (Miss)
</attribution>
</block_quote>
</section>
<section ids="doctest-blocks" names="doctest\ blocks">
<title auto="1" refid="id44">
<generated classes="sectnum">
2.10\u00a0\u00a0\u00a0</generated>
Doctest Blocks
</title>
<doctest_block xml:space="preserve">
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
</doctest_block>
</section>
<section ids="footnotes" names="footnotes">
<title auto="1" refid="id45">
<generated classes="sectnum">
2.11\u00a0\u00a0\u00a0</generated>
Footnotes
</title>
<footnote backrefs="id1 id7" ids="id6" names="1">
<label>
1</label>
<paragraph>
A footnote contains body elements, consistently indented by at
least 3 spaces.
</paragraph>
<paragraph>
This is the footnote's second paragraph.
</paragraph>
</footnote>
<footnote auto="1" backrefs="id3 id8" ids="label" names="label">
<label>
2</label>
<paragraph>
Footnotes may be numbered, either manually (as in <footnote_reference ids="id7" refid="id6">
1</footnote_reference>
) or
automatically using a "#"-prefixed label.  This footnote has a
label so it can be referred to from multiple places, both as a
footnote reference (<footnote_reference auto="1" ids="id8" refid="label">
2</footnote_reference>
) and as a hyperlink reference
(<reference name="label" refid="label">
label</reference>
).
</paragraph>
</footnote>
<footnote auto="1" backrefs="id2" ids="id9" names="3">
<label>
3</label>
<paragraph>
This footnote is numbered automatically and anonymously using a
label of "#" only.
</paragraph>
<paragraph>
This is the second paragraph.
</paragraph>
<paragraph>
And this is the third paragraph.
</paragraph>
</footnote>
<footnote auto="*" backrefs="id4" ids="id10">
<label>
*</label>
<paragraph>
Footnotes may also use symbols, specified with a "*" label.
Here's a reference to the next footnote: <footnote_reference auto="*" ids="id11" refid="id12">
\u2020</footnote_reference>
.
</paragraph>
</footnote>
<footnote auto="*" backrefs="id11" ids="id12">
<label>
\u2020</label>
<paragraph>
This footnote shows the next symbol in the sequence.
</paragraph>
</footnote>
<footnote ids="id13" names="4">
<label>
4</label>
<paragraph>
Here's an unreferenced footnote, with a reference to a
nonexistent footnote: <problematic ids="id74" refid="id73">
[5]_</problematic>
.
</paragraph>
</footnote>
</section>
<section ids="citations" names="citations">
<title auto="1" refid="id46">
<generated classes="sectnum">
2.12\u00a0\u00a0\u00a0</generated>
Citations
</title>
<citation backrefs="id5 id15" ids="cit2002" names="cit2002">
<label>
CIT2002</label>
<paragraph>
Citations are text-labeled footnotes. They may be
rendered separately and differently from footnotes.
</paragraph>
</citation>
<paragraph>
Here's a reference to the above, <citation_reference ids="id15" refid="cit2002">
CIT2002</citation_reference>
, and a <problematic ids="id22" refid="id21">
[nonexistent]_</problematic>

citation.
</paragraph>
<target refid="another-target"/>
</section>
<section ids="targets another-target" names="targets another\ target">
<title auto="1" refid="id47">
<generated classes="sectnum">
2.13\u00a0\u00a0\u00a0</generated>
Targets
</title>
<target refid="example"/>
<paragraph ids="example" names="example">
This paragraph is pointed to by the explicit "example" target. A
reference can be found under <reference name="Inline\ Markup" refid="inline-markup">
Inline Markup</reference>
, above. <reference name="Inline\ hyperlink\ targets" refid="inline-hyperlink-targets">
Inline
hyperlink targets</reference>
 are also possible.
</paragraph>
<paragraph>
Section headers are implicit targets, referred to by name. See
<reference name="Targets" refid="targets">
Targets</reference>
, which is a subsection of <reference name="Body\ Elements" refid="body-elements">
Body Elements</reference>
.
</paragraph>
<paragraph>
Explicit external targets are interpolated into references such as
"<reference name="Python" refuri="http://www.python.org/">
Python</reference>
 <footnote_reference auto="1" ids="id26" refid="id23">
5</footnote_reference>
".
</paragraph>
<target ids="python" names="python" refuri="http://www.python.org/"/>
<paragraph>
Targets may be indirect and anonymous.  Thus <reference anonymous="1" name="this\ phrase" refid="targets">
this phrase</reference>
 may also
refer to the <reference name="Targets" refid="targets">
Targets</reference>
 section.
</paragraph>
<target anonymous="1" ids="id17" refid="targets"/>
<paragraph>
Here's a <problematic ids="id76" refid="id75">
`hyperlink reference without a target`_</problematic>
, which generates an
error.
</paragraph>
<section dupnames="duplicate\ target\ names" ids="duplicate-target-names">
<title auto="1" refid="id48">
<generated classes="sectnum">
2.13.1\u00a0\u00a0\u00a0</generated>
Duplicate Target Names
</title>
<paragraph>
Duplicate names in section headers or other implicit targets will
generate "info" (level-1) system messages.  Duplicate names in
explicit targets will generate "warning" (level-2) system messages.
</paragraph>
</section>
<section dupnames="duplicate\ target\ names" ids="id18">
<title auto="1" refid="id49">
<generated classes="sectnum">
2.13.2\u00a0\u00a0\u00a0</generated>
Duplicate Target Names
</title>
<paragraph>
Since there are two "Duplicate Target Names" section headers, we
cannot uniquely refer to either of them by name.  If we try to (like
this: <problematic ids="id78" refid="id77">
`Duplicate Target Names`_</problematic>
), an error is generated.
</paragraph>
</section>
</section>
<section ids="directives" names="directives">
<title auto="1" refid="id50">
<generated classes="sectnum">
2.14\u00a0\u00a0\u00a0</generated>
Directives
</title>
<topic classes="contents local" ids="contents" names="contents">
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
<reference ids="id66" refid="document-parts">
<generated classes="sectnum">
2.14.1\u00a0\u00a0\u00a0</generated>
Document Parts
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id67" refid="images">
<generated classes="sectnum">
2.14.2\u00a0\u00a0\u00a0</generated>
Images
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id68" refid="admonitions">
<generated classes="sectnum">
2.14.3\u00a0\u00a0\u00a0</generated>
Admonitions
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id69" refid="topics-sidebars-and-rubrics">
<generated classes="sectnum">
2.14.4\u00a0\u00a0\u00a0</generated>
Topics, Sidebars, and Rubrics
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id70" refid="target-footnotes">
<generated classes="sectnum">
2.14.5\u00a0\u00a0\u00a0</generated>
Target Footnotes
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id71" refid="replacement-text">
<generated classes="sectnum">
2.14.6\u00a0\u00a0\u00a0</generated>
Replacement Text
</reference>
</paragraph>
</list_item>
<list_item>
<paragraph>
<reference ids="id72" refid="compound-paragraph">
<generated classes="sectnum">
2.14.7\u00a0\u00a0\u00a0</generated>
Compound Paragraph
</reference>
</paragraph>
</list_item>
</bullet_list>
</topic>
<paragraph>
These are just a sample of the many reStructuredText Directives.  For
others, please see
<reference refuri="http://docutils.sourceforge.net/docs/ref/rst/directives.html">
http://docutils.sourceforge.net/docs/ref/rst/directives.html</reference>
.
</paragraph>
<section ids="document-parts" names="document\ parts">
<title auto="1" refid="id66">
<generated classes="sectnum">
2.14.1\u00a0\u00a0\u00a0</generated>
Document Parts
</title>
<paragraph>
An example of the "contents" directive can be seen above this section
(a local, untitled table of <reference name="contents" refid="contents">
contents</reference>
) and at the beginning of the
document (a document-wide <reference name="table\ of\ contents" refid="table-of-contents">
table of contents</reference>
).
</paragraph>
</section>
<section ids="images" names="images">
<title auto="1" refid="id67">
<generated classes="sectnum">
2.14.2\u00a0\u00a0\u00a0</generated>
Images
</title>
<paragraph>
An image directive (also clickable -- a hyperlink reference):
</paragraph>
<reference name="directives_" refid="directives">
<image classes="class1\ class2" uri="../../../docs/user/rst/images/title.png"/>
</reference>
<paragraph>
Image with multiple IDs:
</paragraph>
<target refid="image-target-1"/>
<target refid="image-target-2"/>
<target refid="image-target-3"/>
<image uri="../../../docs/user/rst/images/title.png"/>
<paragraph ids="image-target-3 image-target-2 image-target-1" names="image\ target\ 3 image\ target\ 2 image\ target\ 1">
A figure directive:
</paragraph>
<figure align="right" classes="figclass1\ figclass2">
<image alt="reStructuredText,\ the\ markup\ syntax" classes="class1\ class2" uri="../../../docs/user/rst/images/biohazard.png" width="50"/>
<caption>
A figure is an image with a caption and/or a legend:
</caption>
<legend>
<table>
<tgroup cols="2">
<colspec colwidth="12"/>
<colspec colwidth="47"/>
<tbody>
<row>
<entry>
<paragraph>
re
</paragraph>
</entry>
<entry>
<paragraph>
Revised, revisited, based on 're' module.
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
Structured
</paragraph>
</entry>
<entry>
<paragraph>
Structure-enhanced text, structuredtext.
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
Text
</paragraph>
</entry>
<entry>
<paragraph>
Well it is, isn't it?
</paragraph>
</entry>
</row>
</tbody>
</tgroup>
</table>
<paragraph>
This paragraph is also part of the legend.
</paragraph>
</legend>
</figure>
<paragraph>
This paragraph might flow around the figure...
</paragraph>
<paragraph>
A centered figure:
</paragraph>
<figure align="center">
<image uri="../../../docs/user/rst/images/biohazard.png" width="50"/>
<caption>
This is the caption.
</caption>
<legend>
<paragraph>
This is the legend.
</paragraph>
<paragraph>
The legend may consist of several paragraphs.
</paragraph>
</legend>
</figure>
<paragraph>
This paragraph might flow around the figure...
</paragraph>
<paragraph>
A left-aligned figure:
</paragraph>
<figure align="left">
<image uri="../../../docs/user/rst/images/biohazard.png" width="50"/>
<caption>
This is the caption.
</caption>
<legend>
<paragraph>
This is the legend.
</paragraph>
<paragraph>
The legend may consist of several paragraphs.
</paragraph>
</legend>
</figure>
<paragraph>
This paragraph might flow around the figure...
</paragraph>
<paragraph>
Now widths:
</paragraph>
<paragraph>
An image 2 em wide:
</paragraph>
<image uri="../../../docs/user/rst/images/biohazard.png" width="2em"/>
<paragraph>
An image 2 em wide and 30 pixel high:
</paragraph>
<image height="30px" uri="../../../docs/user/rst/images/biohazard.png" width="2em"/>
<paragraph>
An image occupying 70% of the line width:
</paragraph>
<image uri="../../../docs/user/rst/images/biohazard.png" width="70%"/>
<paragraph>
An image 3 cm high:
</paragraph>
<image height="3cm" uri="../../../docs/user/rst/images/biohazard.png"/>
</section>
<section ids="admonitions" names="admonitions">
<title auto="1" refid="id68">
<generated classes="sectnum">
2.14.3\u00a0\u00a0\u00a0</generated>
Admonitions
</title>
<attention>
<paragraph>
Directives at large.</paragraph>
</attention>
<caution>
<paragraph>
Don't take any wooden nickels.
</paragraph>
</caution>
<danger>
<paragraph>
Mad scientist at work!</paragraph>
</danger>
<error>
<paragraph>
Does not compute.</paragraph>
</error>
<hint>
<paragraph>
It's bigger than a bread box.</paragraph>
</hint>
<important>
<bullet_list bullet="-">
<list_item>
<paragraph>
Wash behind your ears.
</paragraph>
</list_item>
<list_item>
<paragraph>
Clean up your room.
</paragraph>
</list_item>
<list_item>
<paragraph>
Call your mother.
</paragraph>
</list_item>
<list_item>
<paragraph>
Back up your data.</paragraph>
</list_item>
</bullet_list>
</important>
<note>
<paragraph>
This is a note.</paragraph>
</note>
<tip>
<paragraph>
15% if the service is good.</paragraph>
</tip>
<warning>
<paragraph>
Strong prose may provoke extreme mental exertion.
Reader discretion is strongly advised.</paragraph>
</warning>
<admonition classes="admonition-and-by-the-way">
<title>
And, by the way...</title>
<paragraph>
You can make up your own admonition too.
</paragraph>
<target ids="docutils" names="docutils" refuri="http://docutils.sourceforge.net/"/>
</admonition>
</section>
<section ids="topics-sidebars-and-rubrics" names="topics,\ sidebars,\ and\ rubrics">
<title auto="1" refid="id69">
<generated classes="sectnum">
2.14.4\u00a0\u00a0\u00a0</generated>
Topics, Sidebars, and Rubrics
</title>
<sidebar>
<title>
Sidebar Title</title>
<subtitle>
Optional Subtitle</subtitle>
<paragraph>
This is a sidebar.  It is for text outside the flow of the main
text.
</paragraph>
<rubric>
This is a rubric inside a sidebar</rubric>
<paragraph>
Sidebars often appears beside the main text with a border and
background color.
</paragraph>
</sidebar>
<topic>
<title>
Topic Title</title>
<paragraph>
This is a topic.
</paragraph>
</topic>
<rubric>
This is a rubric</rubric>
</section>
<section ids="target-footnotes" names="target\ footnotes">
<title auto="1" refid="id70">
<generated classes="sectnum">
2.14.5\u00a0\u00a0\u00a0</generated>
Target Footnotes
</title>
<footnote auto="1" backrefs="id25 id26 id27" ids="id23" names="TARGET_NOTE:\ id23">
<label>
5</label>
<paragraph>
<reference refuri="http://www.python.org/">
http://www.python.org/</reference>
</paragraph>
</footnote>
<footnote auto="1" ids="id24" names="TARGET_NOTE:\ id24">
<label>
6</label>
<paragraph>
<reference refuri="http://docutils.sourceforge.net/">
http://docutils.sourceforge.net/</reference>
</paragraph>
</footnote>
</section>
<section ids="replacement-text" names="replacement\ text">
<title auto="1" refid="id71">
<generated classes="sectnum">
2.14.6\u00a0\u00a0\u00a0</generated>
Replacement Text
</title>
<paragraph>
I recommend you try <reference refuri="http://www.python.org/">
Python, <emphasis>
the</emphasis>
 best language around</reference>
 <footnote_reference auto="1" ids="id27" refid="id23">
5</footnote_reference>
.
</paragraph>
<substitution_definition names="Python">
Python, <emphasis>
the</emphasis>
 best language around</substitution_definition>
</section>
<section ids="compound-paragraph" names="compound\ paragraph">
<title auto="1" refid="id72">
<generated classes="sectnum">
2.14.7\u00a0\u00a0\u00a0</generated>
Compound Paragraph
</title>
<compound classes="some-class">
<paragraph>
Compound 1, paragraph 1.
</paragraph>
<paragraph>
Compound 1, paragraph 2.
</paragraph>
<bullet_list bullet="*">
<list_item>
<paragraph>
Compound 1, list item one.
</paragraph>
</list_item>
<list_item>
<paragraph>
Compound 1, list item two.
</paragraph>
</list_item>
</bullet_list>
</compound>
<paragraph>
Another compound statement:
</paragraph>
<compound>
<paragraph>
Compound 2, a literal block:
</paragraph>
<literal_block xml:space="preserve">
Compound 2, literal.
</literal_block>
<paragraph>
Compound 2, this is a test.
</paragraph>
</compound>
<compound>
<paragraph>
Compound 3, only consisting of one paragraph.
</paragraph>
</compound>
<compound>
<literal_block xml:space="preserve">
Compound 4.
This one starts with a literal block.
</literal_block>
<paragraph>
Compound 4, a paragraph.
</paragraph>
</compound>
<paragraph>
Now something <emphasis>
really</emphasis>
 perverted -- a nested compound block.  In
LaTeX, the following paragraphs should all be first-line indented:
</paragraph>
<compound>
<paragraph>
Compound 5, block 1 (a paragraph).
</paragraph>
<compound>
<paragraph>
Compound 6, block 2 in compound 5.
</paragraph>
<paragraph>
Compound 6, another paragraph.
</paragraph>
</compound>
<paragraph>
Compound 5, block 3 (a paragraph).
</paragraph>
</compound>
<compound>
<paragraph>
Compound 7, with a table inside:
</paragraph>
<table>
<tgroup cols="3">
<colspec colwidth="20"/>
<colspec colwidth="20"/>
<colspec colwidth="20"/>
<tbody>
<row>
<entry>
<paragraph>
Left cell, first
paragraph.
</paragraph>
<paragraph>
Left cell, second
paragraph.
</paragraph>
</entry>
<entry>
<paragraph>
Middle cell,
consisting of
exactly one
paragraph.
</paragraph>
</entry>
<entry>
<paragraph>
Right cell.
</paragraph>
<paragraph>
Paragraph 2.
</paragraph>
<paragraph>
Paragraph 3.
</paragraph>
</entry>
</row>
</tbody>
</tgroup>
</table>
<paragraph>
Compound 7, a paragraph after the table.
</paragraph>
<paragraph>
Compound 7, another paragraph.
</paragraph>
</compound>
</section>
</section>
<section ids="substitution-definitions" names="substitution\ definitions">
<title auto="1" refid="id58">
<generated classes="sectnum">
2.15\u00a0\u00a0\u00a0</generated>
Substitution Definitions
</title>
<paragraph>
An inline image (<image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"/>
) example:
</paragraph>
<substitution_definition names="EXAMPLE">
<image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"/>
</substitution_definition>
<paragraph>
(Substitution definitions are not visible in the HTML source.)
</paragraph>
</section>
<section ids="comments" names="comments">
<title auto="1" refid="id59">
<generated classes="sectnum">
2.16\u00a0\u00a0\u00a0</generated>
Comments
</title>
<paragraph>
Here's one:
</paragraph>
<comment xml:space="preserve">
Comments begin with two dots and a space. Anything may
follow, except for the syntax of footnotes, hyperlink
targets, directives, or substitution definitions.

Double-dashes -- "--" -- must be escaped somehow in HTML output.
</comment>
<paragraph>
(View the HTML source to see the comment.)
</paragraph>
</section>
<section ids="raw-text" names="raw\ text">
<title auto="1" refid="id60">
<generated classes="sectnum">
2.17\u00a0\u00a0\u00a0</generated>
Raw text
</title>
<paragraph>
This does not necessarily look nice, because there may be missing white space.
</paragraph>
<paragraph>
It's just there to freeze the behavior.
</paragraph>
<raw format="html\ latex" xml:space="preserve">
A test.</raw>
<raw format="html\ latex" xml:space="preserve">
Second test.</raw>
<raw classes="myclass" format="html\ latex" xml:space="preserve">
Another test with myclass set.</raw>
<paragraph>
This is the <raw classes="myrawroleclass" format="html\ latex" xml:space="preserve">
fourth test</raw>
 with myrawroleclass set.
</paragraph>
<raw format="html" xml:space="preserve">
Fifth test in HTML.<br />Line two.</raw>
<raw format="latex" xml:space="preserve">
Fifth test in LaTeX.\\Line two.</raw>
</section>
<section ids="colspanning-tables" names="colspanning\ tables">
<title auto="1" refid="id61">
<generated classes="sectnum">
2.18\u00a0\u00a0\u00a0</generated>
Colspanning tables
</title>
<paragraph>
This table has a cell spanning two columns:
</paragraph>
<table>
<tgroup cols="3">
<colspec colwidth="5"/>
<colspec colwidth="5"/>
<colspec colwidth="6"/>
<thead>
<row>
<entry morecols="1">
<paragraph>
Inputs
</paragraph>
</entry>
<entry>
<paragraph>
Output
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
A
</paragraph>
</entry>
<entry>
<paragraph>
B
</paragraph>
</entry>
<entry>
<paragraph>
A or B
</paragraph>
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<paragraph>
False
</paragraph>
</entry>
<entry>
<paragraph>
False
</paragraph>
</entry>
<entry>
<paragraph>
False
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
True
</paragraph>
</entry>
<entry>
<paragraph>
False
</paragraph>
</entry>
<entry>
<paragraph>
True
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
False
</paragraph>
</entry>
<entry>
<paragraph>
True
</paragraph>
</entry>
<entry>
<paragraph>
True
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
True
</paragraph>
</entry>
<entry>
<paragraph>
True
</paragraph>
</entry>
<entry>
<paragraph>
True
</paragraph>
</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
<section ids="rowspanning-tables" names="rowspanning\ tables">
<title auto="1" refid="id62">
<generated classes="sectnum">
2.19\u00a0\u00a0\u00a0</generated>
Rowspanning tables
</title>
<paragraph>
Here's a table with cells spanning several rows:
</paragraph>
<table>
<tgroup cols="3">
<colspec colwidth="24"/>
<colspec colwidth="12"/>
<colspec colwidth="18"/>
<thead>
<row>
<entry>
<paragraph>
Header row, column 1
(header rows optional)
</paragraph>
</entry>
<entry>
<paragraph>
Header 2
</paragraph>
</entry>
<entry>
<paragraph>
Header 3
</paragraph>
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<paragraph>
body row 1, column 1
</paragraph>
</entry>
<entry>
<paragraph>
column 2
</paragraph>
</entry>
<entry>
<paragraph>
column 3
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
body row 2
</paragraph>
</entry>
<entry morerows="1">
<paragraph>
Cells may
span rows.
</paragraph>
</entry>
<entry morerows="1">
<paragraph>
Another
rowspanning
cell.
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
body row 3
</paragraph>
</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
<section ids="complex-tables" names="complex\ tables">
<title auto="1" refid="id63">
<generated classes="sectnum">
2.20\u00a0\u00a0\u00a0</generated>
Complex tables
</title>
<paragraph>
Here's a complex table, which should test all features.
</paragraph>
<table>
<tgroup cols="4">
<colspec colwidth="24"/>
<colspec colwidth="12"/>
<colspec colwidth="10"/>
<colspec colwidth="10"/>
<thead>
<row>
<entry>
<paragraph>
Header row, column 1
(header rows optional)
</paragraph>
</entry>
<entry>
<paragraph>
Header 2
</paragraph>
</entry>
<entry>
<paragraph>
Header 3
</paragraph>
</entry>
<entry>
<paragraph>
Header 4
</paragraph>
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<paragraph>
body row 1, column 1
</paragraph>
</entry>
<entry>
<paragraph>
column 2
</paragraph>
</entry>
<entry>
<paragraph>
column 3
</paragraph>
</entry>
<entry>
<paragraph>
column 4
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
body row 2
</paragraph>
</entry>
<entry morecols="2">
<paragraph>
Cells may span columns.
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
body row 3
</paragraph>
</entry>
<entry morerows="1">
<paragraph>
Cells may
span rows.
</paragraph>
<paragraph>
Paragraph.
</paragraph>
</entry>
<entry morecols="1" morerows="1">
<bullet_list bullet="-">
<list_item>
<paragraph>
Table cells
</paragraph>
</list_item>
<list_item>
<paragraph>
contain
</paragraph>
</list_item>
<list_item>
<paragraph>
body elements.
</paragraph>
</list_item>
</bullet_list>
</entry>
</row>
<row>
<entry>
<paragraph>
body row 4
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
body row 5
</paragraph>
</entry>
<entry morecols="1">
<paragraph>
Cells may also be
empty: <literal>
--></literal>
</paragraph>
</entry>
<entry/>
</row>
</tbody>
</tgroup>
</table>
</section>
<section ids="list-tables" names="list\ tables">
<title auto="1" refid="id64">
<generated classes="sectnum">
2.21\u00a0\u00a0\u00a0</generated>
List Tables
</title>
<paragraph>
Here's a list table exercising all features:
</paragraph>
<table classes="test">
<title>
list table with integral header</title>
<tgroup cols="3">
<colspec colwidth="10" stub="1"/>
<colspec colwidth="20"/>
<colspec colwidth="30"/>
<thead>
<row>
<entry>
<paragraph>
Treat
</paragraph>
</entry>
<entry>
<paragraph>
Quantity
</paragraph>
</entry>
<entry>
<paragraph>
Description
</paragraph>
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<paragraph>
Albatross
</paragraph>
</entry>
<entry>
<paragraph>
2.99
</paragraph>
</entry>
<entry>
<paragraph>
On a stick!
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
Crunchy Frog
</paragraph>
</entry>
<entry>
<paragraph>
1.49
</paragraph>
</entry>
<entry>
<paragraph>
If we took the bones out, it wouldn't be
crunchy, now would it?
</paragraph>
</entry>
</row>
<row>
<entry>
<paragraph>
Gannet Ripple
</paragraph>
</entry>
<entry>
<paragraph>
1.99
</paragraph>
</entry>
<entry>
<paragraph>
On a stick!
</paragraph>
</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
</section>
<section ids="error-handling" names="error\ handling">
<title auto="1" refid="id65">
<generated classes="sectnum">
3\u00a0\u00a0\u00a0</generated>
Error Handling
</title>
<paragraph>
Any errors caught during processing will generate system messages.
</paragraph>
<paragraph>
There should be five messages in the following, auto-generated
section, "Docutils System Messages":
</paragraph>
<comment xml:space="preserve">
section should be added by Docutils automatically
</comment>
</section>
<section classes="system-messages">
<title>
Docutils System Messages</title>
<system_message backrefs="id20" ids="id19" level="3" line="109" source="./../data/standard.txt" type="ERROR">
<paragraph>
Undefined substitution referenced: "problematic".
</paragraph>
</system_message>
<system_message backrefs="id22" ids="id21" level="3" line="361" source="./../data/standard.txt" type="ERROR">
<paragraph>
Unknown target name: "nonexistent".
</paragraph>
</system_message>
<system_message backrefs="id74" ids="id73" level="3" line="353" source="./../data/standard.txt" type="ERROR">
<paragraph>
Unknown target name: "5".
</paragraph>
</system_message>
<system_message backrefs="id76" ids="id75" level="3" line="388" source="./../data/standard.txt" type="ERROR">
<paragraph>
Unknown target name: "hyperlink reference without a target".
</paragraph>
</system_message>
<system_message backrefs="id78" ids="id77" level="3" line="403" source="./../data/standard.txt" type="ERROR">
<paragraph>
Duplicate target name, cannot be used as a unique reference: "duplicate target names".
</paragraph>
</system_message>
</section>
</document>