| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> |
| 3 |
|
| 4 |
<document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="functional/input/standalone_rst_docutils_xml.rst" title="reStructuredText Test Document"> |
| 5 |
<title>reStructuredText Test Document</title> |
| 6 |
<subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">Examples of Syntax Constructs</subtitle> |
| 7 |
<meta content="reStructuredText, test, parser" name="keywords"></meta> |
| 8 |
<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description"></meta> |
| 9 |
<decoration> |
| 10 |
<header> |
| 11 |
<paragraph>Document header</paragraph> |
| 12 |
</header> |
| 13 |
<footer> |
| 14 |
<paragraph>Document footer</paragraph> |
| 15 |
</footer> |
| 16 |
</decoration> |
| 17 |
<docinfo> |
| 18 |
<author>David Goodger</author> |
| 19 |
<address xml:space="preserve">123 Example Street |
| 20 |
Example, EX Canada |
| 21 |
A1B 2C3</address> |
| 22 |
<contact><reference refuri="mailto:[email protected]">[email protected]</reference></contact> |
| 23 |
<authors> |
| 24 |
<author>Me</author> |
| 25 |
<author>Myself</author> |
| 26 |
<author>I</author> |
| 27 |
</authors> |
| 28 |
<organization>humankind</organization> |
| 29 |
<date>Now, or yesterday. Or maybe even <emphasis>before</emphasis> yesterday.</date> |
| 30 |
<status>This is a "work in progress"</status> |
| 31 |
<revision>is managed by a version control system.</revision> |
| 32 |
<version>1</version> |
| 33 |
<copyright>This document has been placed in the public domain. You |
| 34 |
may do with it as you wish. You may copy, modify, |
| 35 |
redistribute, reattribute, sell, buy, rent, lease, |
| 36 |
destroy, or improve it, quote it at length, excerpt, |
| 37 |
incorporate, collate, fold, staple, or mutilate it, or do |
| 38 |
anything else to it that your or anyone else's heart |
| 39 |
desires.</copyright> |
| 40 |
<field classes="field-name"> |
| 41 |
<field_name>field name</field_name> |
| 42 |
<field_body> |
| 43 |
<paragraph>This is a "generic bibliographic field".</paragraph> |
| 44 |
</field_body> |
| 45 |
</field> |
| 46 |
<field classes="field-name-2"> |
| 47 |
<field_name>field name "2"</field_name> |
| 48 |
<field_body> |
| 49 |
<paragraph>Generic bibliographic fields may contain multiple body elements.</paragraph> |
| 50 |
<paragraph>Like this.</paragraph> |
| 51 |
</field_body> |
| 52 |
</field> |
| 53 |
</docinfo> |
| 54 |
<topic classes="dedication"> |
| 55 |
<title>Dedication</title> |
| 56 |
<paragraph>For Docutils users & co-developers.</paragraph> |
| 57 |
</topic> |
| 58 |
<topic classes="abstract"> |
| 59 |
<title>Abstract</title> |
| 60 |
<paragraph>This is a test document, containing at least one example of each |
| 61 |
reStructuredText construct.</paragraph> |
| 62 |
</topic> |
| 63 |
<comment xml:space="preserve">This is a comment. Note how any initial comments are moved by |
| 64 |
transforms to after the document title, subtitle, and docinfo.</comment> |
| 65 |
<target refid="doctitle"></target> |
| 66 |
<comment xml:space="preserve">Above is the document title, and below is the subtitle. |
| 67 |
They are transformed from section titles after parsing.</comment> |
| 68 |
<target refid="subtitle"></target> |
| 69 |
<comment xml:space="preserve">bibliographic fields (which also require a transform):</comment> |
| 70 |
<raw format="latex" xml:space="preserve">\pagebreak[4] % start ToC on new page</raw> |
| 71 |
<topic classes="contents" ids="table-of-contents" names="table\ of\ contents"> |
| 72 |
<title>Table of Contents</title> |
| 73 |
<bullet_list classes="auto-toc"> |
| 74 |
<list_item> |
| 75 |
<paragraph><reference ids="toc-entry-1" refid="structural-elements"><generated classes="sectnum">1 </generated>Structural Elements</reference></paragraph> |
| 76 |
<bullet_list classes="auto-toc"> |
| 77 |
<list_item> |
| 78 |
<paragraph><reference ids="toc-entry-2" refid="section-title"><generated classes="sectnum">1.1 </generated>Section Title</reference></paragraph> |
| 79 |
</list_item> |
| 80 |
<list_item> |
| 81 |
<paragraph><reference ids="toc-entry-3" refid="empty-section"><generated classes="sectnum">1.2 </generated>Empty Section</reference></paragraph> |
| 82 |
</list_item> |
| 83 |
<list_item> |
| 84 |
<paragraph><reference ids="toc-entry-4" refid="transitions"><generated classes="sectnum">1.3 </generated>Transitions</reference></paragraph> |
| 85 |
</list_item> |
| 86 |
</bullet_list> |
| 87 |
</list_item> |
| 88 |
<list_item> |
| 89 |
<paragraph><reference ids="toc-entry-5" refid="body-elements"><generated classes="sectnum">2 </generated>Body Elements</reference></paragraph> |
| 90 |
<bullet_list classes="auto-toc"> |
| 91 |
<list_item> |
| 92 |
<paragraph><reference ids="toc-entry-6" refid="paragraphs"><generated classes="sectnum">2.1 </generated>Paragraphs</reference></paragraph> |
| 93 |
<bullet_list classes="auto-toc"> |
| 94 |
<list_item> |
| 95 |
<paragraph><reference ids="toc-entry-7" refid="inline-markup"><generated classes="sectnum">2.1.1 </generated>Inline Markup</reference></paragraph> |
| 96 |
</list_item> |
| 97 |
</bullet_list> |
| 98 |
</list_item> |
| 99 |
<list_item> |
| 100 |
<paragraph><reference ids="toc-entry-8" refid="bullet-lists"><generated classes="sectnum">2.2 </generated>Bullet Lists</reference></paragraph> |
| 101 |
</list_item> |
| 102 |
<list_item> |
| 103 |
<paragraph><reference ids="toc-entry-9" refid="enumerated-lists"><generated classes="sectnum">2.3 </generated>Enumerated Lists</reference></paragraph> |
| 104 |
</list_item> |
| 105 |
<list_item> |
| 106 |
<paragraph><reference ids="toc-entry-10" refid="definition-lists"><generated classes="sectnum">2.4 </generated>Definition Lists</reference></paragraph> |
| 107 |
</list_item> |
| 108 |
<list_item> |
| 109 |
<paragraph><reference ids="toc-entry-11" refid="field-lists"><generated classes="sectnum">2.5 </generated>Field Lists</reference></paragraph> |
| 110 |
</list_item> |
| 111 |
<list_item> |
| 112 |
<paragraph><reference ids="toc-entry-12" refid="option-lists"><generated classes="sectnum">2.6 </generated>Option Lists</reference></paragraph> |
| 113 |
</list_item> |
| 114 |
<list_item> |
| 115 |
<paragraph><reference ids="toc-entry-13" refid="literal-blocks"><generated classes="sectnum">2.7 </generated>Literal Blocks</reference></paragraph> |
| 116 |
</list_item> |
| 117 |
<list_item> |
| 118 |
<paragraph><reference ids="toc-entry-14" refid="line-blocks"><generated classes="sectnum">2.8 </generated>Line Blocks</reference></paragraph> |
| 119 |
</list_item> |
| 120 |
<list_item> |
| 121 |
<paragraph><reference ids="toc-entry-15" refid="block-quotes"><generated classes="sectnum">2.9 </generated>Block Quotes</reference></paragraph> |
| 122 |
</list_item> |
| 123 |
<list_item> |
| 124 |
<paragraph><reference ids="toc-entry-16" refid="doctest-blocks"><generated classes="sectnum">2.10 </generated>Doctest Blocks</reference></paragraph> |
| 125 |
</list_item> |
| 126 |
<list_item> |
| 127 |
<paragraph><reference ids="toc-entry-17" refid="footnotes"><generated classes="sectnum">2.11 </generated>Footnotes</reference></paragraph> |
| 128 |
</list_item> |
| 129 |
<list_item> |
| 130 |
<paragraph><reference ids="toc-entry-18" refid="citations"><generated classes="sectnum">2.12 </generated>Citations</reference></paragraph> |
| 131 |
</list_item> |
| 132 |
<list_item> |
| 133 |
<paragraph><reference ids="toc-entry-19" refid="targets"><generated classes="sectnum">2.13 </generated>Targets</reference></paragraph> |
| 134 |
<bullet_list classes="auto-toc"> |
| 135 |
<list_item> |
| 136 |
<paragraph><reference ids="toc-entry-20" refid="duplicate-target-names"><generated classes="sectnum">2.13.1 </generated>Duplicate Target Names</reference></paragraph> |
| 137 |
</list_item> |
| 138 |
<list_item> |
| 139 |
<paragraph><reference ids="toc-entry-21" refid="duplicate-target-names-1"><generated classes="sectnum">2.13.2 </generated>Duplicate Target Names</reference></paragraph> |
| 140 |
</list_item> |
| 141 |
</bullet_list> |
| 142 |
</list_item> |
| 143 |
<list_item> |
| 144 |
<paragraph><reference ids="toc-entry-22" refid="directives"><generated classes="sectnum">2.14 </generated>Directives</reference></paragraph> |
| 145 |
<bullet_list classes="auto-toc"> |
| 146 |
<list_item> |
| 147 |
<paragraph><reference ids="toc-entry-23" refid="document-parts"><generated classes="sectnum">2.14.1 </generated>Document Parts</reference></paragraph> |
| 148 |
</list_item> |
| 149 |
<list_item> |
| 150 |
<paragraph><reference ids="toc-entry-24" refid="images-and-figures"><generated classes="sectnum">2.14.2 </generated>Images and Figures</reference></paragraph> |
| 151 |
</list_item> |
| 152 |
<list_item> |
| 153 |
<paragraph><reference ids="toc-entry-25" refid="tables"><generated classes="sectnum">2.14.3 </generated>Tables</reference></paragraph> |
| 154 |
</list_item> |
| 155 |
<list_item> |
| 156 |
<paragraph><reference ids="toc-entry-26" refid="admonitions"><generated classes="sectnum">2.14.4 </generated>Admonitions</reference></paragraph> |
| 157 |
</list_item> |
| 158 |
<list_item> |
| 159 |
<paragraph><reference ids="toc-entry-27" refid="topics-sidebars-and-rubrics"><generated classes="sectnum">2.14.5 </generated>Topics, Sidebars, and Rubrics</reference></paragraph> |
| 160 |
</list_item> |
| 161 |
<list_item> |
| 162 |
<paragraph><reference ids="toc-entry-28" refid="target-footnotes"><generated classes="sectnum">2.14.6 </generated>Target Footnotes</reference></paragraph> |
| 163 |
</list_item> |
| 164 |
<list_item> |
| 165 |
<paragraph><reference ids="toc-entry-29" refid="replacement-text"><generated classes="sectnum">2.14.7 </generated>Replacement Text</reference></paragraph> |
| 166 |
</list_item> |
| 167 |
<list_item> |
| 168 |
<paragraph><reference ids="toc-entry-30" refid="compound-paragraph"><generated classes="sectnum">2.14.8 </generated>Compound Paragraph</reference></paragraph> |
| 169 |
</list_item> |
| 170 |
<list_item> |
| 171 |
<paragraph><reference ids="toc-entry-31" refid="parsed-literal-blocks"><generated classes="sectnum">2.14.9 </generated>Parsed Literal Blocks</reference></paragraph> |
| 172 |
</list_item> |
| 173 |
<list_item> |
| 174 |
<paragraph><reference ids="toc-entry-32" refid="code"><generated classes="sectnum">2.14.10 </generated>Code</reference></paragraph> |
| 175 |
</list_item> |
| 176 |
<list_item> |
| 177 |
<paragraph><reference ids="toc-entry-33" refid="meta"><generated classes="sectnum">2.14.11 </generated>Meta</reference></paragraph> |
| 178 |
</list_item> |
| 179 |
</bullet_list> |
| 180 |
</list_item> |
| 181 |
<list_item> |
| 182 |
<paragraph><reference ids="toc-entry-34" refid="substitution-definitions"><generated classes="sectnum">2.15 </generated>Substitution Definitions</reference></paragraph> |
| 183 |
</list_item> |
| 184 |
<list_item> |
| 185 |
<paragraph><reference ids="toc-entry-35" refid="comments"><generated classes="sectnum">2.16 </generated>Comments</reference></paragraph> |
| 186 |
</list_item> |
| 187 |
<list_item> |
| 188 |
<paragraph><reference ids="toc-entry-36" refid="raw-text"><generated classes="sectnum">2.17 </generated>Raw text</reference></paragraph> |
| 189 |
</list_item> |
| 190 |
<list_item> |
| 191 |
<paragraph><reference ids="toc-entry-37" refid="container"><generated classes="sectnum">2.18 </generated>Container</reference></paragraph> |
| 192 |
</list_item> |
| 193 |
<list_item> |
| 194 |
<paragraph><reference ids="toc-entry-38" refid="colspanning-tables"><generated classes="sectnum">2.19 </generated>Colspanning tables</reference></paragraph> |
| 195 |
</list_item> |
| 196 |
<list_item> |
| 197 |
<paragraph><reference ids="toc-entry-39" refid="rowspanning-tables"><generated classes="sectnum">2.20 </generated>Rowspanning tables</reference></paragraph> |
| 198 |
</list_item> |
| 199 |
<list_item> |
| 200 |
<paragraph><reference ids="toc-entry-40" refid="complex-tables"><generated classes="sectnum">2.21 </generated>Complex tables</reference></paragraph> |
| 201 |
</list_item> |
| 202 |
<list_item> |
| 203 |
<paragraph><reference ids="toc-entry-41" refid="list-tables"><generated classes="sectnum">2.22 </generated>List Tables</reference></paragraph> |
| 204 |
</list_item> |
| 205 |
</bullet_list> |
| 206 |
</list_item> |
| 207 |
<list_item> |
| 208 |
<paragraph><reference ids="toc-entry-42" refid="error-handling"><generated classes="sectnum">3 </generated>Error Handling</reference></paragraph> |
| 209 |
</list_item> |
| 210 |
</bullet_list> |
| 211 |
</topic> |
| 212 |
<section ids="structural-elements" names="structural\ elements"> |
| 213 |
<title auto="1" refid="toc-entry-1"><generated classes="sectnum">1 </generated>Structural Elements</title> |
| 214 |
<section ids="section-title" names="section\ title"> |
| 215 |
<title auto="1" refid="toc-entry-2"><generated classes="sectnum">1.1 </generated>Section Title</title> |
| 216 |
<subtitle ids="section-subtitle" names="section\ subtitle">Section Subtitle</subtitle> |
| 217 |
<paragraph>Lone subsections are converted to a section subtitle by a transform |
| 218 |
activated with the <literal>--section-subtitles</literal> command line option or the |
| 219 |
<literal>sectsubtitle-xform</literal> configuration value.</paragraph> |
| 220 |
</section> |
| 221 |
<section ids="empty-section" names="empty\ section"> |
| 222 |
<title auto="1" refid="toc-entry-3"><generated classes="sectnum">1.2 </generated>Empty Section</title> |
| 223 |
</section> |
| 224 |
<section ids="transitions" names="transitions"> |
| 225 |
<title auto="1" refid="toc-entry-4"><generated classes="sectnum">1.3 </generated>Transitions</title> |
| 226 |
<paragraph>Here's a transition:</paragraph> |
| 227 |
<transition></transition> |
| 228 |
<paragraph>It divides the section. Transitions may also occur between sections:</paragraph> |
| 229 |
</section> |
| 230 |
</section> |
| 231 |
<transition></transition> |
| 232 |
<section ids="body-elements" names="body\ elements"> |
| 233 |
<title auto="1" refid="toc-entry-5"><generated classes="sectnum">2 </generated>Body Elements</title> |
| 234 |
<section ids="paragraphs" names="paragraphs"> |
| 235 |
<title auto="1" refid="toc-entry-6"><generated classes="sectnum">2.1 </generated>Paragraphs</title> |
| 236 |
<paragraph>A paragraph.</paragraph> |
| 237 |
<section ids="inline-markup" names="inline\ markup"> |
| 238 |
<title auto="1" refid="toc-entry-7"><generated classes="sectnum">2.1.1 </generated>Inline Markup</title> |
| 239 |
<paragraph>Paragraphs contain text and may contain inline markup: <emphasis>emphasis</emphasis>, |
| 240 |
<strong>strong emphasis</strong>, <literal>inline literals</literal>, standalone hyperlinks |
| 241 |
(<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="footnote-reference-10" refid="footnote-6">5</footnote_reference>), internal |
| 242 |
cross-references (<reference name="example" refid="example">example</reference>), external hyperlinks with embedded URIs |
| 243 |
(<reference name="Python web site" refuri="http://www.python.org">Python web site</reference>), <reference anonymous="1" name="anonymous hyperlink references" refuri="http://www.python.org/">anonymous hyperlink |
| 244 |
references</reference> <footnote_reference auto="1" ids="footnote-reference-14" refid="footnote-6">5</footnote_reference> (<reference anonymous="1" name="a second reference" refuri="https://docutils.sourceforge.io/">a second reference</reference> <footnote_reference auto="1" ids="footnote-reference-15" refid="footnote-8">7</footnote_reference>), footnote references (manually |
| 245 |
numbered <footnote_reference ids="footnote-reference-1" refid="footnote-1">1</footnote_reference>, anonymous auto-numbered <footnote_reference auto="1" ids="footnote-reference-2" refid="footnote-2">3</footnote_reference>, labeled auto-numbered |
| 246 |
<footnote_reference auto="1" ids="footnote-reference-3" refid="label">2</footnote_reference>, or symbolic <footnote_reference auto="*" ids="footnote-reference-4" refid="footnote-3">*</footnote_reference>), citation references (see <citation_reference ids="citation-reference-1" refid="cit2002">CIT2002</citation_reference>), |
| 247 |
substitution references (<image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"></image> & |
| 248 |
a <emphasis>trimmed heart</emphasis> <literal>(U+2665):</literal>♥), and <target ids="inline-hyperlink-targets" names="inline\ hyperlink\ targets">inline hyperlink targets</target> |
| 249 |
(see <reference name="Targets" refid="targets">Targets</reference> below for a reference back to here). Character-level |
| 250 |
inline markup is also possible (although exceedingly ugly!) in <emphasis>re</emphasis><literal>Structured</literal><emphasis>Text</emphasis>. Problems are indicated by <problematic ids="problematic-1" refid="system-message-1">|problematic|</problematic> text |
| 251 |
(generated by processing errors; this one is intentional). Here is a |
| 252 |
reference to the <reference name="doctitle" refid="doctitle">doctitle</reference> and the <reference name="subtitle" refid="subtitle">subtitle</reference>.</paragraph> |
| 253 |
<target anonymous="1" ids="target-1" refuri="http://www.python.org/"></target> |
| 254 |
<target anonymous="1" ids="target-2" refuri="https://docutils.sourceforge.io/"></target> |
| 255 |
<paragraph>The default role for interpreted text is <title_reference>Title Reference</title_reference>. Here are |
| 256 |
some explicit interpreted text roles: a PEP reference (<reference refuri="https://peps.python.org/pep-0287">PEP 287</reference>); an |
| 257 |
RFC reference (<reference refuri="https://tools.ietf.org/html/rfc2822.html">RFC 2822</reference>); an abbreviation (<abbreviation>abb.</abbreviation>), an acronym |
| 258 |
(<acronym>reST</acronym>), code (<literal classes="code">print "hello world"</literal>); a <subscript>subscript</subscript>; |
| 259 |
a <superscript>superscript</superscript> and explicit roles for <title_reference>Docutils</title_reference>' |
| 260 |
<emphasis>standard</emphasis> <strong>inline</strong> <literal>markup</literal>.</paragraph> |
| 261 |
<comment xml:space="preserve">DO NOT RE-WRAP THE FOLLOWING PARAGRAPH!</comment> |
| 262 |
<paragraph>Let's test wrapping and whitespace significance in inline literals: |
| 263 |
<literal>This is an example of --inline-literal --text, --including some-- |
| 264 |
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window |
| 265 |
to see how the text is wrapped. -- ---- -------- Now note the |
| 266 |
spacing between the words of this sentence (words |
| 267 |
should be grouped in pairs).</literal></paragraph> |
| 268 |
<paragraph>If the <literal>--pep-references</literal> option was supplied, there should be a |
| 269 |
live link to PEP 258 here.</paragraph> |
| 270 |
</section> |
| 271 |
</section> |
| 272 |
<section ids="bullet-lists" names="bullet\ lists"> |
| 273 |
<title auto="1" refid="toc-entry-8"><generated classes="sectnum">2.2 </generated>Bullet Lists</title> |
| 274 |
<bullet_list bullet="-"> |
| 275 |
<list_item> |
| 276 |
<paragraph>A bullet list</paragraph> |
| 277 |
<bullet_list bullet="+"> |
| 278 |
<list_item> |
| 279 |
<paragraph>Nested bullet list.</paragraph> |
| 280 |
</list_item> |
| 281 |
<list_item> |
| 282 |
<paragraph>Nested item 2.</paragraph> |
| 283 |
</list_item> |
| 284 |
</bullet_list> |
| 285 |
</list_item> |
| 286 |
<list_item> |
| 287 |
<paragraph>Item 2.</paragraph> |
| 288 |
<paragraph>Paragraph 2 of item 2.</paragraph> |
| 289 |
<bullet_list bullet="*"> |
| 290 |
<list_item> |
| 291 |
<paragraph>Nested bullet list.</paragraph> |
| 292 |
</list_item> |
| 293 |
<list_item> |
| 294 |
<paragraph>Nested item 2.</paragraph> |
| 295 |
<bullet_list bullet="-"> |
| 296 |
<list_item> |
| 297 |
<paragraph>Third level.</paragraph> |
| 298 |
</list_item> |
| 299 |
<list_item> |
| 300 |
<paragraph>Item 2.</paragraph> |
| 301 |
</list_item> |
| 302 |
</bullet_list> |
| 303 |
</list_item> |
| 304 |
<list_item> |
| 305 |
<paragraph>Nested item 3.</paragraph> |
| 306 |
</list_item> |
| 307 |
<list_item> |
| 308 |
<paragraph>This nested list should be compacted by the HTML writer.</paragraph> |
| 309 |
<target ids="target" names="target"></target> |
| 310 |
<comment xml:space="preserve">Even if this item contains a target and a comment.</comment> |
| 311 |
</list_item> |
| 312 |
</bullet_list> |
| 313 |
</list_item> |
| 314 |
</bullet_list> |
| 315 |
</section> |
| 316 |
<section ids="enumerated-lists" names="enumerated\ lists"> |
| 317 |
<title auto="1" refid="toc-entry-9"><generated classes="sectnum">2.3 </generated>Enumerated Lists</title> |
| 318 |
<enumerated_list enumtype="arabic" prefix="" suffix="."> |
| 319 |
<list_item> |
| 320 |
<paragraph>Arabic numerals.</paragraph> |
| 321 |
<enumerated_list enumtype="loweralpha" prefix="" suffix=")"> |
| 322 |
<list_item> |
| 323 |
<paragraph>lower alpha)</paragraph> |
| 324 |
<enumerated_list enumtype="lowerroman" prefix="(" suffix=")"> |
| 325 |
<list_item> |
| 326 |
<paragraph>(lower roman)</paragraph> |
| 327 |
<enumerated_list enumtype="upperalpha" prefix="" suffix="."> |
| 328 |
<list_item> |
| 329 |
<paragraph>upper alpha.</paragraph> |
| 330 |
<enumerated_list enumtype="upperroman" prefix="" suffix=")"> |
| 331 |
<list_item> |
| 332 |
<paragraph>upper roman)</paragraph> |
| 333 |
</list_item> |
| 334 |
</enumerated_list> |
| 335 |
</list_item> |
| 336 |
</enumerated_list> |
| 337 |
</list_item> |
| 338 |
</enumerated_list> |
| 339 |
</list_item> |
| 340 |
</enumerated_list> |
| 341 |
</list_item> |
| 342 |
<list_item> |
| 343 |
<paragraph>Lists that don't start at 1:</paragraph> |
| 344 |
<enumerated_list enumtype="arabic" prefix="" start="3" suffix="."> |
| 345 |
<list_item> |
| 346 |
<paragraph>Three</paragraph> |
| 347 |
</list_item> |
| 348 |
<list_item> |
| 349 |
<paragraph>Four</paragraph> |
| 350 |
</list_item> |
| 351 |
</enumerated_list> |
| 352 |
<enumerated_list enumtype="upperalpha" prefix="" start="3" suffix="."> |
| 353 |
<list_item> |
| 354 |
<paragraph>C</paragraph> |
| 355 |
</list_item> |
| 356 |
<list_item> |
| 357 |
<paragraph>D</paragraph> |
| 358 |
</list_item> |
| 359 |
</enumerated_list> |
| 360 |
<enumerated_list enumtype="lowerroman" prefix="" start="3" suffix="."> |
| 361 |
<list_item> |
| 362 |
<paragraph>iii</paragraph> |
| 363 |
</list_item> |
| 364 |
<list_item> |
| 365 |
<paragraph>iv</paragraph> |
| 366 |
</list_item> |
| 367 |
</enumerated_list> |
| 368 |
</list_item> |
| 369 |
</enumerated_list> |
| 370 |
</section> |
| 371 |
<section ids="definition-lists" names="definition\ lists"> |
| 372 |
<title auto="1" refid="toc-entry-10"><generated classes="sectnum">2.4 </generated>Definition Lists</title> |
| 373 |
<definition_list> |
| 374 |
<definition_list_item> |
| 375 |
<term>Term</term> |
| 376 |
<definition> |
| 377 |
<paragraph>Definition</paragraph> |
| 378 |
</definition> |
| 379 |
</definition_list_item> |
| 380 |
<definition_list_item> |
| 381 |
<term>Term</term> |
| 382 |
<classifier>classifier</classifier> |
| 383 |
<definition> |
| 384 |
<paragraph>Definition paragraph 1.</paragraph> |
| 385 |
<paragraph>Definition paragraph 2.</paragraph> |
| 386 |
</definition> |
| 387 |
</definition_list_item> |
| 388 |
<definition_list_item> |
| 389 |
<term>Term</term> |
| 390 |
<definition> |
| 391 |
<paragraph>Definition</paragraph> |
| 392 |
</definition> |
| 393 |
</definition_list_item> |
| 394 |
<definition_list_item> |
| 395 |
<term>Term</term> |
| 396 |
<classifier>classifier one</classifier> |
| 397 |
<classifier>classifier two</classifier> |
| 398 |
<definition> |
| 399 |
<paragraph>Definition</paragraph> |
| 400 |
</definition> |
| 401 |
</definition_list_item> |
| 402 |
</definition_list> |
| 403 |
</section> |
| 404 |
<section ids="field-lists" names="field\ lists"> |
| 405 |
<title auto="1" refid="toc-entry-11"><generated classes="sectnum">2.5 </generated>Field Lists</title> |
| 406 |
<field_list> |
| 407 |
<field> |
| 408 |
<field_name>what</field_name> |
| 409 |
<field_body> |
| 410 |
<paragraph>Field lists map field names to field bodies, like database |
| 411 |
records. They are often part of an extension syntax. They are |
| 412 |
an unambiguous variant of RFC 2822 fields.</paragraph> |
| 413 |
</field_body> |
| 414 |
</field> |
| 415 |
<field> |
| 416 |
<field_name>how arg1 arg2</field_name> |
| 417 |
<field_body> |
| 418 |
<paragraph>The field marker is a colon, the field name, and a colon.</paragraph> |
| 419 |
<paragraph>The field body may contain one or more body elements, indented |
| 420 |
relative to the field marker.</paragraph> |
| 421 |
</field_body> |
| 422 |
</field> |
| 423 |
<field> |
| 424 |
<field_name>credits</field_name> |
| 425 |
<field_body> |
| 426 |
<paragraph classes="credits">This paragraph has the <title_reference>credits</title_reference> class set. (This is actually not |
| 427 |
about credits but just for ensuring that the class attribute |
| 428 |
doesn't get stripped away.)</paragraph> |
| 429 |
</field_body> |
| 430 |
</field> |
| 431 |
</field_list> |
| 432 |
</section> |
| 433 |
<section ids="option-lists" names="option\ lists"> |
| 434 |
<title auto="1" refid="toc-entry-12"><generated classes="sectnum">2.6 </generated>Option Lists</title> |
| 435 |
<paragraph>For listing command-line options:</paragraph> |
| 436 |
<option_list> |
| 437 |
<option_list_item> |
| 438 |
<option_group> |
| 439 |
<option> |
| 440 |
<option_string>-a</option_string> |
| 441 |
</option> |
| 442 |
</option_group> |
| 443 |
<description> |
| 444 |
<paragraph>command-line option "a"</paragraph> |
| 445 |
</description> |
| 446 |
</option_list_item> |
| 447 |
<option_list_item> |
| 448 |
<option_group> |
| 449 |
<option> |
| 450 |
<option_string>-b</option_string> |
| 451 |
<option_argument delimiter=" ">file</option_argument> |
| 452 |
</option> |
| 453 |
</option_group> |
| 454 |
<description> |
| 455 |
<paragraph>options can have arguments |
| 456 |
and long descriptions</paragraph> |
| 457 |
</description> |
| 458 |
</option_list_item> |
| 459 |
<option_list_item> |
| 460 |
<option_group> |
| 461 |
<option> |
| 462 |
<option_string>--long</option_string> |
| 463 |
</option> |
| 464 |
</option_group> |
| 465 |
<description> |
| 466 |
<paragraph>options can be long, too</paragraph> |
| 467 |
</description> |
| 468 |
</option_list_item> |
| 469 |
<option_list_item> |
| 470 |
<option_group> |
| 471 |
<option> |
| 472 |
<option_string>--input</option_string> |
| 473 |
<option_argument delimiter="=">file</option_argument> |
| 474 |
</option> |
| 475 |
</option_group> |
| 476 |
<description> |
| 477 |
<paragraph>long options can also have arguments</paragraph> |
| 478 |
</description> |
| 479 |
</option_list_item> |
| 480 |
<option_list_item> |
| 481 |
<option_group> |
| 482 |
<option> |
| 483 |
<option_string>/V</option_string> |
| 484 |
</option> |
| 485 |
</option_group> |
| 486 |
<description> |
| 487 |
<paragraph>DOS/VMS-style option</paragraph> |
| 488 |
</description> |
| 489 |
</option_list_item> |
| 490 |
<option_list_item> |
| 491 |
<option_group> |
| 492 |
<option> |
| 493 |
<option_string>--very-long-option</option_string> |
| 494 |
</option> |
| 495 |
</option_group> |
| 496 |
<description> |
| 497 |
<paragraph>The description can also start on the next line.</paragraph> |
| 498 |
<paragraph>The description may contain multiple body elements, |
| 499 |
regardless of where it starts.</paragraph> |
| 500 |
</description> |
| 501 |
</option_list_item> |
| 502 |
<option_list_item> |
| 503 |
<option_group> |
| 504 |
<option> |
| 505 |
<option_string>-x</option_string> |
| 506 |
</option> |
| 507 |
<option> |
| 508 |
<option_string>-y</option_string> |
| 509 |
</option> |
| 510 |
<option> |
| 511 |
<option_string>-z</option_string> |
| 512 |
</option> |
| 513 |
</option_group> |
| 514 |
<description> |
| 515 |
<paragraph>Multiple options are an "option group".</paragraph> |
| 516 |
</description> |
| 517 |
</option_list_item> |
| 518 |
<option_list_item> |
| 519 |
<option_group> |
| 520 |
<option> |
| 521 |
<option_string>-v</option_string> |
| 522 |
</option> |
| 523 |
<option> |
| 524 |
<option_string>--verbose</option_string> |
| 525 |
</option> |
| 526 |
</option_group> |
| 527 |
<description> |
| 528 |
<paragraph>Commonly-seen: short & long options.</paragraph> |
| 529 |
</description> |
| 530 |
</option_list_item> |
| 531 |
<option_list_item> |
| 532 |
<option_group> |
| 533 |
<option> |
| 534 |
<option_string>-1</option_string> |
| 535 |
<option_argument delimiter=" ">file</option_argument> |
| 536 |
</option> |
| 537 |
<option> |
| 538 |
<option_string>--one</option_string> |
| 539 |
<option_argument delimiter="=">file</option_argument> |
| 540 |
</option> |
| 541 |
<option> |
| 542 |
<option_string>--two</option_string> |
| 543 |
<option_argument delimiter=" ">file</option_argument> |
| 544 |
</option> |
| 545 |
</option_group> |
| 546 |
<description> |
| 547 |
<paragraph>Multiple options with arguments.</paragraph> |
| 548 |
</description> |
| 549 |
</option_list_item> |
| 550 |
<option_list_item> |
| 551 |
<option_group> |
| 552 |
<option> |
| 553 |
<option_string>-f</option_string> |
| 554 |
<option_argument delimiter=" "><[path]file></option_argument> |
| 555 |
</option> |
| 556 |
</option_group> |
| 557 |
<description> |
| 558 |
<paragraph>Option argumens must start with a letter |
| 559 |
or be wrapped in angle brackets.</paragraph> |
| 560 |
</description> |
| 561 |
</option_list_item> |
| 562 |
<option_list_item> |
| 563 |
<option_group> |
| 564 |
<option> |
| 565 |
<option_string>-d</option_string> |
| 566 |
<option_argument delimiter=" "><src dest></option_argument> |
| 567 |
</option> |
| 568 |
</option_group> |
| 569 |
<description> |
| 570 |
<paragraph>Angle brackets are also required if an |
| 571 |
option expects more than one argument.</paragraph> |
| 572 |
</description> |
| 573 |
</option_list_item> |
| 574 |
</option_list> |
| 575 |
<paragraph>There must be at least two spaces between the option and the |
| 576 |
description.</paragraph> |
| 577 |
</section> |
| 578 |
<section ids="literal-blocks" names="literal\ blocks"> |
| 579 |
<title auto="1" refid="toc-entry-13"><generated classes="sectnum">2.7 </generated>Literal Blocks</title> |
| 580 |
<paragraph>Literal blocks are indicated with a double-colon ("::") at the end of |
| 581 |
the preceding paragraph (over there <literal>--></literal>). They can be indented:</paragraph> |
| 582 |
<literal_block xml:space="preserve">if literal_block: |
| 583 |
text = 'is left as-is' |
| 584 |
spaces_and_linebreaks = 'are preserved' |
| 585 |
markup_processing = None</literal_block> |
| 586 |
<paragraph>Or they can be quoted without indentation:</paragraph> |
| 587 |
<literal_block xml:space="preserve">>> Great idea! |
| 588 |
> |
| 589 |
> Why didn't I think of that?</literal_block> |
| 590 |
</section> |
| 591 |
<section ids="line-blocks" names="line\ blocks"> |
| 592 |
<title auto="1" refid="toc-entry-14"><generated classes="sectnum">2.8 </generated>Line Blocks</title> |
| 593 |
<paragraph>This section tests line blocks. Line blocks are body elements which |
| 594 |
consist of lines and other line blocks. Nested line blocks cause |
| 595 |
indentation.</paragraph> |
| 596 |
<line_block> |
| 597 |
<line>This is a line block. It ends with a blank line.</line> |
| 598 |
<line_block> |
| 599 |
<line>New lines begin with a vertical bar ("|").</line> |
| 600 |
<line>Line breaks and initial indent are significant, and preserved.</line> |
| 601 |
<line_block> |
| 602 |
<line>Continuation lines are also possible. A long line that is intended |
| 603 |
to wrap should begin with a space in place of the vertical bar.</line> |
| 604 |
</line_block> |
| 605 |
<line>The left edge of a continuation line need not be aligned with |
| 606 |
the left edge of the text above it.</line> |
| 607 |
</line_block> |
| 608 |
</line_block> |
| 609 |
<line_block> |
| 610 |
<line>This is a second line block.</line> |
| 611 |
<line></line> |
| 612 |
<line>Blank lines are permitted internally, but they must begin with a "|".</line> |
| 613 |
</line_block> |
| 614 |
<paragraph>Another line block, surrounded by paragraphs:</paragraph> |
| 615 |
<line_block> |
| 616 |
<line>And it's no good waiting by the window</line> |
| 617 |
<line>It's no good waiting for the sun</line> |
| 618 |
<line>Please believe me, the things you dream of</line> |
| 619 |
<line>They don't fall in the lap of no-one</line> |
| 620 |
</line_block> |
| 621 |
<paragraph>Take it away, Eric the Orchestra Leader!</paragraph> |
| 622 |
<block_quote> |
| 623 |
<line_block> |
| 624 |
<line>A one, two, a one two three four</line> |
| 625 |
<line></line> |
| 626 |
<line>Half a bee, philosophically,</line> |
| 627 |
<line_block> |
| 628 |
<line>must, <emphasis>ipso facto</emphasis>, half not be.</line> |
| 629 |
</line_block> |
| 630 |
<line>But half the bee has got to be,</line> |
| 631 |
<line_block> |
| 632 |
<line><emphasis>vis a vis</emphasis> its entity. D'you see?</line> |
| 633 |
<line></line> |
| 634 |
</line_block> |
| 635 |
<line>But can a bee be said to be</line> |
| 636 |
<line_block> |
| 637 |
<line>or not to be an entire bee,</line> |
| 638 |
<line_block> |
| 639 |
<line>when half the bee is not a bee,</line> |
| 640 |
<line_block> |
| 641 |
<line>due to some ancient injury?</line> |
| 642 |
<line></line> |
| 643 |
</line_block> |
| 644 |
</line_block> |
| 645 |
</line_block> |
| 646 |
<line>Singing...</line> |
| 647 |
</line_block> |
| 648 |
</block_quote> |
| 649 |
<paragraph>A line block, like the following poem by Christian Morgenstern, can |
| 650 |
also be centre-aligned:</paragraph> |
| 651 |
<line_block classes="language-de align-center"> |
| 652 |
<line><strong>Die Trichter</strong></line> |
| 653 |
<line></line> |
| 654 |
<line>Zwei Trichter wandeln durch die Nacht.</line> |
| 655 |
<line>Durch ihres Rumpfs verengten Schacht</line> |
| 656 |
<line>fließt weißes Mondlicht</line> |
| 657 |
<line>still und heiter</line> |
| 658 |
<line>auf ihren</line> |
| 659 |
<line>Waldweg</line> |
| 660 |
<line>u. s.</line> |
| 661 |
<line>w.</line> |
| 662 |
<line></line> |
| 663 |
</line_block> |
| 664 |
</section> |
| 665 |
<section ids="block-quotes" names="block\ quotes"> |
| 666 |
<title auto="1" refid="toc-entry-15"><generated classes="sectnum">2.9 </generated>Block Quotes</title> |
| 667 |
<paragraph>Block quotes consist of indented body elements:</paragraph> |
| 668 |
<block_quote> |
| 669 |
<paragraph>My theory by A. Elk. Brackets Miss, brackets. This theory goes |
| 670 |
as follows and begins now. All brontosauruses are thin at one |
| 671 |
end, much much thicker in the middle and then thin again at the |
| 672 |
far end. That is my theory, it is mine, and belongs to me and I |
| 673 |
own it, and what it is too.</paragraph> |
| 674 |
<attribution>Anne Elk (Miss)</attribution> |
| 675 |
</block_quote> |
| 676 |
<paragraph>The language of a quote (like any other object) can be specified by |
| 677 |
a class attribute:</paragraph> |
| 678 |
<comment xml:space="preserve"></comment> |
| 679 |
<block_quote classes="language-fr"> |
| 680 |
<paragraph>ReStructuredText est un langage de balisage léger utilisé |
| 681 |
notamment dans la documentation du langage Python.</paragraph> |
| 682 |
</block_quote> |
| 683 |
</section> |
| 684 |
<section ids="doctest-blocks" names="doctest\ blocks"> |
| 685 |
<title auto="1" refid="toc-entry-16"><generated classes="sectnum">2.10 </generated>Doctest Blocks</title> |
| 686 |
<doctest_block xml:space="preserve">>>> print 'Python-specific usage examples; begun with ">>>"' |
| 687 |
Python-specific usage examples; begun with ">>>" |
| 688 |
>>> print '(cut and pasted from interactive Python sessions)' |
| 689 |
(cut and pasted from interactive Python sessions)</doctest_block> |
| 690 |
</section> |
| 691 |
<section ids="footnotes" names="footnotes"> |
| 692 |
<title auto="1" refid="toc-entry-17"><generated classes="sectnum">2.11 </generated>Footnotes</title> |
| 693 |
<footnote backrefs="footnote-reference-1 footnote-reference-5 footnote-reference-9" ids="footnote-1" names="1"> |
| 694 |
<label>1</label> |
| 695 |
<paragraph>A footnote contains body elements, consistently indented by at |
| 696 |
least 1 space.</paragraph> |
| 697 |
<paragraph>This is the footnote's second paragraph.</paragraph> |
| 698 |
</footnote> |
| 699 |
<footnote auto="1" backrefs="footnote-reference-3 footnote-reference-6" ids="label" names="label"> |
| 700 |
<label>2</label> |
| 701 |
<paragraph>Footnotes may be numbered, either manually (as in <footnote_reference ids="footnote-reference-5" refid="footnote-1">1</footnote_reference>) or |
| 702 |
automatically using a "#"-prefixed label. This footnote has a |
| 703 |
label so it can be referred to from multiple places, both as a |
| 704 |
footnote reference (<footnote_reference auto="1" ids="footnote-reference-6" refid="label">2</footnote_reference>) and as a <reference anonymous="1" name="hyperlink reference" refid="label">hyperlink reference</reference>.</paragraph> |
| 705 |
<target anonymous="1" ids="target-3" refid="label"></target> |
| 706 |
</footnote> |
| 707 |
<footnote auto="1" backrefs="footnote-reference-2" ids="footnote-2" names="3"> |
| 708 |
<label>3</label> |
| 709 |
<paragraph>This footnote is numbered automatically and anonymously using a |
| 710 |
label of "#" only.</paragraph> |
| 711 |
<paragraph>This is the second paragraph.</paragraph> |
| 712 |
<paragraph>And this is the third paragraph.</paragraph> |
| 713 |
</footnote> |
| 714 |
<footnote auto="*" backrefs="footnote-reference-4" ids="footnote-3"> |
| 715 |
<label>*</label> |
| 716 |
<paragraph>Footnotes may also use symbols, specified with a "*" label. |
| 717 |
Here's a reference to the next footnote: <footnote_reference auto="*" ids="footnote-reference-7" refid="footnote-4">†</footnote_reference>.</paragraph> |
| 718 |
</footnote> |
| 719 |
<footnote auto="*" backrefs="footnote-reference-7" ids="footnote-4"> |
| 720 |
<label>†</label> |
| 721 |
<paragraph>This footnote shows the next symbol in the sequence.</paragraph> |
| 722 |
</footnote> |
| 723 |
<footnote ids="footnote-5" names="4"> |
| 724 |
<label>4</label> |
| 725 |
<paragraph>Here's an unreferenced footnote, with a reference to a |
| 726 |
nonexistent footnote: <problematic ids="footnote-reference-8" refid="system-message-2">[5]_</problematic>.</paragraph> |
| 727 |
</footnote> |
| 728 |
</section> |
| 729 |
<section ids="citations" names="citations"> |
| 730 |
<title auto="1" refid="toc-entry-18"><generated classes="sectnum">2.12 </generated>Citations</title> |
| 731 |
<citation backrefs="citation-reference-1 citation-reference-2" ids="cit2002" names="cit2002"> |
| 732 |
<label>CIT2002</label> |
| 733 |
<paragraph>Citations are text-labeled footnotes. They may be |
| 734 |
rendered separately and differently from footnotes.</paragraph> |
| 735 |
</citation> |
| 736 |
<paragraph>Here's a reference to the above, <citation_reference ids="citation-reference-2" refid="cit2002">CIT2002</citation_reference>, and a <problematic ids="citation-reference-3" refid="system-message-3">[nonexistent]_</problematic> |
| 737 |
citation.</paragraph> |
| 738 |
<target refid="another-target"></target> |
| 739 |
</section> |
| 740 |
<section ids="targets another-target" names="targets another\ target"> |
| 741 |
<title auto="1" refid="toc-entry-19"><generated classes="sectnum">2.13 </generated>Targets</title> |
| 742 |
<target refid="example"></target> |
| 743 |
<paragraph ids="example" names="example">This paragraph is pointed to by the explicit "example" target. A |
| 744 |
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 |
| 745 |
hyperlink targets</reference> are also possible.</paragraph> |
| 746 |
<paragraph>Section headers are implicit targets, referred to by name. See |
| 747 |
<reference name="Targets" refid="targets">Targets</reference>, which is a subsection of <reference name="Body Elements" refid="body-elements">Body Elements</reference>.</paragraph> |
| 748 |
<paragraph>Explicit external targets are interpolated into references such as |
| 749 |
"<reference name="Python" refuri="http://www.python.org/">Python</reference> <footnote_reference auto="1" ids="footnote-reference-11" refid="footnote-6">5</footnote_reference>".</paragraph> |
| 750 |
<target ids="python" names="python" refuri="http://www.python.org/"></target> |
| 751 |
<paragraph>Targets may be indirect and anonymous. Thus <reference anonymous="1" name="this phrase" refid="targets">this phrase</reference> may also |
| 752 |
refer to the <reference name="Targets" refid="targets">Targets</reference> section.</paragraph> |
| 753 |
<target anonymous="1" ids="target-4" refid="targets"></target> |
| 754 |
<paragraph>Here's a <problematic ids="problematic-2" refid="system-message-4">`hyperlink reference without a target`_</problematic>, which generates an |
| 755 |
error.</paragraph> |
| 756 |
<section dupnames="duplicate\ target\ names" ids="duplicate-target-names"> |
| 757 |
<title auto="1" refid="toc-entry-20"><generated classes="sectnum">2.13.1 </generated>Duplicate Target Names</title> |
| 758 |
<paragraph>Duplicate names in section headers or other implicit targets will |
| 759 |
generate "info" (level-1) system messages. Duplicate names in |
| 760 |
explicit targets will generate "warning" (level-2) system messages.</paragraph> |
| 761 |
</section> |
| 762 |
<section dupnames="duplicate\ target\ names" ids="duplicate-target-names-1"> |
| 763 |
<title auto="1" refid="toc-entry-21"><generated classes="sectnum">2.13.2 </generated>Duplicate Target Names</title> |
| 764 |
<paragraph>Since there are two "Duplicate Target Names" section headers, we |
| 765 |
cannot uniquely refer to either of them by name. If we try to (like |
| 766 |
this: <problematic ids="problematic-3" refid="system-message-5">`Duplicate Target Names`_</problematic>), an error is generated.</paragraph> |
| 767 |
</section> |
| 768 |
</section> |
| 769 |
<section ids="directives" names="directives"> |
| 770 |
<title auto="1" refid="toc-entry-22"><generated classes="sectnum">2.14 </generated>Directives</title> |
| 771 |
<topic classes="contents local" ids="contents" names="contents"> |
| 772 |
<bullet_list classes="auto-toc"> |
| 773 |
<list_item> |
| 774 |
<paragraph><reference ids="toc-entry-43" refid="document-parts"><generated classes="sectnum">2.14.1 </generated>Document Parts</reference></paragraph> |
| 775 |
</list_item> |
| 776 |
<list_item> |
| 777 |
<paragraph><reference ids="toc-entry-44" refid="images-and-figures"><generated classes="sectnum">2.14.2 </generated>Images and Figures</reference></paragraph> |
| 778 |
</list_item> |
| 779 |
<list_item> |
| 780 |
<paragraph><reference ids="toc-entry-45" refid="tables"><generated classes="sectnum">2.14.3 </generated>Tables</reference></paragraph> |
| 781 |
</list_item> |
| 782 |
<list_item> |
| 783 |
<paragraph><reference ids="toc-entry-46" refid="admonitions"><generated classes="sectnum">2.14.4 </generated>Admonitions</reference></paragraph> |
| 784 |
</list_item> |
| 785 |
<list_item> |
| 786 |
<paragraph><reference ids="toc-entry-47" refid="topics-sidebars-and-rubrics"><generated classes="sectnum">2.14.5 </generated>Topics, Sidebars, and Rubrics</reference></paragraph> |
| 787 |
</list_item> |
| 788 |
<list_item> |
| 789 |
<paragraph><reference ids="toc-entry-48" refid="target-footnotes"><generated classes="sectnum">2.14.6 </generated>Target Footnotes</reference></paragraph> |
| 790 |
</list_item> |
| 791 |
<list_item> |
| 792 |
<paragraph><reference ids="toc-entry-49" refid="replacement-text"><generated classes="sectnum">2.14.7 </generated>Replacement Text</reference></paragraph> |
| 793 |
</list_item> |
| 794 |
<list_item> |
| 795 |
<paragraph><reference ids="toc-entry-50" refid="compound-paragraph"><generated classes="sectnum">2.14.8 </generated>Compound Paragraph</reference></paragraph> |
| 796 |
</list_item> |
| 797 |
<list_item> |
| 798 |
<paragraph><reference ids="toc-entry-51" refid="parsed-literal-blocks"><generated classes="sectnum">2.14.9 </generated>Parsed Literal Blocks</reference></paragraph> |
| 799 |
</list_item> |
| 800 |
<list_item> |
| 801 |
<paragraph><reference ids="toc-entry-52" refid="code"><generated classes="sectnum">2.14.10 </generated>Code</reference></paragraph> |
| 802 |
</list_item> |
| 803 |
<list_item> |
| 804 |
<paragraph><reference ids="toc-entry-53" refid="meta"><generated classes="sectnum">2.14.11 </generated>Meta</reference></paragraph> |
| 805 |
</list_item> |
| 806 |
</bullet_list> |
| 807 |
</topic> |
| 808 |
<paragraph>These are just a sample of the many reStructuredText Directives. For |
| 809 |
others, please see <reference anonymous="1" name="reStructuredText Directives" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html">reStructuredText Directives</reference> <footnote_reference auto="1" ids="footnote-reference-16" refid="footnote-9">8</footnote_reference>.</paragraph> |
| 810 |
<target anonymous="1" ids="target-5" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html"></target> |
| 811 |
<section ids="document-parts" names="document\ parts"> |
| 812 |
<title auto="1" refid="toc-entry-43"><generated classes="sectnum">2.14.1 </generated>Document Parts</title> |
| 813 |
<paragraph>An example of the "contents" directive can be seen above this section |
| 814 |
(a local, untitled table of <reference name="contents" refid="contents">contents</reference>) and at the beginning of the |
| 815 |
document (a document-wide <reference name="table of contents" refid="table-of-contents">table of contents</reference>).</paragraph> |
| 816 |
</section> |
| 817 |
<section ids="images-and-figures" names="images\ and\ figures"> |
| 818 |
<title auto="1" refid="toc-entry-44"><generated classes="sectnum">2.14.2 </generated>Images and Figures</title> |
| 819 |
<paragraph>An image directive (also clickable -- a hyperlink reference):</paragraph> |
| 820 |
<reference name="directives" refid="directives"><image classes="class1 class2" uri="../../../docs/user/rst/images/title.png" width="70%"></image></reference> |
| 821 |
<paragraph>Image with multiple IDs:</paragraph> |
| 822 |
<target refid="image-target-1"></target> |
| 823 |
<target refid="image-target-2"></target> |
| 824 |
<target refid="image-target-3"></target> |
| 825 |
<image ids="image-target-3 image-target-2 image-target-1" names="image\ target\ 3 image\ target\ 2 image\ target\ 1" uri="../../../docs/user/rst/images/biohazard.png"></image> |
| 826 |
<paragraph>A centered image:</paragraph> |
| 827 |
<image align="center" uri="../../../docs/user/rst/images/biohazard.png"></image> |
| 828 |
<paragraph>A left-aligned image:</paragraph> |
| 829 |
<image align="left" uri="../../../docs/user/rst/images/biohazard.png"></image> |
| 830 |
<paragraph>This paragraph might flow around the image. |
| 831 |
The specific behavior depends upon the style sheet and |
| 832 |
the browser or rendering software used.</paragraph> |
| 833 |
<paragraph>A right-aligned image:</paragraph> |
| 834 |
<image align="right" uri="../../../docs/user/rst/images/biohazard.png"></image> |
| 835 |
<paragraph>This paragraph might flow around the image. |
| 836 |
The specific behavior depends upon the style sheet and |
| 837 |
the browser or rendering software used.</paragraph> |
| 838 |
<paragraph>For inline images see <reference name="Substitution Definitions" refid="substitution-definitions">Substitution Definitions</reference>.</paragraph> |
| 839 |
<paragraph>Image size:</paragraph> |
| 840 |
<paragraph>An image 2 em wide:</paragraph> |
| 841 |
<image uri="../../../docs/user/rst/images/biohazard.png" width="2em"></image> |
| 842 |
<paragraph>An image 2 cm wide and 15 pixel high:</paragraph> |
| 843 |
<image height="15px" uri="../../../docs/user/rst/images/biohazard.png" width="2cm"></image> |
| 844 |
<paragraph>Relative units allow adaption of the image to the screen or paper size. |
| 845 |
An image occupying 50% of the line width:</paragraph> |
| 846 |
<image uri="../../../docs/user/rst/images/title.png" width="50%"></image> |
| 847 |
<paragraph>A <emphasis>figure</emphasis> is an image with a caption and/or a legend. With page-based output |
| 848 |
media, figures might float to a different position if this helps the page |
| 849 |
layout.</paragraph> |
| 850 |
<figure classes="figclass1 figclass2"> |
| 851 |
<reference refuri="https://docutils.sourceforge.io/rst.html"><image alt="reStructuredText, the markup syntax" classes="class1 class2" uri="../../../docs/user/rst/images/title.png" width="258"></image></reference> |
| 852 |
<caption>Plaintext markup syntax and parser system.</caption> |
| 853 |
<legend> |
| 854 |
<table> |
| 855 |
<tgroup cols="2"> |
| 856 |
<colspec colwidth="12"></colspec> |
| 857 |
<colspec colwidth="47"></colspec> |
| 858 |
<tbody> |
| 859 |
<row> |
| 860 |
<entry> |
| 861 |
<paragraph>re</paragraph> |
| 862 |
</entry> |
| 863 |
<entry> |
| 864 |
<paragraph>Revised, revisited, based on 're' module.</paragraph> |
| 865 |
</entry> |
| 866 |
</row> |
| 867 |
<row> |
| 868 |
<entry> |
| 869 |
<paragraph>Structured</paragraph> |
| 870 |
</entry> |
| 871 |
<entry> |
| 872 |
<paragraph>Structure-enhanced text, structuredtext.</paragraph> |
| 873 |
</entry> |
| 874 |
</row> |
| 875 |
<row> |
| 876 |
<entry> |
| 877 |
<paragraph>Text</paragraph> |
| 878 |
</entry> |
| 879 |
<entry> |
| 880 |
<paragraph>Well it is, isn't it?</paragraph> |
| 881 |
</entry> |
| 882 |
</row> |
| 883 |
</tbody> |
| 884 |
</tgroup> |
| 885 |
</table> |
| 886 |
<paragraph>This paragraph is also part of the legend.</paragraph> |
| 887 |
</legend> |
| 888 |
</figure> |
| 889 |
<paragraph>A left-aligned figure, 70% wide:</paragraph> |
| 890 |
<figure align="left" classes="figclass1 figclass2" width="70%"> |
| 891 |
<image alt="reStructuredText, the markup syntax" classes="class1 class2" uri="../../../docs/user/rst/images/biohazard.png" width="40px"></image> |
| 892 |
<caption classes="captionclass1 captionclass2" ids="caption-label" names="caption-label">This is the caption.</caption> |
| 893 |
<legend> |
| 894 |
<paragraph>This is the legend.</paragraph> |
| 895 |
<paragraph>The legend may consist of several paragraphs.</paragraph> |
| 896 |
</legend> |
| 897 |
</figure> |
| 898 |
<paragraph>This paragraph might flow around the figure.</paragraph> |
| 899 |
<paragraph>The specific behavior depends upon the style sheet and the browser or |
| 900 |
rendering software used.</paragraph> |
| 901 |
<paragraph>A centred figure, 40% wide:</paragraph> |
| 902 |
<figure align="center" width="40%"> |
| 903 |
<image uri="../../../docs/user/rst/images/biohazard.png" width="40px"></image> |
| 904 |
<caption>This is the caption.</caption> |
| 905 |
<legend> |
| 906 |
<paragraph>This is the legend.</paragraph> |
| 907 |
<paragraph>The legend may consist of several paragraphs.</paragraph> |
| 908 |
</legend> |
| 909 |
</figure> |
| 910 |
<paragraph>This paragraph might flow around the figure.</paragraph> |
| 911 |
<paragraph>The specific behavior depends upon the style sheet and the browser or |
| 912 |
rendering software used.</paragraph> |
| 913 |
<paragraph>A right-aligned figure:</paragraph> |
| 914 |
<figure align="right"> |
| 915 |
<image uri="../../../docs/user/rst/images/biohazard.png" width="40px"></image> |
| 916 |
<caption>This is the caption.</caption> |
| 917 |
<legend> |
| 918 |
<paragraph>This is the legend.</paragraph> |
| 919 |
<paragraph>The legend may consist of several paragraphs.</paragraph> |
| 920 |
</legend> |
| 921 |
</figure> |
| 922 |
<paragraph>This paragraph might flow around the figure. The specific behavior depends |
| 923 |
upon the style sheet and the browser or rendering software used.</paragraph> |
| 924 |
</section> |
| 925 |
<section ids="tables" names="tables"> |
| 926 |
<title auto="1" refid="toc-entry-45"><generated classes="sectnum">2.14.3 </generated>Tables</title> |
| 927 |
<paragraph>Tables may be given titles and additional arguments with the <emphasis>table</emphasis> |
| 928 |
directive:</paragraph> |
| 929 |
<table align="left"> |
| 930 |
<title>left-aligned table</title> |
| 931 |
<tgroup cols="2"> |
| 932 |
<colspec colwidth="5"></colspec> |
| 933 |
<colspec colwidth="5"></colspec> |
| 934 |
<thead> |
| 935 |
<row> |
| 936 |
<entry> |
| 937 |
<paragraph>A</paragraph> |
| 938 |
</entry> |
| 939 |
<entry> |
| 940 |
<paragraph>not A</paragraph> |
| 941 |
</entry> |
| 942 |
</row> |
| 943 |
</thead> |
| 944 |
<tbody> |
| 945 |
<row> |
| 946 |
<entry> |
| 947 |
<paragraph>False</paragraph> |
| 948 |
</entry> |
| 949 |
<entry> |
| 950 |
<paragraph>True</paragraph> |
| 951 |
</entry> |
| 952 |
</row> |
| 953 |
<row> |
| 954 |
<entry> |
| 955 |
<paragraph>True</paragraph> |
| 956 |
</entry> |
| 957 |
<entry> |
| 958 |
<paragraph>False</paragraph> |
| 959 |
</entry> |
| 960 |
</row> |
| 961 |
</tbody> |
| 962 |
</tgroup> |
| 963 |
</table> |
| 964 |
<table align="center"> |
| 965 |
<title>center-aligned table</title> |
| 966 |
<tgroup cols="2"> |
| 967 |
<colspec colwidth="5"></colspec> |
| 968 |
<colspec colwidth="5"></colspec> |
| 969 |
<thead> |
| 970 |
<row> |
| 971 |
<entry> |
| 972 |
<paragraph>A</paragraph> |
| 973 |
</entry> |
| 974 |
<entry> |
| 975 |
<paragraph>not A</paragraph> |
| 976 |
</entry> |
| 977 |
</row> |
| 978 |
</thead> |
| 979 |
<tbody> |
| 980 |
<row> |
| 981 |
<entry> |
| 982 |
<paragraph>False</paragraph> |
| 983 |
</entry> |
| 984 |
<entry> |
| 985 |
<paragraph>True</paragraph> |
| 986 |
</entry> |
| 987 |
</row> |
| 988 |
<row> |
| 989 |
<entry> |
| 990 |
<paragraph>True</paragraph> |
| 991 |
</entry> |
| 992 |
<entry> |
| 993 |
<paragraph>False</paragraph> |
| 994 |
</entry> |
| 995 |
</row> |
| 996 |
</tbody> |
| 997 |
</tgroup> |
| 998 |
</table> |
| 999 |
<table align="right"> |
| 1000 |
<title>right-aligned table</title> |
| 1001 |
<tgroup cols="2"> |
| 1002 |
<colspec colwidth="5"></colspec> |
| 1003 |
<colspec colwidth="5"></colspec> |
| 1004 |
<thead> |
| 1005 |
<row> |
| 1006 |
<entry> |
| 1007 |
<paragraph>A</paragraph> |
| 1008 |
</entry> |
| 1009 |
<entry> |
| 1010 |
<paragraph>not A</paragraph> |
| 1011 |
</entry> |
| 1012 |
</row> |
| 1013 |
</thead> |
| 1014 |
<tbody> |
| 1015 |
<row> |
| 1016 |
<entry> |
| 1017 |
<paragraph>False</paragraph> |
| 1018 |
</entry> |
| 1019 |
<entry> |
| 1020 |
<paragraph>True</paragraph> |
| 1021 |
</entry> |
| 1022 |
</row> |
| 1023 |
<row> |
| 1024 |
<entry> |
| 1025 |
<paragraph>True</paragraph> |
| 1026 |
</entry> |
| 1027 |
<entry> |
| 1028 |
<paragraph>False</paragraph> |
| 1029 |
</entry> |
| 1030 |
</row> |
| 1031 |
</tbody> |
| 1032 |
</tgroup> |
| 1033 |
</table> |
| 1034 |
<paragraph>With the "widths" argument "auto" (or "class" value "colwidths-auto"), |
| 1035 |
column widths are determined by the backend (if supported by the |
| 1036 |
writer/backend).</paragraph> |
| 1037 |
<target refid="target1"></target> |
| 1038 |
<target refid="target2"></target> |
| 1039 |
<table classes="colwidths-auto" ids="target2 target1" names="target2 target1"> |
| 1040 |
<tgroup cols="3"> |
| 1041 |
<colspec colwidth="7"></colspec> |
| 1042 |
<colspec colwidth="7"></colspec> |
| 1043 |
<colspec colwidth="10"></colspec> |
| 1044 |
<thead> |
| 1045 |
<row> |
| 1046 |
<entry> |
| 1047 |
<paragraph>A</paragraph> |
| 1048 |
</entry> |
| 1049 |
<entry> |
| 1050 |
<paragraph>B</paragraph> |
| 1051 |
</entry> |
| 1052 |
<entry> |
| 1053 |
<paragraph>A or B</paragraph> |
| 1054 |
</entry> |
| 1055 |
</row> |
| 1056 |
</thead> |
| 1057 |
<tbody> |
| 1058 |
<row> |
| 1059 |
<entry> |
| 1060 |
<paragraph>False</paragraph> |
| 1061 |
</entry> |
| 1062 |
<entry> |
| 1063 |
<paragraph>False</paragraph> |
| 1064 |
</entry> |
| 1065 |
<entry> |
| 1066 |
<paragraph>False</paragraph> |
| 1067 |
</entry> |
| 1068 |
</row> |
| 1069 |
<row> |
| 1070 |
<entry> |
| 1071 |
<paragraph>True</paragraph> |
| 1072 |
</entry> |
| 1073 |
<entry> |
| 1074 |
<paragraph>False</paragraph> |
| 1075 |
</entry> |
| 1076 |
<entry> |
| 1077 |
<paragraph>True</paragraph> |
| 1078 |
</entry> |
| 1079 |
</row> |
| 1080 |
<row> |
| 1081 |
<entry> |
| 1082 |
<paragraph>False</paragraph> |
| 1083 |
</entry> |
| 1084 |
<entry> |
| 1085 |
<paragraph>True</paragraph> |
| 1086 |
</entry> |
| 1087 |
<entry> |
| 1088 |
<paragraph>True</paragraph> |
| 1089 |
</entry> |
| 1090 |
</row> |
| 1091 |
<row> |
| 1092 |
<entry> |
| 1093 |
<paragraph>True</paragraph> |
| 1094 |
</entry> |
| 1095 |
<entry> |
| 1096 |
<paragraph>True</paragraph> |
| 1097 |
</entry> |
| 1098 |
<entry> |
| 1099 |
<paragraph>True</paragraph> |
| 1100 |
</entry> |
| 1101 |
</row> |
| 1102 |
</tbody> |
| 1103 |
</tgroup> |
| 1104 |
</table> |
| 1105 |
</section> |
| 1106 |
<section ids="admonitions" names="admonitions"> |
| 1107 |
<title auto="1" refid="toc-entry-46"><generated classes="sectnum">2.14.4 </generated>Admonitions</title> |
| 1108 |
<attention> |
| 1109 |
<paragraph>Directives at large.</paragraph> |
| 1110 |
</attention> |
| 1111 |
<caution> |
| 1112 |
<paragraph>Don't take any wooden nickels.</paragraph> |
| 1113 |
</caution> |
| 1114 |
<danger> |
| 1115 |
<paragraph>Mad scientist at work!</paragraph> |
| 1116 |
</danger> |
| 1117 |
<error> |
| 1118 |
<paragraph>Does not compute.</paragraph> |
| 1119 |
</error> |
| 1120 |
<hint> |
| 1121 |
<paragraph>It's bigger than a bread box.</paragraph> |
| 1122 |
</hint> |
| 1123 |
<important> |
| 1124 |
<bullet_list bullet="-"> |
| 1125 |
<list_item> |
| 1126 |
<paragraph>Wash behind your ears.</paragraph> |
| 1127 |
</list_item> |
| 1128 |
<list_item> |
| 1129 |
<paragraph>Clean up your room.</paragraph> |
| 1130 |
</list_item> |
| 1131 |
<list_item> |
| 1132 |
<paragraph>Call your mother.</paragraph> |
| 1133 |
</list_item> |
| 1134 |
<list_item> |
| 1135 |
<paragraph>Back up your data.</paragraph> |
| 1136 |
</list_item> |
| 1137 |
</bullet_list> |
| 1138 |
</important> |
| 1139 |
<note> |
| 1140 |
<paragraph>This is a note.</paragraph> |
| 1141 |
</note> |
| 1142 |
<tip> |
| 1143 |
<paragraph>15% if the service is good.</paragraph> |
| 1144 |
</tip> |
| 1145 |
<warning> |
| 1146 |
<paragraph>Strong prose may provoke extreme mental exertion. |
| 1147 |
Reader discretion is strongly advised.</paragraph> |
| 1148 |
</warning> |
| 1149 |
<admonition classes="admonition-and-by-the-way"> |
| 1150 |
<title>And, by the way...</title> |
| 1151 |
<paragraph>You can make up your own admonition too.</paragraph> |
| 1152 |
<target ids="docutils" names="docutils" refuri="https://docutils.sourceforge.io/"></target> |
| 1153 |
</admonition> |
| 1154 |
</section> |
| 1155 |
<section ids="topics-sidebars-and-rubrics" names="topics,\ sidebars,\ and\ rubrics"> |
| 1156 |
<title auto="1" refid="toc-entry-47"><generated classes="sectnum">2.14.5 </generated>Topics, Sidebars, and Rubrics</title> |
| 1157 |
<paragraph><emphasis>Sidebars</emphasis> are like miniature, parallel documents.</paragraph> |
| 1158 |
<sidebar> |
| 1159 |
<title>Optional Sidebar Title</title> |
| 1160 |
<subtitle>Optional Subtitle</subtitle> |
| 1161 |
<paragraph>This is a sidebar. It is for text outside the flow of the main |
| 1162 |
text.</paragraph> |
| 1163 |
<rubric>This is a rubric inside a sidebar</rubric> |
| 1164 |
<paragraph>Sidebars often appear beside the main text with a border and a different |
| 1165 |
background or font color.</paragraph> |
| 1166 |
</sidebar> |
| 1167 |
<paragraph>A <emphasis>topic</emphasis> is like a block quote with a title, or a self-contained section |
| 1168 |
with no subsections.</paragraph> |
| 1169 |
<topic> |
| 1170 |
<title>Topic Title</title> |
| 1171 |
<paragraph>This is a topic.</paragraph> |
| 1172 |
</topic> |
| 1173 |
<paragraph>A <emphasis>rubric</emphasis> is like an informal heading that doesn't correspond to the |
| 1174 |
document's structure. It is typically highlighted in red (hence the name).</paragraph> |
| 1175 |
<rubric>This is a rubric</rubric> |
| 1176 |
<paragraph>Topics and rubrics can be used at places where a <reference name="section title" refid="section-title">section title</reference> is not |
| 1177 |
allowed (e.g. inside a directive).</paragraph> |
| 1178 |
</section> |
| 1179 |
<section ids="target-footnotes" names="target\ footnotes"> |
| 1180 |
<title auto="1" refid="toc-entry-48"><generated classes="sectnum">2.14.6 </generated>Target Footnotes</title> |
| 1181 |
<footnote auto="1" backrefs="footnote-reference-10 footnote-reference-11 footnote-reference-12 footnote-reference-14" ids="footnote-6" names="TARGET_NOTE:\ footnote-6"> |
| 1182 |
<label>5</label> |
| 1183 |
<paragraph><reference refuri="http://www.python.org/">http://www.python.org/</reference></paragraph> |
| 1184 |
</footnote> |
| 1185 |
<footnote auto="1" backrefs="footnote-reference-13" ids="footnote-7" names="TARGET_NOTE:\ footnote-7"> |
| 1186 |
<label>6</label> |
| 1187 |
<paragraph><reference refuri="http://pygments.org/">http://pygments.org/</reference></paragraph> |
| 1188 |
</footnote> |
| 1189 |
<footnote auto="1" backrefs="footnote-reference-15" ids="footnote-8" names="TARGET_NOTE:\ footnote-8"> |
| 1190 |
<label>7</label> |
| 1191 |
<paragraph><reference refuri="https://docutils.sourceforge.io/">https://docutils.sourceforge.io/</reference></paragraph> |
| 1192 |
</footnote> |
| 1193 |
<footnote auto="1" backrefs="footnote-reference-16" ids="footnote-9" names="TARGET_NOTE:\ footnote-9"> |
| 1194 |
<label>8</label> |
| 1195 |
<paragraph><reference refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html">https://docutils.sourceforge.io/docs/ref/rst/directives.html</reference></paragraph> |
| 1196 |
</footnote> |
| 1197 |
<footnote auto="1" backrefs="footnote-reference-17" ids="footnote-10" names="TARGET_NOTE:\ footnote-10"> |
| 1198 |
<label>9</label> |
| 1199 |
<paragraph><reference refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata</reference></paragraph> |
| 1200 |
</footnote> |
| 1201 |
</section> |
| 1202 |
<section ids="replacement-text" names="replacement\ text"> |
| 1203 |
<title auto="1" refid="toc-entry-49"><generated classes="sectnum">2.14.7 </generated>Replacement Text</title> |
| 1204 |
<paragraph>I recommend you try <reference refuri="http://www.python.org/">Python, <emphasis>the</emphasis> best language around</reference> <footnote_reference auto="1" ids="footnote-reference-12" refid="footnote-6">5</footnote_reference>.</paragraph> |
| 1205 |
<substitution_definition names="Python">Python, <emphasis>the</emphasis> best language around</substitution_definition> |
| 1206 |
</section> |
| 1207 |
<section ids="compound-paragraph" names="compound\ paragraph"> |
| 1208 |
<title auto="1" refid="toc-entry-50"><generated classes="sectnum">2.14.8 </generated>Compound Paragraph</title> |
| 1209 |
<paragraph>The <emphasis>compound</emphasis> directive is used to create a "compound paragraph", which |
| 1210 |
is a single logical paragraph containing multiple physical body |
| 1211 |
elements. For example:</paragraph> |
| 1212 |
<compound> |
| 1213 |
<paragraph>The 'rm' command is very dangerous. If you are logged |
| 1214 |
in as root and enter</paragraph> |
| 1215 |
<literal_block xml:space="preserve">cd / |
| 1216 |
rm -rf *</literal_block> |
| 1217 |
<paragraph>you will erase the entire contents of your file system.</paragraph> |
| 1218 |
</compound> |
| 1219 |
<paragraph>Test the handling and display of compound paragraphs:</paragraph> |
| 1220 |
<compound classes="some-class"> |
| 1221 |
<paragraph>Compound 2, paragraph 1,</paragraph> |
| 1222 |
<paragraph>compound 2, paragraph 2,</paragraph> |
| 1223 |
<bullet_list bullet="*"> |
| 1224 |
<list_item> |
| 1225 |
<paragraph>list item 1,</paragraph> |
| 1226 |
</list_item> |
| 1227 |
<list_item> |
| 1228 |
<paragraph>list item 2,</paragraph> |
| 1229 |
</list_item> |
| 1230 |
</bullet_list> |
| 1231 |
<paragraph>compound 2, paragraph 3.</paragraph> |
| 1232 |
</compound> |
| 1233 |
<compound> |
| 1234 |
<paragraph>Compound 3, only consisting of one paragraph.</paragraph> |
| 1235 |
</compound> |
| 1236 |
<compound> |
| 1237 |
<literal_block xml:space="preserve">Compound 4. |
| 1238 |
This one starts with a literal block.</literal_block> |
| 1239 |
<paragraph>Compound 4, paragraph following the literal block.</paragraph> |
| 1240 |
</compound> |
| 1241 |
<paragraph>Now something <emphasis>really</emphasis> perverted -- a nested compound block. This is |
| 1242 |
just to test that it works at all; the results don't have to be |
| 1243 |
meaningful.</paragraph> |
| 1244 |
<compound> |
| 1245 |
<paragraph>Compound 5, block 1 (a paragraph).</paragraph> |
| 1246 |
<compound> |
| 1247 |
<paragraph>Compound 6 is block 2 in compound 5.</paragraph> |
| 1248 |
<paragraph>Compound 6, another paragraph.</paragraph> |
| 1249 |
</compound> |
| 1250 |
<paragraph>Compound 5, block 3 (a paragraph).</paragraph> |
| 1251 |
</compound> |
| 1252 |
<compound> |
| 1253 |
<paragraph>Compound 7, tests the inclusion of various block-level |
| 1254 |
elements in one logical paragraph. First a table,</paragraph> |
| 1255 |
<table> |
| 1256 |
<tgroup cols="3"> |
| 1257 |
<colspec colwidth="20"></colspec> |
| 1258 |
<colspec colwidth="20"></colspec> |
| 1259 |
<colspec colwidth="20"></colspec> |
| 1260 |
<tbody> |
| 1261 |
<row> |
| 1262 |
<entry> |
| 1263 |
<paragraph>Left cell, first |
| 1264 |
paragraph.</paragraph> |
| 1265 |
<paragraph>Left cell, second |
| 1266 |
paragraph.</paragraph> |
| 1267 |
</entry> |
| 1268 |
<entry> |
| 1269 |
<paragraph>Middle cell, |
| 1270 |
consisting of |
| 1271 |
exactly one |
| 1272 |
paragraph.</paragraph> |
| 1273 |
</entry> |
| 1274 |
<entry> |
| 1275 |
<paragraph>Right cell.</paragraph> |
| 1276 |
<paragraph>Paragraph 2.</paragraph> |
| 1277 |
<paragraph>Paragraph 3.</paragraph> |
| 1278 |
</entry> |
| 1279 |
</row> |
| 1280 |
</tbody> |
| 1281 |
</tgroup> |
| 1282 |
</table> |
| 1283 |
<paragraph>followed by a paragraph. This physical paragraph is |
| 1284 |
actually a continuation of the paragraph before the table. It is followed |
| 1285 |
by</paragraph> |
| 1286 |
<block_quote> |
| 1287 |
<paragraph>a quote and</paragraph> |
| 1288 |
</block_quote> |
| 1289 |
<enumerated_list enumtype="arabic" prefix="" suffix="."> |
| 1290 |
<list_item> |
| 1291 |
<paragraph>an enumerated list,</paragraph> |
| 1292 |
</list_item> |
| 1293 |
</enumerated_list> |
| 1294 |
<paragraph>a paragraph,</paragraph> |
| 1295 |
<option_list> |
| 1296 |
<option_list_item> |
| 1297 |
<option_group> |
| 1298 |
<option> |
| 1299 |
<option_string>--an</option_string> |
| 1300 |
</option> |
| 1301 |
</option_group> |
| 1302 |
<description> |
| 1303 |
<paragraph>option list,</paragraph> |
| 1304 |
</description> |
| 1305 |
</option_list_item> |
| 1306 |
</option_list> |
| 1307 |
<paragraph>a paragraph,</paragraph> |
| 1308 |
<field_list> |
| 1309 |
<field> |
| 1310 |
<field_name>a field</field_name> |
| 1311 |
<field_body> |
| 1312 |
<paragraph>list,</paragraph> |
| 1313 |
</field_body> |
| 1314 |
</field> |
| 1315 |
</field_list> |
| 1316 |
<paragraph>a paragraph,</paragraph> |
| 1317 |
<definition_list> |
| 1318 |
<definition_list_item> |
| 1319 |
<term>a definition</term> |
| 1320 |
<definition> |
| 1321 |
<paragraph>list,</paragraph> |
| 1322 |
</definition> |
| 1323 |
</definition_list_item> |
| 1324 |
</definition_list> |
| 1325 |
<paragraph>a paragraph, an image:</paragraph> |
| 1326 |
<image uri="../../../docs/user/rst/images/biohazard.png"></image> |
| 1327 |
<paragraph>a paragraph,</paragraph> |
| 1328 |
<line_block> |
| 1329 |
<line>a line</line> |
| 1330 |
<line>block,</line> |
| 1331 |
</line_block> |
| 1332 |
<paragraph>a paragraph followed by a comment,</paragraph> |
| 1333 |
<comment xml:space="preserve">this is a comment</comment> |
| 1334 |
<paragraph>a paragraph, a</paragraph> |
| 1335 |
<note> |
| 1336 |
<paragraph>with content</paragraph> |
| 1337 |
</note> |
| 1338 |
<paragraph>and the final paragraph of the compound 7.</paragraph> |
| 1339 |
</compound> |
| 1340 |
</section> |
| 1341 |
<section ids="parsed-literal-blocks" names="parsed\ literal\ blocks"> |
| 1342 |
<title auto="1" refid="toc-entry-51"><generated classes="sectnum">2.14.9 </generated>Parsed Literal Blocks</title> |
| 1343 |
<literal_block xml:space="preserve">This is a parsed literal block. |
| 1344 |
This line is indented. The next line is blank. |
| 1345 |
|
| 1346 |
Inline markup is supported, e.g. <emphasis>emphasis</emphasis>, <strong>strong</strong>, <literal>literal |
| 1347 |
text</literal>, <subscript>sub-</subscript> and <superscript>super</superscript>scripts, |
| 1348 |
inline formulas: <math>A = 2 \pi r^2</math>, |
| 1349 |
footnotes <footnote_reference ids="footnote-reference-9" refid="footnote-1">1</footnote_reference>, <target ids="hyperlink-targets" names="hyperlink\ targets">hyperlink targets</target>, and <reference name="references" refuri="http://www.python.org/">references</reference><target ids="references" names="references" refuri="http://www.python.org/"></target>.</literal_block> |
| 1350 |
</section> |
| 1351 |
<section ids="code" names="code"> |
| 1352 |
<title auto="1" refid="toc-entry-52"><generated classes="sectnum">2.14.10 </generated>Code</title> |
| 1353 |
<paragraph>Blocks of source code can be set with the <title_reference>code</title_reference> directive. If the code |
| 1354 |
language is specified, the content is parsed and tagged by the <reference name="Pygments" refuri="http://pygments.org/">Pygments</reference> <footnote_reference auto="1" ids="footnote-reference-13" refid="footnote-7">6</footnote_reference> |
| 1355 |
syntax highlighter and can be formatted with a style sheet. (Code parsing |
| 1356 |
is turned off using the <literal>syntax-highlight</literal> config setting in the test |
| 1357 |
conversions in order to get identical results with/without installed |
| 1358 |
Pygments highlighter.)</paragraph> |
| 1359 |
<literal_block classes="code python" xml:space="preserve">print 'This is Python code.'</literal_block> |
| 1360 |
<paragraph>The <literal>:number-lines:</literal> option (with optional start value) generates line |
| 1361 |
numbers:</paragraph> |
| 1362 |
<literal_block classes="code python" xml:space="preserve"><inline classes="ln"> 8 </inline># print integers from 0 to 9: |
| 1363 |
<inline classes="ln"> 9 </inline>for i in range(10): |
| 1364 |
<inline classes="ln">10 </inline> print i</literal_block> |
| 1365 |
<paragraph>For inline code snippets, there is the <title_reference>code</title_reference> role, which can be used |
| 1366 |
directly (the code will not be parsed/tagged, as the language is not known) |
| 1367 |
or as base for special code roles, e.g. the LaTeX code in the next |
| 1368 |
paragraph.</paragraph> |
| 1369 |
<paragraph>Docutils uses LaTeX syntax for math directives and roles: |
| 1370 |
<literal classes="code tex">\alpha = f(x)</literal> prints <math>\alpha = f(x)</math>.</paragraph> |
| 1371 |
<paragraph>The <literal>:code:</literal> option of the <title_reference>include</title_reference> directive sets the included content |
| 1372 |
as a code block, here the rst file <literal>header_footer.rst</literal> with line numbers:</paragraph> |
| 1373 |
<literal_block classes="code rst" source="functional/input/data/header_footer.rst" xml:space="preserve"><inline classes="ln">1 </inline>.. header:: Document header |
| 1374 |
<inline classes="ln">2 </inline>.. footer:: Document footer</literal_block> |
| 1375 |
<target ids="pygments" names="pygments" refuri="http://pygments.org/"></target> |
| 1376 |
</section> |
| 1377 |
<section ids="meta" names="meta"> |
| 1378 |
<title auto="1" refid="toc-entry-53"><generated classes="sectnum">2.14.11 </generated>Meta</title> |
| 1379 |
<paragraph>The <reference anonymous="1" name="“meta” directive" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">“meta” directive</reference> <footnote_reference auto="1" ids="footnote-reference-17" refid="footnote-10">9</footnote_reference> is used to specify metadata to be stored in, |
| 1380 |
e.g., HTML META tags or ODT file properties.</paragraph> |
| 1381 |
<target anonymous="1" ids="target-6" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata"></target> |
| 1382 |
</section> |
| 1383 |
</section> |
| 1384 |
<section ids="substitution-definitions" names="substitution\ definitions"> |
| 1385 |
<title auto="1" refid="toc-entry-34"><generated classes="sectnum">2.15 </generated>Substitution Definitions</title> |
| 1386 |
<paragraph>An inline image (<image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"></image>) example:</paragraph> |
| 1387 |
<substitution_definition names="EXAMPLE"><image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"></image></substitution_definition> |
| 1388 |
<paragraph>A Unicode example:</paragraph> |
| 1389 |
<substitution_definition ltrim="1" names="heart" rtrim="1">♥</substitution_definition> |
| 1390 |
<paragraph>(Substitution definitions are only visible in the rST source.)</paragraph> |
| 1391 |
</section> |
| 1392 |
<section ids="comments" names="comments"> |
| 1393 |
<title auto="1" refid="toc-entry-35"><generated classes="sectnum">2.16 </generated>Comments</title> |
| 1394 |
<paragraph>Here's one:</paragraph> |
| 1395 |
<comment xml:space="preserve">Comments begin with two dots and a space. Anything may |
| 1396 |
follow, except for the syntax of footnotes, hyperlink |
| 1397 |
targets, directives, or substitution definitions. |
| 1398 |
|
| 1399 |
Double-dashes -- "--" -- must be escaped somehow in HTML output. |
| 1400 |
|
| 1401 |
Comments may contain non-ASCII characters: ä ö ü æ ø å</comment> |
| 1402 |
<paragraph>(View the HTML/LaTeX/... source to see the comment.)</paragraph> |
| 1403 |
</section> |
| 1404 |
<section ids="raw-text" names="raw\ text"> |
| 1405 |
<title auto="1" refid="toc-entry-36"><generated classes="sectnum">2.17 </generated>Raw text</title> |
| 1406 |
<paragraph>This does not necessarily look nice, because there may be missing white space.</paragraph> |
| 1407 |
<paragraph>It's just there to freeze the behavior.</paragraph> |
| 1408 |
<raw format="html latex" xml:space="preserve">A test.</raw> |
| 1409 |
<raw format="html latex" xml:space="preserve">Second test.</raw> |
| 1410 |
<raw classes="myclass" format="html latex" xml:space="preserve">Another test with myclass set.</raw> |
| 1411 |
<paragraph>This is the <raw classes="myrawroleclass" format="html latex" xml:space="preserve">fourth test</raw> with myrawroleclass set.</paragraph> |
| 1412 |
<raw format="html" xml:space="preserve">Fifth test in HTML.<br />Line two.</raw> |
| 1413 |
<raw format="latex" xml:space="preserve">Fifth test in LaTeX.\\Line two.</raw> |
| 1414 |
</section> |
| 1415 |
<section ids="container" names="container"> |
| 1416 |
<title auto="1" refid="toc-entry-37"><generated classes="sectnum">2.18 </generated>Container</title> |
| 1417 |
<container classes="custom"> |
| 1418 |
<paragraph>paragraph 1</paragraph> |
| 1419 |
<paragraph>paragraph 2</paragraph> |
| 1420 |
</container> |
| 1421 |
</section> |
| 1422 |
<section ids="colspanning-tables" names="colspanning\ tables"> |
| 1423 |
<title auto="1" refid="toc-entry-38"><generated classes="sectnum">2.19 </generated>Colspanning tables</title> |
| 1424 |
<paragraph>This table has a cell spanning two columns:</paragraph> |
| 1425 |
<table> |
| 1426 |
<tgroup cols="3"> |
| 1427 |
<colspec colwidth="5"></colspec> |
| 1428 |
<colspec colwidth="5"></colspec> |
| 1429 |
<colspec colwidth="6"></colspec> |
| 1430 |
<thead> |
| 1431 |
<row> |
| 1432 |
<entry morecols="1"> |
| 1433 |
<paragraph>Inputs</paragraph> |
| 1434 |
</entry> |
| 1435 |
<entry> |
| 1436 |
<paragraph>Output</paragraph> |
| 1437 |
</entry> |
| 1438 |
</row> |
| 1439 |
<row> |
| 1440 |
<entry> |
| 1441 |
<paragraph>A</paragraph> |
| 1442 |
</entry> |
| 1443 |
<entry> |
| 1444 |
<paragraph>B</paragraph> |
| 1445 |
</entry> |
| 1446 |
<entry> |
| 1447 |
<paragraph>A or B</paragraph> |
| 1448 |
</entry> |
| 1449 |
</row> |
| 1450 |
</thead> |
| 1451 |
<tbody> |
| 1452 |
<row> |
| 1453 |
<entry> |
| 1454 |
<paragraph>False</paragraph> |
| 1455 |
</entry> |
| 1456 |
<entry> |
| 1457 |
<paragraph>False</paragraph> |
| 1458 |
</entry> |
| 1459 |
<entry> |
| 1460 |
<paragraph>False</paragraph> |
| 1461 |
</entry> |
| 1462 |
</row> |
| 1463 |
<row> |
| 1464 |
<entry> |
| 1465 |
<paragraph>True</paragraph> |
| 1466 |
</entry> |
| 1467 |
<entry> |
| 1468 |
<paragraph>False</paragraph> |
| 1469 |
</entry> |
| 1470 |
<entry> |
| 1471 |
<paragraph>True</paragraph> |
| 1472 |
</entry> |
| 1473 |
</row> |
| 1474 |
<row> |
| 1475 |
<entry> |
| 1476 |
<paragraph>False</paragraph> |
| 1477 |
</entry> |
| 1478 |
<entry> |
| 1479 |
<paragraph>True</paragraph> |
| 1480 |
</entry> |
| 1481 |
<entry> |
| 1482 |
<paragraph>True</paragraph> |
| 1483 |
</entry> |
| 1484 |
</row> |
| 1485 |
<row> |
| 1486 |
<entry> |
| 1487 |
<paragraph>True</paragraph> |
| 1488 |
</entry> |
| 1489 |
<entry> |
| 1490 |
<paragraph>True</paragraph> |
| 1491 |
</entry> |
| 1492 |
<entry> |
| 1493 |
<paragraph>True</paragraph> |
| 1494 |
</entry> |
| 1495 |
</row> |
| 1496 |
</tbody> |
| 1497 |
</tgroup> |
| 1498 |
</table> |
| 1499 |
</section> |
| 1500 |
<section ids="rowspanning-tables" names="rowspanning\ tables"> |
| 1501 |
<title auto="1" refid="toc-entry-39"><generated classes="sectnum">2.20 </generated>Rowspanning tables</title> |
| 1502 |
<paragraph>Here's a table with cells spanning several rows:</paragraph> |
| 1503 |
<table> |
| 1504 |
<tgroup cols="3"> |
| 1505 |
<colspec colwidth="24"></colspec> |
| 1506 |
<colspec colwidth="12"></colspec> |
| 1507 |
<colspec colwidth="18"></colspec> |
| 1508 |
<thead> |
| 1509 |
<row> |
| 1510 |
<entry> |
| 1511 |
<paragraph>Header row, column 1 |
| 1512 |
(header rows optional)</paragraph> |
| 1513 |
</entry> |
| 1514 |
<entry> |
| 1515 |
<paragraph>Header 2</paragraph> |
| 1516 |
</entry> |
| 1517 |
<entry> |
| 1518 |
<paragraph>Header 3</paragraph> |
| 1519 |
</entry> |
| 1520 |
</row> |
| 1521 |
</thead> |
| 1522 |
<tbody> |
| 1523 |
<row> |
| 1524 |
<entry> |
| 1525 |
<paragraph>body row 1, column 1</paragraph> |
| 1526 |
</entry> |
| 1527 |
<entry> |
| 1528 |
<paragraph>column 2</paragraph> |
| 1529 |
</entry> |
| 1530 |
<entry> |
| 1531 |
<paragraph>column 3</paragraph> |
| 1532 |
</entry> |
| 1533 |
</row> |
| 1534 |
<row> |
| 1535 |
<entry> |
| 1536 |
<paragraph>body row 2</paragraph> |
| 1537 |
</entry> |
| 1538 |
<entry morerows="1"> |
| 1539 |
<paragraph>Cells may |
| 1540 |
span rows.</paragraph> |
| 1541 |
</entry> |
| 1542 |
<entry morerows="1"> |
| 1543 |
<paragraph>Another |
| 1544 |
rowspanning |
| 1545 |
cell.</paragraph> |
| 1546 |
</entry> |
| 1547 |
</row> |
| 1548 |
<row> |
| 1549 |
<entry> |
| 1550 |
<paragraph>body row 3</paragraph> |
| 1551 |
</entry> |
| 1552 |
</row> |
| 1553 |
</tbody> |
| 1554 |
</tgroup> |
| 1555 |
</table> |
| 1556 |
</section> |
| 1557 |
<section ids="complex-tables" names="complex\ tables"> |
| 1558 |
<title auto="1" refid="toc-entry-40"><generated classes="sectnum">2.21 </generated>Complex tables</title> |
| 1559 |
<paragraph>Here's a complex table, which should test all features.</paragraph> |
| 1560 |
<table> |
| 1561 |
<tgroup cols="4"> |
| 1562 |
<colspec colwidth="24"></colspec> |
| 1563 |
<colspec colwidth="12"></colspec> |
| 1564 |
<colspec colwidth="10"></colspec> |
| 1565 |
<colspec colwidth="10"></colspec> |
| 1566 |
<thead> |
| 1567 |
<row> |
| 1568 |
<entry> |
| 1569 |
<paragraph>Header row, column 1 |
| 1570 |
(header rows optional)</paragraph> |
| 1571 |
</entry> |
| 1572 |
<entry> |
| 1573 |
<paragraph>Header 2</paragraph> |
| 1574 |
</entry> |
| 1575 |
<entry> |
| 1576 |
<paragraph>Header 3</paragraph> |
| 1577 |
</entry> |
| 1578 |
<entry> |
| 1579 |
<paragraph>Header 4</paragraph> |
| 1580 |
</entry> |
| 1581 |
</row> |
| 1582 |
</thead> |
| 1583 |
<tbody> |
| 1584 |
<row> |
| 1585 |
<entry> |
| 1586 |
<paragraph>body row 1, column 1</paragraph> |
| 1587 |
</entry> |
| 1588 |
<entry> |
| 1589 |
<paragraph>column 2</paragraph> |
| 1590 |
</entry> |
| 1591 |
<entry> |
| 1592 |
<paragraph>column 3</paragraph> |
| 1593 |
</entry> |
| 1594 |
<entry> |
| 1595 |
<paragraph>column 4</paragraph> |
| 1596 |
</entry> |
| 1597 |
</row> |
| 1598 |
<row> |
| 1599 |
<entry> |
| 1600 |
<paragraph>body row 2</paragraph> |
| 1601 |
</entry> |
| 1602 |
<entry morecols="2"> |
| 1603 |
<paragraph>Cells may span columns.</paragraph> |
| 1604 |
</entry> |
| 1605 |
</row> |
| 1606 |
<row> |
| 1607 |
<entry> |
| 1608 |
<paragraph>body row 3</paragraph> |
| 1609 |
</entry> |
| 1610 |
<entry morerows="1"> |
| 1611 |
<paragraph>Cells may |
| 1612 |
span rows.</paragraph> |
| 1613 |
<paragraph>Paragraph.</paragraph> |
| 1614 |
</entry> |
| 1615 |
<entry morecols="1" morerows="1"> |
| 1616 |
<bullet_list bullet="-"> |
| 1617 |
<list_item> |
| 1618 |
<paragraph>Table cells</paragraph> |
| 1619 |
</list_item> |
| 1620 |
<list_item> |
| 1621 |
<paragraph>contain</paragraph> |
| 1622 |
</list_item> |
| 1623 |
<list_item> |
| 1624 |
<paragraph>body elements.</paragraph> |
| 1625 |
</list_item> |
| 1626 |
</bullet_list> |
| 1627 |
</entry> |
| 1628 |
</row> |
| 1629 |
<row> |
| 1630 |
<entry> |
| 1631 |
<paragraph>body row 4</paragraph> |
| 1632 |
</entry> |
| 1633 |
</row> |
| 1634 |
<row> |
| 1635 |
<entry> |
| 1636 |
<paragraph>body row 5</paragraph> |
| 1637 |
</entry> |
| 1638 |
<entry morecols="1"> |
| 1639 |
<paragraph>Cells may also be |
| 1640 |
empty: <literal>--></literal></paragraph> |
| 1641 |
</entry> |
| 1642 |
<entry> |
| 1643 |
</entry> |
| 1644 |
</row> |
| 1645 |
</tbody> |
| 1646 |
</tgroup> |
| 1647 |
</table> |
| 1648 |
</section> |
| 1649 |
<section ids="list-tables" names="list\ tables"> |
| 1650 |
<title auto="1" refid="toc-entry-41"><generated classes="sectnum">2.22 </generated>List Tables</title> |
| 1651 |
<paragraph>Here's a list table exercising all features:</paragraph> |
| 1652 |
<table classes="colwidths-given test" width="95%"> |
| 1653 |
<title>list table with integral header</title> |
| 1654 |
<tgroup cols="3"> |
| 1655 |
<colspec colwidth="10" stub="1"></colspec> |
| 1656 |
<colspec colwidth="8"></colspec> |
| 1657 |
<colspec colwidth="20"></colspec> |
| 1658 |
<thead> |
| 1659 |
<row> |
| 1660 |
<entry> |
| 1661 |
<paragraph>Treat</paragraph> |
| 1662 |
</entry> |
| 1663 |
<entry> |
| 1664 |
<paragraph>Quantity</paragraph> |
| 1665 |
</entry> |
| 1666 |
<entry> |
| 1667 |
<paragraph>Description</paragraph> |
| 1668 |
</entry> |
| 1669 |
</row> |
| 1670 |
</thead> |
| 1671 |
<tbody> |
| 1672 |
<row> |
| 1673 |
<entry> |
| 1674 |
<paragraph>Albatross</paragraph> |
| 1675 |
</entry> |
| 1676 |
<entry> |
| 1677 |
<paragraph>2.99</paragraph> |
| 1678 |
</entry> |
| 1679 |
<entry> |
| 1680 |
<paragraph>On a stick!</paragraph> |
| 1681 |
</entry> |
| 1682 |
</row> |
| 1683 |
<row> |
| 1684 |
<entry> |
| 1685 |
<paragraph>Crunchy Frog</paragraph> |
| 1686 |
</entry> |
| 1687 |
<entry> |
| 1688 |
<paragraph>1.49</paragraph> |
| 1689 |
</entry> |
| 1690 |
<entry> |
| 1691 |
<paragraph>If we took the bones out, it wouldn't be |
| 1692 |
crunchy, now would it?</paragraph> |
| 1693 |
</entry> |
| 1694 |
</row> |
| 1695 |
<row> |
| 1696 |
<entry> |
| 1697 |
<paragraph>Gannet Ripple</paragraph> |
| 1698 |
</entry> |
| 1699 |
<entry> |
| 1700 |
<paragraph>1.99</paragraph> |
| 1701 |
</entry> |
| 1702 |
<entry> |
| 1703 |
<paragraph>On a stick!</paragraph> |
| 1704 |
</entry> |
| 1705 |
</row> |
| 1706 |
</tbody> |
| 1707 |
</tgroup> |
| 1708 |
</table> |
| 1709 |
<table align="center" classes="colwidths-auto"> |
| 1710 |
<title>center aligned list table</title> |
| 1711 |
<tgroup cols="2"> |
| 1712 |
<colspec colwidth="50"></colspec> |
| 1713 |
<colspec colwidth="50"></colspec> |
| 1714 |
<tbody> |
| 1715 |
<row> |
| 1716 |
<entry> |
| 1717 |
<paragraph>Albatross</paragraph> |
| 1718 |
</entry> |
| 1719 |
<entry> |
| 1720 |
<paragraph>2.99</paragraph> |
| 1721 |
</entry> |
| 1722 |
</row> |
| 1723 |
<row> |
| 1724 |
<entry> |
| 1725 |
<paragraph>Crunchy Frog</paragraph> |
| 1726 |
</entry> |
| 1727 |
<entry> |
| 1728 |
<paragraph>1.49</paragraph> |
| 1729 |
</entry> |
| 1730 |
</row> |
| 1731 |
<row> |
| 1732 |
<entry> |
| 1733 |
<paragraph>Gannet Ripple</paragraph> |
| 1734 |
</entry> |
| 1735 |
<entry> |
| 1736 |
<paragraph>1.99</paragraph> |
| 1737 |
</entry> |
| 1738 |
</row> |
| 1739 |
</tbody> |
| 1740 |
</tgroup> |
| 1741 |
</table> |
| 1742 |
</section> |
| 1743 |
</section> |
| 1744 |
<section ids="error-handling" names="error\ handling"> |
| 1745 |
<title auto="1" refid="toc-entry-42"><generated classes="sectnum">3 </generated>Error Handling</title> |
| 1746 |
<paragraph>Any errors caught during processing will generate system messages.</paragraph> |
| 1747 |
<paragraph>There should be five messages in the following, auto-generated |
| 1748 |
section, "Docutils System Messages":</paragraph> |
| 1749 |
<comment xml:space="preserve">section should be added by Docutils automatically</comment> |
| 1750 |
</section> |
| 1751 |
<section classes="system-messages"> |
| 1752 |
<title>Docutils System Messages</title> |
| 1753 |
<system_message backrefs="problematic-1" ids="system-message-1" level="3" line="99" source="functional/input/data/standard.rst" type="ERROR"> |
| 1754 |
<paragraph>Undefined substitution referenced: "problematic".</paragraph> |
| 1755 |
</system_message> |
| 1756 |
<system_message backrefs="footnote-reference-8" ids="system-message-2" level="3" line="390" source="functional/input/data/standard.rst" type="ERROR"> |
| 1757 |
<paragraph>Unknown target name: "5".</paragraph> |
| 1758 |
</system_message> |
| 1759 |
<system_message backrefs="citation-reference-3" ids="system-message-3" level="3" line="399" source="functional/input/data/standard.rst" type="ERROR"> |
| 1760 |
<paragraph>Unknown target name: "nonexistent".</paragraph> |
| 1761 |
</system_message> |
| 1762 |
<system_message backrefs="problematic-2" ids="system-message-4" level="3" line="426" source="functional/input/data/standard.rst" type="ERROR"> |
| 1763 |
<paragraph>Unknown target name: "hyperlink reference without a target".</paragraph> |
| 1764 |
</system_message> |
| 1765 |
<system_message backrefs="problematic-3" ids="system-message-5" level="3" line="439" source="functional/input/data/standard.rst" type="ERROR"> |
| 1766 |
<paragraph>Duplicate target name, cannot be used as a unique reference: "duplicate target names".</paragraph> |
| 1767 |
</system_message> |
| 1768 |
</section> |
| 1769 |
</document> |