2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
4 <meta charset=
"utf-8"/>
5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
6 <meta name=
"generator" content=
"Docutils 0.18b1: http://docutils.sourceforge.net/" />
7 <title>reStructuredText Test Document
</title>
8 <meta content=
"reStructuredText, test, parser" name=
"keywords" />
9 <meta content=
"A test document, containing at least one example of each reStructuredText construct." lang=
"en" name=
"description" xml:
lang=
"en" />
10 <meta name=
"author" content=
"David Goodger" />
11 <meta name=
"author" content=
"Me" />
12 <meta name=
"author" content=
"Myself" />
13 <meta name=
"author" content=
"I" />
14 <meta name=
"dcterms.date" content=
"Now, or yesterday. Or maybe even before yesterday." />
15 <meta name=
"dcterms.rights" content=
"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." />
16 <link rel=
"schema.dcterms" href=
"http://purl.org/dc/terms/"/>
17 <link rel=
"stylesheet" href=
"../input/data/minimal.css" type=
"text/css" />
18 <link rel=
"stylesheet" href=
"../input/data/plain.css" type=
"text/css" />
19 <link rel=
"stylesheet" href=
"../input/data/math.css" type=
"text/css" />
21 <body class=
"with-toc">
23 <p>Document header
</p>
25 <main id=
"restructuredtext-test-document">
26 <span id=
"doctitle"></span>
27 <h1 class=
"title">reStructuredText Test Document
</h1>
28 <p class=
"subtitle" id=
"examples-of-syntax-constructs"><span id=
"subtitle"></span>Examples of Syntax Constructs
</p>
30 <dt class=
"author">Author
<span class=
"colon">:
</span></dt>
31 <dd class=
"author"><p>David Goodger
</p></dd>
32 <dt class=
"address">Address
<span class=
"colon">:
</span></dt>
33 <dd class=
"address"><pre class=
"address">123 Example Street
38 <dt class=
"contact">Contact
<span class=
"colon">:
</span></dt>
39 <dd class=
"contact"><a class=
"reference external" href=
"mailto:goodger@python.org">goodger
@python.org
</a></dd>
40 <dt class=
"authors">Authors
<span class=
"colon">:
</span></dt>
41 <dd class=
"authors"><p>Me
</p>
45 <dt class=
"organization">Organization
<span class=
"colon">:
</span></dt>
46 <dd class=
"organization">humankind
</dd>
47 <dt class=
"date">Date
<span class=
"colon">:
</span></dt>
48 <dd class=
"date">Now, or yesterday. Or maybe even
<em>before
</em> yesterday.
</dd>
49 <dt class=
"status">Status
<span class=
"colon">:
</span></dt>
50 <dd class=
"status">This is a
"work in progress
"</dd>
51 <dt class=
"revision">Revision
<span class=
"colon">:
</span></dt>
52 <dd class=
"revision">is managed by a version control system.
</dd>
53 <dt class=
"version">Version
<span class=
"colon">:
</span></dt>
54 <dd class=
"version">1</dd>
55 <dt class=
"copyright">Copyright
<span class=
"colon">:
</span></dt>
56 <dd class=
"copyright">This document has been placed in the public domain. You
57 may do with it as you wish. You may copy, modify,
58 redistribute, reattribute, sell, buy, rent, lease,
59 destroy, or improve it, quote it at length, excerpt,
60 incorporate, collate, fold, staple, or mutilate it, or do
61 anything else to it that your or anyone else's heart
63 <dt class=
"field-name">field name
<span class=
"colon">:
</span></dt>
64 <dd class=
"field-name"><p>This is a
"generic bibliographic field
".
</p>
66 <dt class=
"field-name-2">field name
"2"<span class=
"colon">:
</span></dt>
67 <dd class=
"field-name-2"><p>Generic bibliographic fields may contain multiple body elements.
</p>
71 <div class=
"topic dedication" role=
"doc-dedication">
72 <p class=
"topic-title">Dedication
</p>
73 <p>For Docutils users
& co-developers.
</p>
75 <div class=
"topic abstract" role=
"doc-abstract">
76 <p class=
"topic-title">Abstract
</p>
77 <p>This is a test document, containing at least one example of each
78 reStructuredText construct.
</p>
80 <!-- This is a comment. Note how any initial comments are moved by
81 transforms to after the document title, subtitle, and docinfo. -->
82 <!-- Above is the document title, and below is the subtitle.
83 They are transformed from section titles after parsing. -->
84 <!-- bibliographic fields (which also require a transform): -->
85 <nav class=
"contents" id=
"table-of-contents" role=
"doc-toc">
86 <p class=
"topic-title">Table of Contents
</p>
87 <ul class=
"auto-toc simple">
88 <li><p><a class=
"reference internal" href=
"#structural-elements" id=
"toc-entry-1"><span class=
"sectnum">1 </span>Structural Elements
</a></p>
90 <li><p><a class=
"reference internal" href=
"#section-title" id=
"toc-entry-2"><span class=
"sectnum">1.1 </span>Section Title
</a></p></li>
91 <li><p><a class=
"reference internal" href=
"#empty-section" id=
"toc-entry-3"><span class=
"sectnum">1.2 </span>Empty Section
</a></p></li>
92 <li><p><a class=
"reference internal" href=
"#transitions" id=
"toc-entry-4"><span class=
"sectnum">1.3 </span>Transitions
</a></p></li>
95 <li><p><a class=
"reference internal" href=
"#body-elements" id=
"toc-entry-5"><span class=
"sectnum">2 </span>Body Elements
</a></p>
97 <li><p><a class=
"reference internal" href=
"#paragraphs" id=
"toc-entry-6"><span class=
"sectnum">2.1 </span>Paragraphs
</a></p>
99 <li><p><a class=
"reference internal" href=
"#inline-markup" id=
"toc-entry-7"><span class=
"sectnum">2.1.1 </span>Inline Markup
</a></p></li>
102 <li><p><a class=
"reference internal" href=
"#bullet-lists" id=
"toc-entry-8"><span class=
"sectnum">2.2 </span>Bullet Lists
</a></p></li>
103 <li><p><a class=
"reference internal" href=
"#enumerated-lists" id=
"toc-entry-9"><span class=
"sectnum">2.3 </span>Enumerated Lists
</a></p></li>
104 <li><p><a class=
"reference internal" href=
"#definition-lists" id=
"toc-entry-10"><span class=
"sectnum">2.4 </span>Definition Lists
</a></p></li>
105 <li><p><a class=
"reference internal" href=
"#field-lists" id=
"toc-entry-11"><span class=
"sectnum">2.5 </span>Field Lists
</a></p></li>
106 <li><p><a class=
"reference internal" href=
"#option-lists" id=
"toc-entry-12"><span class=
"sectnum">2.6 </span>Option Lists
</a></p></li>
107 <li><p><a class=
"reference internal" href=
"#literal-blocks" id=
"toc-entry-13"><span class=
"sectnum">2.7 </span>Literal Blocks
</a></p></li>
108 <li><p><a class=
"reference internal" href=
"#line-blocks" id=
"toc-entry-14"><span class=
"sectnum">2.8 </span>Line Blocks
</a></p></li>
109 <li><p><a class=
"reference internal" href=
"#block-quotes" id=
"toc-entry-15"><span class=
"sectnum">2.9 </span>Block Quotes
</a></p></li>
110 <li><p><a class=
"reference internal" href=
"#doctest-blocks" id=
"toc-entry-16"><span class=
"sectnum">2.10 </span>Doctest Blocks
</a></p></li>
111 <li><p><a class=
"reference internal" href=
"#footnotes" id=
"toc-entry-17"><span class=
"sectnum">2.11 </span>Footnotes
</a></p></li>
112 <li><p><a class=
"reference internal" href=
"#citations" id=
"toc-entry-18"><span class=
"sectnum">2.12 </span>Citations
</a></p></li>
113 <li><p><a class=
"reference internal" href=
"#targets" id=
"toc-entry-19"><span class=
"sectnum">2.13 </span>Targets
</a></p>
114 <ul class=
"auto-toc">
115 <li><p><a class=
"reference internal" href=
"#duplicate-target-names" id=
"toc-entry-20"><span class=
"sectnum">2.13.1 </span>Duplicate Target Names
</a></p></li>
116 <li><p><a class=
"reference internal" href=
"#duplicate-target-names-1" id=
"toc-entry-21"><span class=
"sectnum">2.13.2 </span>Duplicate Target Names
</a></p></li>
119 <li><p><a class=
"reference internal" href=
"#directives" id=
"toc-entry-22"><span class=
"sectnum">2.14 </span>Directives
</a></p>
120 <ul class=
"auto-toc">
121 <li><p><a class=
"reference internal" href=
"#document-parts" id=
"toc-entry-23"><span class=
"sectnum">2.14.1 </span>Document Parts
</a></p></li>
122 <li><p><a class=
"reference internal" href=
"#images-and-figures" id=
"toc-entry-24"><span class=
"sectnum">2.14.2 </span>Images and Figures
</a></p></li>
123 <li><p><a class=
"reference internal" href=
"#tables" id=
"toc-entry-25"><span class=
"sectnum">2.14.3 </span>Tables
</a></p></li>
124 <li><p><a class=
"reference internal" href=
"#admonitions" id=
"toc-entry-26"><span class=
"sectnum">2.14.4 </span>Admonitions
</a></p></li>
125 <li><p><a class=
"reference internal" href=
"#topics-sidebars-and-rubrics" id=
"toc-entry-27"><span class=
"sectnum">2.14.5 </span>Topics, Sidebars, and Rubrics
</a></p></li>
126 <li><p><a class=
"reference internal" href=
"#target-footnotes" id=
"toc-entry-28"><span class=
"sectnum">2.14.6 </span>Target Footnotes
</a></p></li>
127 <li><p><a class=
"reference internal" href=
"#replacement-text" id=
"toc-entry-29"><span class=
"sectnum">2.14.7 </span>Replacement Text
</a></p></li>
128 <li><p><a class=
"reference internal" href=
"#compound-paragraph" id=
"toc-entry-30"><span class=
"sectnum">2.14.8 </span>Compound Paragraph
</a></p></li>
129 <li><p><a class=
"reference internal" href=
"#parsed-literal-blocks" id=
"toc-entry-31"><span class=
"sectnum">2.14.9 </span>Parsed Literal Blocks
</a></p></li>
130 <li><p><a class=
"reference internal" href=
"#code" id=
"toc-entry-32"><span class=
"sectnum">2.14.10 </span>Code
</a></p></li>
131 <li><p><a class=
"reference internal" href=
"#meta" id=
"toc-entry-33"><span class=
"sectnum">2.14.11 </span>Meta
</a></p></li>
134 <li><p><a class=
"reference internal" href=
"#substitution-definitions" id=
"toc-entry-34"><span class=
"sectnum">2.15 </span>Substitution Definitions
</a></p></li>
135 <li><p><a class=
"reference internal" href=
"#comments" id=
"toc-entry-35"><span class=
"sectnum">2.16 </span>Comments
</a></p></li>
136 <li><p><a class=
"reference internal" href=
"#raw-text" id=
"toc-entry-36"><span class=
"sectnum">2.17 </span>Raw text
</a></p></li>
137 <li><p><a class=
"reference internal" href=
"#container" id=
"toc-entry-37"><span class=
"sectnum">2.18 </span>Container
</a></p></li>
138 <li><p><a class=
"reference internal" href=
"#colspanning-tables" id=
"toc-entry-38"><span class=
"sectnum">2.19 </span>Colspanning tables
</a></p></li>
139 <li><p><a class=
"reference internal" href=
"#rowspanning-tables" id=
"toc-entry-39"><span class=
"sectnum">2.20 </span>Rowspanning tables
</a></p></li>
140 <li><p><a class=
"reference internal" href=
"#complex-tables" id=
"toc-entry-40"><span class=
"sectnum">2.21 </span>Complex tables
</a></p></li>
141 <li><p><a class=
"reference internal" href=
"#list-tables" id=
"toc-entry-41"><span class=
"sectnum">2.22 </span>List Tables
</a></p></li>
142 <li><p><a class=
"reference internal" href=
"#custom-roles" id=
"toc-entry-42"><span class=
"sectnum">2.23 </span>Custom Roles
</a></p></li>
145 <li><p><a class=
"reference internal" href=
"#changes-to-the-html4css1-writer" id=
"toc-entry-43"><span class=
"sectnum">3 </span>Changes to the
<cite>html4css1
</cite> Writer
</a></p>
146 <ul class=
"auto-toc">
147 <li><p><a class=
"reference internal" href=
"#field-list-rendering" id=
"toc-entry-44"><span class=
"sectnum">3.1 </span>Field List Rendering
</a></p></li>
148 <li><p><a class=
"reference internal" href=
"#styling-with-class-arguments" id=
"toc-entry-45"><span class=
"sectnum">3.2 </span>Styling with Class Arguments
</a></p>
149 <ul class=
"auto-toc">
150 <li><p><a class=
"reference internal" href=
"#description-lists" id=
"toc-entry-46"><span class=
"sectnum">3.2.1 </span>Description Lists
</a></p></li>
151 <li><p><a class=
"reference internal" href=
"#details-disclosure-elements" id=
"toc-entry-47"><span class=
"sectnum">3.2.2 </span>Details disclosure elements
</a></p></li>
152 <li><p><a class=
"reference internal" href=
"#field-list-variants" id=
"toc-entry-48"><span class=
"sectnum">3.2.3 </span>Field List Variants
</a></p></li>
153 <li><p><a class=
"reference internal" href=
"#table-variants" id=
"toc-entry-49"><span class=
"sectnum">3.2.4 </span>Table Variants
</a></p></li>
154 <li><p><a class=
"reference internal" href=
"#numbered-figures" id=
"toc-entry-50"><span class=
"sectnum">3.2.5 </span>Numbered Figures
</a></p></li>
157 <li><p><a class=
"reference internal" href=
"#text-level-semantics" id=
"toc-entry-51"><span class=
"sectnum">3.3 </span>Text-Level Semantics
</a></p></li>
158 <li><p><a class=
"reference internal" href=
"#indicating-edits" id=
"toc-entry-52"><span class=
"sectnum">3.4 </span>Indicating Edits
</a></p></li>
161 <li><p><a class=
"reference internal" href=
"#error-handling" id=
"toc-entry-53"><span class=
"sectnum">4 </span>Error Handling
</a></p></li>
164 <section id=
"structural-elements">
165 <h2><a class=
"toc-backref" href=
"#toc-entry-1" role=
"doc-backlink"><span class=
"sectnum">1 </span>Structural Elements
</a></h2>
166 <section id=
"section-title">
167 <h3><a class=
"toc-backref" href=
"#toc-entry-2" role=
"doc-backlink"><span class=
"sectnum">1.1 </span>Section Title
</a></h3>
168 <p class=
"section-subtitle" id=
"section-subtitle">Section Subtitle
</p>
169 <p>Lone subsections are converted to a section subtitle by a transform
170 activated with the
<span class=
"docutils literal"><span class=
"pre">--section-subtitles
</span></span> command line option or the
171 <span class=
"docutils literal"><span class=
"pre">sectsubtitle-xform
</span></span> configuration value.
</p>
173 <section id=
"empty-section">
174 <h3><a class=
"toc-backref" href=
"#toc-entry-3" role=
"doc-backlink"><span class=
"sectnum">1.2 </span>Empty Section
</a></h3>
176 <section id=
"transitions">
177 <h3><a class=
"toc-backref" href=
"#toc-entry-4" role=
"doc-backlink"><span class=
"sectnum">1.3 </span>Transitions
</a></h3>
178 <p>Here's a transition:
</p>
179 <hr class=
"docutils" />
180 <p>It divides the section. Transitions may also occur between sections:
</p>
183 <hr class=
"docutils" />
184 <section id=
"body-elements">
185 <h2><a class=
"toc-backref" href=
"#toc-entry-5" role=
"doc-backlink"><span class=
"sectnum">2 </span>Body Elements
</a></h2>
186 <section id=
"paragraphs">
187 <h3><a class=
"toc-backref" href=
"#toc-entry-6" role=
"doc-backlink"><span class=
"sectnum">2.1 </span>Paragraphs
</a></h3>
189 <section id=
"inline-markup">
190 <h4><a class=
"toc-backref" href=
"#toc-entry-7" role=
"doc-backlink"><span class=
"sectnum">2.1.1 </span>Inline Markup
</a></h4>
191 <p>Paragraphs contain text and may contain inline markup:
<em>emphasis
</em>,
192 <strong>strong emphasis
</strong>,
<span class=
"docutils literal">inline literals
</span>, standalone hyperlinks
193 (
<a class=
"reference external" href=
"http://www.python.org">http://www.python.org
</a>), external hyperlinks (
<a class=
"reference external" href=
"http://www.python.org/">Python
</a> <a class=
"footnote-reference brackets" href=
"#footnote-7" id=
"footnote-reference-18" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>7<span class=
"fn-bracket">]
</span></a>), internal
194 cross-references (
<a class=
"reference internal" href=
"#example">example
</a>), external hyperlinks with embedded URIs
195 (
<a class=
"reference external" href=
"http://www.python.org">Python web site
</a>),
<a class=
"reference external" href=
"http://www.python.org/">anonymous hyperlink
196 references
</a> <a class=
"footnote-reference brackets" href=
"#footnote-7" id=
"footnote-reference-26" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>7<span class=
"fn-bracket">]
</span></a> (
<a class=
"reference external" href=
"https://docutils.sourceforge.io/">a second reference
</a> <a class=
"footnote-reference brackets" href=
"#footnote-13" id=
"footnote-reference-27" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>13<span class=
"fn-bracket">]
</span></a>), footnote references (manually
197 numbered
<a class=
"footnote-reference brackets" href=
"#footnote-1" id=
"footnote-reference-1" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>1<span class=
"fn-bracket">]
</span></a>, anonymous auto-numbered
<a class=
"footnote-reference brackets" href=
"#footnote-2" id=
"footnote-reference-2" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>3<span class=
"fn-bracket">]
</span></a>, labeled auto-numbered
198 <a class=
"footnote-reference brackets" href=
"#label" id=
"footnote-reference-3" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>2<span class=
"fn-bracket">]
</span></a>, or symbolic
<a class=
"footnote-reference brackets" href=
"#footnote-3" id=
"footnote-reference-4" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>*
<span class=
"fn-bracket">]
</span></a>), citation references (see
<a class=
"citation-reference" href=
"#cit2002" id=
"citation-reference-1" role=
"doc-biblioref">[CIT2002]
</a>),
199 substitution references (
<img alt=
"EXAMPLE" src=
"../../../docs/user/rst/images/biohazard.png" /> &
200 a
<em>trimmed heart
</em> <span class=
"docutils literal">(U+
2665):
</span>♥), and
<span class=
"target" id=
"inline-hyperlink-targets">inline hyperlink targets
</span>
201 (see
<a class=
"reference internal" href=
"#targets">Targets
</a> below for a reference back to here). Character-level
202 inline markup is also possible (although exceedingly ugly!) in
<em>re
</em><span class=
"docutils literal">Structured
</span><em>Text
</em>. Problems are indicated by
<a href=
"#system-message-1"><span class=
"problematic" id=
"problematic-1">|problematic|
</span></a> text
203 (generated by processing errors; this one is intentional). Here is a
204 reference to the
<a class=
"reference internal" href=
"#doctitle">doctitle
</a> and the
<a class=
"reference internal" href=
"#subtitle">subtitle
</a>.
</p>
205 <p>The default role for interpreted text is
<cite>Title Reference
</cite>. Here are
206 some explicit interpreted text roles: a PEP reference (
<a class=
"reference external" href=
"http://www.python.org/dev/peps/pep-0287">PEP
287</a>); an
207 RFC reference (
<a class=
"reference external" href=
"http://tools.ietf.org/html/rfc2822.html">RFC
2822</a>); an abbreviation (
<abbr>abb.
</abbr>), an acronym
208 (
<abbr>reST
</abbr>), code (
<code>print
"hello world
"</code>); a
<sub>subscript
</sub>;
209 a
<sup>superscript
</sup> and explicit roles for
<cite>Docutils
</cite>'
210 <em>standard
</em> <strong>inline
</strong> <span class=
"docutils literal">markup
</span>.
</p>
211 <!-- DO NOT RE-WRAP THE FOLLOWING PARAGRAPH! -->
212 <p>Let's test wrapping and whitespace significance in inline literals:
213 <span class=
"docutils literal">This is an example of
<span class=
"pre">--inline-literal
</span> <span class=
"pre">--text,
</span> <span class=
"pre">--including
</span> <span class=
"pre">some--
</span> <span class=
"pre">strangely--hyphenated-words.
</span> <span class=
"pre">Adjust-the-width-of-your-browser-window
</span> to see how the text is wrapped.
<span class=
"pre">--
</span> <span class=
"pre">----
</span> <span class=
"pre">--------
</span> Now note the spacing between the words of this sentence (words should be grouped in pairs).
</span></p>
214 <p>If the
<span class=
"docutils literal"><span class=
"pre">--pep-references
</span></span> option was supplied, there should be a
215 live link to PEP
258 here.
</p>
218 <section id=
"bullet-lists">
219 <h3><a class=
"toc-backref" href=
"#toc-entry-8" role=
"doc-backlink"><span class=
"sectnum">2.2 </span>Bullet Lists
</a></h3>
221 <li><p>A bullet list
</p>
223 <li><p>Nested bullet list.
</p></li>
224 <li><p>Nested item
2.
</p></li>
228 <p>Paragraph
2 of item
2.
</p>
230 <li><p>Nested bullet list.
</p></li>
231 <li><p>Nested item
2.
</p>
233 <li><p>Third level.
</p></li>
234 <li><p>Item
2.
</p></li>
237 <li><p>Nested item
3.
</p></li>
238 <li><p>This nested list should be compacted by the HTML writer.
</p>
239 <span class=
"target" id=
"target"></span><!-- Even if this item contains a target and a comment. -->
245 <section id=
"enumerated-lists">
246 <h3><a class=
"toc-backref" href=
"#toc-entry-9" role=
"doc-backlink"><span class=
"sectnum">2.3 </span>Enumerated Lists
</a></h3>
248 <li><p>Arabic numerals.
</p>
249 <ol class=
"loweralpha simple">
250 <li><p>lower alpha)
</p>
251 <ol class=
"lowerroman simple">
252 <li><p>(lower roman)
</p>
253 <ol class=
"upperalpha simple">
254 <li><p>upper alpha.
</p>
255 <ol class=
"upperroman simple">
256 <li><p>upper roman)
</p></li>
265 <li><p>Lists that don't start at
1:
</p>
266 <ol class=
"arabic simple" start=
"3">
267 <li><p>Three
</p></li>
270 <ol class=
"upperalpha simple" start=
"3">
274 <ol class=
"lowerroman simple" start=
"3">
281 <section id=
"definition-lists">
282 <h3><a class=
"toc-backref" href=
"#toc-entry-10" role=
"doc-backlink"><span class=
"sectnum">2.4 </span>Definition Lists
</a></h3>
285 <dd><p>Definition
</p>
287 <dt>Term
<span class=
"classifier">classifier
</span></dt>
288 <dd><p>Definition paragraph
1.
</p>
289 <p>Definition paragraph
2.
</p>
292 <dd><p>Definition
</p>
294 <dt>Term
<span class=
"classifier">classifier one
</span><span class=
"classifier">classifier two
</span></dt>
295 <dd><p>Definition
</p>
299 <section id=
"field-lists">
300 <h3><a class=
"toc-backref" href=
"#toc-entry-11" role=
"doc-backlink"><span class=
"sectnum">2.5 </span>Field Lists
</a></h3>
301 <dl class=
"field-list">
302 <dt>what
<span class=
"colon">:
</span></dt>
303 <dd><p>Field lists map field names to field bodies, like database
304 records. They are often part of an extension syntax. They are
305 an unambiguous variant of RFC
2822 fields.
</p>
307 <dt>how arg1 arg2
<span class=
"colon">:
</span></dt>
308 <dd><p>The field marker is a colon, the field name, and a colon.
</p>
309 <p>The field body may contain one or more body elements, indented
310 relative to the field marker.
</p>
312 <dt>credits
<span class=
"colon">:
</span></dt>
313 <dd><p class=
"credits">This paragraph has the
<cite>credits
</cite> class set. (This is actually not
314 about credits but just for ensuring that the class attribute
315 doesn't get stripped away.)
</p>
319 <section id=
"option-lists">
320 <h3><a class=
"toc-backref" href=
"#toc-entry-12" role=
"doc-backlink"><span class=
"sectnum">2.6 </span>Option Lists
</a></h3>
321 <p>For listing command-line options:
</p>
322 <dl class=
"option-list">
323 <dt><kbd><span class=
"option">-a
</span></kbd></dt>
324 <dd><p>command-line option
"a
"</p>
326 <dt><kbd><span class=
"option">-b
<var>file
</var></span></kbd></dt>
327 <dd><p>options can have arguments
328 and long descriptions
</p>
330 <dt><kbd><span class=
"option">--long
</span></kbd></dt>
331 <dd><p>options can be long also
</p>
333 <dt><kbd><span class=
"option">--input=
<var>file
</var></span></kbd></dt>
334 <dd><p>long options can also have
337 <dt><kbd><span class=
"option">--very-long-option
</span></kbd></dt>
338 <dd><p>The description can also start on the next line.
</p>
339 <p>The description may contain multiple body elements,
340 regardless of where it starts.
</p>
342 <dt><kbd><span class=
"option">-x
</span>,
<span class=
"option">-y
</span>,
<span class=
"option">-z
</span></kbd></dt>
343 <dd><p>Multiple options are an
"option group
".
</p>
345 <dt><kbd><span class=
"option">-v
</span>,
<span class=
"option">--verbose
</span></kbd></dt>
346 <dd><p>Commonly-seen: short
& long options.
</p>
348 <dt><kbd><span class=
"option">-
1 <var>file
</var></span>,
<span class=
"option">--one=
<var>file
</var></span>,
<span class=
"option">--two
<var>file
</var></span></kbd></dt>
349 <dd><p>Multiple options with arguments.
</p>
351 <dt><kbd><span class=
"option">/V
</span></kbd></dt>
352 <dd><p>DOS/VMS-style options too
</p>
355 <p>There must be at least two spaces between the option and the
358 <section id=
"literal-blocks">
359 <h3><a class=
"toc-backref" href=
"#toc-entry-13" role=
"doc-backlink"><span class=
"sectnum">2.7 </span>Literal Blocks
</a></h3>
360 <p>Literal blocks are indicated with a double-colon (
"::
") at the end of
361 the preceding paragraph (over there
<span class=
"docutils literal"><span class=
"pre">--
></span></span>). They can be indented:
</p>
362 <pre class=
"literal-block">if literal_block:
363 text = 'is left as-is'
364 spaces_and_linebreaks = 'are preserved'
365 markup_processing = None
</pre>
366 <p>Or they can be quoted without indentation:
</p>
367 <pre class=
"literal-block">>> Great idea!
369 > Why didn't I think of that?
</pre>
371 <section id=
"line-blocks">
372 <h3><a class=
"toc-backref" href=
"#toc-entry-14" role=
"doc-backlink"><span class=
"sectnum">2.8 </span>Line Blocks
</a></h3>
373 <p>This section tests line blocks. Line blocks are body elements which
374 consist of lines and other line blocks. Nested line blocks cause
376 <div class=
"line-block">
377 <div class=
"line">This is a line block. It ends with a blank line.
</div>
378 <div class=
"line-block">
379 <div class=
"line">New lines begin with a vertical bar (
"|
").
</div>
380 <div class=
"line">Line breaks and initial indent are significant, and preserved.
</div>
381 <div class=
"line-block">
382 <div class=
"line">Continuation lines are also possible. A long line that is intended
383 to wrap should begin with a space in place of the vertical bar.
</div>
385 <div class=
"line">The left edge of a continuation line need not be aligned with
386 the left edge of the text above it.
</div>
389 <div class=
"line-block">
390 <div class=
"line">This is a second line block.
</div>
391 <div class=
"line"><br /></div>
392 <div class=
"line">Blank lines are permitted internally, but they must begin with a
"|
".
</div>
394 <p>Another line block, surrounded by paragraphs:
</p>
395 <div class=
"line-block">
396 <div class=
"line">And it's no good waiting by the window
</div>
397 <div class=
"line">It's no good waiting for the sun
</div>
398 <div class=
"line">Please believe me, the things you dream of
</div>
399 <div class=
"line">They don't fall in the lap of no-one
</div>
401 <p>Take it away, Eric the Orchestra Leader!
</p>
403 <div class=
"line-block">
404 <div class=
"line">A one, two, a one two three four
</div>
405 <div class=
"line"><br /></div>
406 <div class=
"line">Half a bee, philosophically,
</div>
407 <div class=
"line-block">
408 <div class=
"line">must,
<em>ipso facto
</em>, half not be.
</div>
410 <div class=
"line">But half the bee has got to be,
</div>
411 <div class=
"line-block">
412 <div class=
"line"><em>vis a vis
</em> its entity. D'you see?
</div>
413 <div class=
"line"><br /></div>
415 <div class=
"line">But can a bee be said to be
</div>
416 <div class=
"line-block">
417 <div class=
"line">or not to be an entire bee,
</div>
418 <div class=
"line-block">
419 <div class=
"line">when half the bee is not a bee,
</div>
420 <div class=
"line-block">
421 <div class=
"line">due to some ancient injury?
</div>
422 <div class=
"line"><br /></div>
426 <div class=
"line">Singing...
</div>
429 <p>A line block, like the following poem by Christian Morgenstern, can
430 also be centre-aligned:
</p>
431 <div class=
"align-center line-block" lang=
"de">
432 <div class=
"line"><strong>Die Trichter
</strong></div>
433 <div class=
"line"><br /></div>
434 <div class=
"line">Zwei Trichter wandeln durch die Nacht.
</div>
435 <div class=
"line">Durch ihres Rumpfs verengten Schacht
</div>
436 <div class=
"line">fließt weißes Mondlicht
</div>
437 <div class=
"line">still und heiter
</div>
438 <div class=
"line">auf ihren
</div>
439 <div class=
"line">Waldweg
</div>
440 <div class=
"line">u. s.
</div>
441 <div class=
"line">w.
</div>
442 <div class=
"line"><br /></div>
445 <section id=
"block-quotes">
446 <h3><a class=
"toc-backref" href=
"#toc-entry-15" role=
"doc-backlink"><span class=
"sectnum">2.9 </span>Block Quotes
</a></h3>
447 <p>Block quotes consist of indented body elements:
</p>
449 <p>My theory by A. Elk. Brackets Miss, brackets. This theory goes
450 as follows and begins now. All brontosauruses are thin at one
451 end, much much thicker in the middle and then thin again at the
452 far end. That is my theory, it is mine, and belongs to me and I
453 own it, and what it is too.
</p>
454 <p class=
"attribution">—Anne Elk (Miss)
</p>
456 <p>The language of a quote (like any other object) can be specified by
457 a class attribute:
</p>
459 <blockquote lang=
"fr">
460 <p>ReStructuredText est un langage de balisage léger utilisé
461 notamment dans la documentation du langage Python.
</p>
464 <section id=
"doctest-blocks">
465 <h3><a class=
"toc-backref" href=
"#toc-entry-16" role=
"doc-backlink"><span class=
"sectnum">2.10 </span>Doctest Blocks
</a></h3>
466 <pre class=
"code python doctest">>>> print 'Python-specific usage examples; begun with
">>>"'
467 Python-specific usage examples; begun with
">>>"
468 >>> print '(cut and pasted from interactive Python sessions)'
469 (cut and pasted from interactive Python sessions)
472 <section id=
"footnotes">
473 <h3><a class=
"toc-backref" href=
"#toc-entry-17" role=
"doc-backlink"><span class=
"sectnum">2.11 </span>Footnotes
</a></h3>
474 <aside class=
"footnote brackets" id=
"footnote-1" role=
"note">
475 <span class=
"label"><span class=
"fn-bracket">[
</span>1<span class=
"fn-bracket">]
</span></span>
476 <span class=
"backrefs">(
<a role=
"doc-backlink" href=
"#footnote-reference-1">1</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-5">2</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-9">3</a>)
</span>
477 <p>A footnote contains body elements, consistently indented by at
479 <p>This is the footnote's second paragraph.
</p>
481 <aside class=
"footnote brackets" id=
"label" role=
"note">
482 <span class=
"label"><span class=
"fn-bracket">[
</span>2<span class=
"fn-bracket">]
</span></span>
483 <span class=
"backrefs">(
<a role=
"doc-backlink" href=
"#footnote-reference-3">1</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-6">2</a>)
</span>
484 <p>Footnotes may be numbered, either manually (as in
<a class=
"footnote-reference brackets" href=
"#footnote-1" id=
"footnote-reference-5" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>1<span class=
"fn-bracket">]
</span></a>) or
485 automatically using a
"#
"-prefixed label. This footnote has a
486 label so it can be referred to from multiple places, both as a
487 footnote reference (
<a class=
"footnote-reference brackets" href=
"#label" id=
"footnote-reference-6" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>2<span class=
"fn-bracket">]
</span></a>) and as a
<a class=
"reference internal" href=
"#label">hyperlink reference
</a>.
</p>
489 <aside class=
"footnote brackets" id=
"footnote-2" role=
"note">
490 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-2">3</a><span class=
"fn-bracket">]
</span></span>
491 <p>This footnote is numbered automatically and anonymously using a
492 label of
"#
" only.
</p>
493 <p>This is the second paragraph.
</p>
494 <p>And this is the third paragraph.
</p>
496 <aside class=
"footnote brackets" id=
"footnote-3" role=
"note">
497 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-4">*
</a><span class=
"fn-bracket">]
</span></span>
498 <p>Footnotes may also use symbols, specified with a
"*
" label.
499 Here's a reference to the next footnote:
<a class=
"footnote-reference brackets" href=
"#footnote-4" id=
"footnote-reference-7" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>†
<span class=
"fn-bracket">]
</span></a>.
</p>
501 <aside class=
"footnote brackets" id=
"footnote-4" role=
"note">
502 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-7">†
</a><span class=
"fn-bracket">]
</span></span>
503 <p>This footnote shows the next symbol in the sequence.
</p>
505 <aside class=
"footnote brackets" id=
"footnote-5" role=
"note">
506 <span class=
"label"><span class=
"fn-bracket">[
</span>4<span class=
"fn-bracket">]
</span></span>
507 <p>Here's an unreferenced footnote, with a reference to a
508 nonexistent footnote:
<a href=
"#system-message-2"><span class=
"problematic" id=
"footnote-reference-8">[
5]_
</span></a>.
</p>
511 <section id=
"citations">
512 <h3><a class=
"toc-backref" href=
"#toc-entry-18" role=
"doc-backlink"><span class=
"sectnum">2.12 </span>Citations
</a></h3>
513 <div role=
"list" class=
"citation-list">
514 <div class=
"citation" id=
"cit2002" role=
"doc-biblioentry">
515 <span class=
"label"><span class=
"fn-bracket">[
</span>CIT2002
<span class=
"fn-bracket">]
</span></span>
516 <span class=
"backrefs">(
<a role=
"doc-backlink" href=
"#citation-reference-1">1</a>,
<a role=
"doc-backlink" href=
"#citation-reference-2">2</a>)
</span>
517 <p>Citations are text-labeled footnotes. They may be
518 rendered separately and differently from footnotes.
</p>
521 <p>Here's a reference to the above,
<a class=
"citation-reference" href=
"#cit2002" id=
"citation-reference-2" role=
"doc-biblioref">[CIT2002]
</a>, and a
<a href=
"#system-message-3"><span class=
"problematic" id=
"citation-reference-3">[nonexistent]_
</span></a>
524 <section id=
"targets">
525 <span id=
"another-target"></span><h3><a class=
"toc-backref" href=
"#toc-entry-19" role=
"doc-backlink"><span class=
"sectnum">2.13 </span>Targets
</a></h3>
526 <p id=
"example">This paragraph is pointed to by the explicit
"example
" target. A
527 reference can be found under
<a class=
"reference internal" href=
"#inline-markup">Inline Markup
</a>, above.
<a class=
"reference internal" href=
"#inline-hyperlink-targets">Inline
528 hyperlink targets
</a> are also possible.
</p>
529 <p>Section headers are implicit targets, referred to by name. See
530 <a class=
"reference internal" href=
"#targets">Targets
</a>, which is a subsection of
<a class=
"reference internal" href=
"#body-elements">Body Elements
</a>.
</p>
531 <p>Explicit external targets are interpolated into references such as
532 "<a class=
"reference external" href=
"http://www.python.org/">Python
</a> <a class=
"footnote-reference brackets" href=
"#footnote-7" id=
"footnote-reference-19" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>7<span class=
"fn-bracket">]
</span></a>".
</p>
533 <p>Targets may be indirect and anonymous. Thus
<a class=
"reference internal" href=
"#targets">this phrase
</a> may also
534 refer to the
<a class=
"reference internal" href=
"#targets">Targets
</a> section.
</p>
535 <p>Here's a
<a href=
"#system-message-4"><span class=
"problematic" id=
"problematic-2">`hyperlink reference without a target`_
</span></a>, which generates an
537 <section id=
"duplicate-target-names">
538 <h4><a class=
"toc-backref" href=
"#toc-entry-20" role=
"doc-backlink"><span class=
"sectnum">2.13.1 </span>Duplicate Target Names
</a></h4>
539 <p>Duplicate names in section headers or other implicit targets will
540 generate
"info
" (level-
1) system messages. Duplicate names in
541 explicit targets will generate
"warning
" (level-
2) system messages.
</p>
543 <section id=
"duplicate-target-names-1">
544 <h4><a class=
"toc-backref" href=
"#toc-entry-21" role=
"doc-backlink"><span class=
"sectnum">2.13.2 </span>Duplicate Target Names
</a></h4>
545 <p>Since there are two
"Duplicate Target Names
" section headers, we
546 cannot uniquely refer to either of them by name. If we try to (like
547 this:
<a href=
"#system-message-5"><span class=
"problematic" id=
"problematic-3">`Duplicate Target Names`_
</span></a>), an error is generated.
</p>
550 <section id=
"directives">
551 <h3><a class=
"toc-backref" href=
"#toc-entry-22" role=
"doc-backlink"><span class=
"sectnum">2.14 </span>Directives
</a></h3>
552 <nav class=
"contents local" id=
"contents">
553 <ul class=
"auto-toc simple">
554 <li><p><a class=
"reference internal" href=
"#document-parts" id=
"toc-entry-54"><span class=
"sectnum">2.14.1 </span>Document Parts
</a></p></li>
555 <li><p><a class=
"reference internal" href=
"#images-and-figures" id=
"toc-entry-55"><span class=
"sectnum">2.14.2 </span>Images and Figures
</a></p></li>
556 <li><p><a class=
"reference internal" href=
"#tables" id=
"toc-entry-56"><span class=
"sectnum">2.14.3 </span>Tables
</a></p></li>
557 <li><p><a class=
"reference internal" href=
"#admonitions" id=
"toc-entry-57"><span class=
"sectnum">2.14.4 </span>Admonitions
</a></p></li>
558 <li><p><a class=
"reference internal" href=
"#topics-sidebars-and-rubrics" id=
"toc-entry-58"><span class=
"sectnum">2.14.5 </span>Topics, Sidebars, and Rubrics
</a></p></li>
559 <li><p><a class=
"reference internal" href=
"#target-footnotes" id=
"toc-entry-59"><span class=
"sectnum">2.14.6 </span>Target Footnotes
</a></p></li>
560 <li><p><a class=
"reference internal" href=
"#replacement-text" id=
"toc-entry-60"><span class=
"sectnum">2.14.7 </span>Replacement Text
</a></p></li>
561 <li><p><a class=
"reference internal" href=
"#compound-paragraph" id=
"toc-entry-61"><span class=
"sectnum">2.14.8 </span>Compound Paragraph
</a></p></li>
562 <li><p><a class=
"reference internal" href=
"#parsed-literal-blocks" id=
"toc-entry-62"><span class=
"sectnum">2.14.9 </span>Parsed Literal Blocks
</a></p></li>
563 <li><p><a class=
"reference internal" href=
"#code" id=
"toc-entry-63"><span class=
"sectnum">2.14.10 </span>Code
</a></p></li>
564 <li><p><a class=
"reference internal" href=
"#meta" id=
"toc-entry-64"><span class=
"sectnum">2.14.11 </span>Meta
</a></p></li>
567 <p>These are just a sample of the many reStructuredText Directives. For
568 others, please see
<a class=
"reference external" href=
"https://docutils.sourceforge.io/docs/ref/rst/directives.html">reStructuredText Directives
</a> <a class=
"footnote-reference brackets" href=
"#footnote-14" id=
"footnote-reference-28" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>14<span class=
"fn-bracket">]
</span></a>.
</p>
569 <section id=
"document-parts">
570 <h4><a class=
"toc-backref" href=
"#toc-entry-54" role=
"doc-backlink"><span class=
"sectnum">2.14.1 </span>Document Parts
</a></h4>
571 <p>An example of the
"contents
" directive can be seen above this section
572 (a local, untitled table of
<a class=
"reference internal" href=
"#contents">contents
</a>) and at the beginning of the
573 document (a document-wide
<a class=
"reference internal" href=
"#table-of-contents">table of contents
</a>).
</p>
575 <section id=
"images-and-figures">
576 <h4><a class=
"toc-backref" href=
"#toc-entry-55" role=
"doc-backlink"><span class=
"sectnum">2.14.2 </span>Images and Figures
</a></h4>
577 <p>An image directive (also clickable -- a hyperlink reference):
</p>
578 <a class=
"reference internal image-reference" href=
"#directives"><img alt=
"../../../docs/user/rst/images/title.png" class=
"class1 class2" src=
"../../../docs/user/rst/images/title.png" style=
"width: 70%;" /></a>
579 <p>Image with multiple IDs:
</p>
580 <span id=
"image-target-2"></span><span id=
"image-target-1"></span><img alt=
"../../../docs/user/rst/images/biohazard.png" id=
"image-target-3" src=
"../../../docs/user/rst/images/biohazard.png" />
581 <p>A centered image:
</p>
582 <img alt=
"../../../docs/user/rst/images/biohazard.png" class=
"align-center" src=
"../../../docs/user/rst/images/biohazard.png" />
583 <p>A left-aligned image:
</p>
584 <img alt=
"../../../docs/user/rst/images/biohazard.png" class=
"align-left" src=
"../../../docs/user/rst/images/biohazard.png" />
585 <p>This paragraph might flow around the image.
586 The specific behavior depends upon the style sheet and
587 the browser or rendering software used.
</p>
588 <p>A right-aligned image:
</p>
589 <img alt=
"../../../docs/user/rst/images/biohazard.png" class=
"align-right" src=
"../../../docs/user/rst/images/biohazard.png" />
590 <p>This paragraph might flow around the image.
591 The specific behavior depends upon the style sheet and
592 the browser or rendering software used.
</p>
593 <p>For inline images see
<a class=
"reference internal" href=
"#substitution-definitions">Substitution Definitions
</a>.
</p>
595 <p>An image
2 em wide:
</p>
596 <img alt=
"../../../docs/user/rst/images/biohazard.png" src=
"../../../docs/user/rst/images/biohazard.png" style=
"width: 2em;" />
597 <p>An image
2 cm wide and
15 pixel high:
</p>
598 <img alt=
"../../../docs/user/rst/images/biohazard.png" src=
"../../../docs/user/rst/images/biohazard.png" style=
"width: 2cm; height: 15px;" />
599 <p>Relative units allow adaption of the image to the screen or paper size.
600 An image occupying
50% of the line width:
</p>
601 <img alt=
"../../../docs/user/rst/images/title.png" src=
"../../../docs/user/rst/images/title.png" style=
"width: 50%;" />
602 <p>A
<em>figure
</em> is an image with a caption and/or a legend. With page-based output
603 media, figures might float to a different position if this helps the page
605 <figure class=
"figclass1 figclass2">
606 <img alt=
"reStructuredText, the markup syntax" class=
"class1 class2" src=
"../../../docs/user/rst/images/title.png" style=
"width: 258px;" />
608 <p>Plaintext markup syntax and parser system.
</p>
612 <tr><td><p>re
</p></td>
613 <td><p>Revised, revisited, based on 're' module.
</p></td>
615 <tr><td><p>Structured
</p></td>
616 <td><p>Structure-enhanced text, structuredtext.
</p></td>
618 <tr><td><p>Text
</p></td>
619 <td><p>Well it is, isn't it?
</p></td>
623 <p>This paragraph is also part of the legend.
</p>
627 <p>A left-aligned figure,
70% wide:
</p>
628 <figure class=
"figclass1 figclass2 align-left" style=
"width: 70%">
629 <img alt=
"reStructuredText, the markup syntax" class=
"class1 class2" src=
"../../../docs/user/rst/images/biohazard.png" style=
"width: 40px;" />
631 <p>This is the caption.
</p>
633 <p>This is the legend.
</p>
634 <p>The legend may consist of several paragraphs.
</p>
638 <p>This paragraph might flow around the figure.
</p>
639 <p>The specific behavior depends upon the style sheet and the browser or
640 rendering software used.
</p>
641 <p>A centered figure:
</p>
642 <figure class=
"align-center">
643 <img alt=
"../../../docs/user/rst/images/biohazard.png" src=
"../../../docs/user/rst/images/biohazard.png" style=
"width: 40px;" />
645 <p>This is the caption.
</p>
647 <p>This is the legend.
</p>
648 <p>The legend may consist of several paragraphs.
</p>
652 <p>This paragraph might flow around the figure.
</p>
653 <p>The specific behavior depends upon the style sheet and the browser or
654 rendering software used.
</p>
655 <p>A right-aligned figure:
</p>
656 <figure class=
"align-right">
657 <img alt=
"../../../docs/user/rst/images/biohazard.png" src=
"../../../docs/user/rst/images/biohazard.png" style=
"width: 40px;" />
659 <p>This is the caption.
</p>
661 <p>This is the legend.
</p>
662 <p>The legend may consist of several paragraphs.
</p>
666 <p>This paragraph might flow around the figure. The specific behavior depends
667 upon the style sheet and the browser or rendering software used.
</p>
669 <section id=
"tables">
670 <h4><a class=
"toc-backref" href=
"#toc-entry-56" role=
"doc-backlink"><span class=
"sectnum">2.14.3 </span>Tables
</a></h4>
671 <p>Tables may be given titles and additional arguments with the
<em>table
</em>
673 <table class=
"align-left">
674 <caption>left-aligned table
</caption>
676 <tr><th class=
"head"><p>A
</p></th>
677 <th class=
"head"><p>not A
</p></th>
681 <tr><td><p>False
</p></td>
684 <tr><td><p>True
</p></td>
685 <td><p>False
</p></td>
689 <table class=
"align-center">
690 <caption>center-aligned table
</caption>
692 <tr><th class=
"head"><p>A
</p></th>
693 <th class=
"head"><p>not A
</p></th>
697 <tr><td><p>False
</p></td>
700 <tr><td><p>True
</p></td>
701 <td><p>False
</p></td>
705 <table class=
"align-right">
706 <caption>right-aligned table
</caption>
708 <tr><th class=
"head"><p>A
</p></th>
709 <th class=
"head"><p>not A
</p></th>
713 <tr><td><p>False
</p></td>
716 <tr><td><p>True
</p></td>
717 <td><p>False
</p></td>
721 <p>With the
"widths
" argument
"auto
" (or
"class
" value
"colwidths-auto
"),
722 column widths are determined by the backend (if supported by the
724 <span id=
"target1"></span><table id=
"target2">
726 <tr><th class=
"head"><p>A
</p></th>
727 <th class=
"head"><p>B
</p></th>
728 <th class=
"head"><p>A or B
</p></th>
732 <tr><td><p>False
</p></td>
733 <td><p>False
</p></td>
734 <td><p>False
</p></td>
736 <tr><td><p>True
</p></td>
737 <td><p>False
</p></td>
740 <tr><td><p>False
</p></td>
744 <tr><td><p>True
</p></td>
751 <section id=
"admonitions">
752 <h4><a class=
"toc-backref" href=
"#toc-entry-57" role=
"doc-backlink"><span class=
"sectnum">2.14.4 </span>Admonitions
</a></h4>
753 <aside class=
"admonition attention">
754 <p class=
"admonition-title">Attention!
</p>
755 <p>Directives at large.
</p>
757 <aside class=
"admonition caution">
758 <p class=
"admonition-title">Caution!
</p>
759 <p>Don't take any wooden nickels.
</p>
761 <aside class=
"admonition danger">
762 <p class=
"admonition-title">!DANGER!
</p>
763 <p>Mad scientist at work!
</p>
765 <aside class=
"admonition error">
766 <p class=
"admonition-title">Error
</p>
767 <p>Does not compute.
</p>
769 <aside class=
"admonition hint">
770 <p class=
"admonition-title">Hint
</p>
771 <p>It's bigger than a bread box.
</p>
773 <aside class=
"admonition important">
774 <p class=
"admonition-title">Important
</p>
776 <li><p>Wash behind your ears.
</p></li>
777 <li><p>Clean up your room.
</p></li>
778 <li><p>Call your mother.
</p></li>
779 <li><p>Back up your data.
</p></li>
782 <aside class=
"admonition note">
783 <p class=
"admonition-title">Note
</p>
784 <p>This is a note.
</p>
786 <aside class=
"admonition tip">
787 <p class=
"admonition-title">Tip
</p>
788 <p>15% if the service is good.
</p>
790 <aside class=
"admonition warning">
791 <p class=
"admonition-title">Warning
</p>
792 <p>Strong prose may provoke extreme mental exertion.
793 Reader discretion is strongly advised.
</p>
795 <aside class=
"admonition admonition-and-by-the-way">
796 <p class=
"admonition-title">And, by the way...
</p>
797 <p>You can make up your own admonition too.
</p>
800 <section id=
"topics-sidebars-and-rubrics">
801 <h4><a class=
"toc-backref" href=
"#toc-entry-58" role=
"doc-backlink"><span class=
"sectnum">2.14.5 </span>Topics, Sidebars, and Rubrics
</a></h4>
802 <p><em>Sidebars
</em> are like miniature, parallel documents.
</p>
803 <aside class=
"sidebar">
804 <p class=
"sidebar-title">Optional Sidebar Title
</p>
805 <p class=
"sidebar-subtitle">Optional Subtitle
</p>
806 <p>This is a sidebar. It is for text outside the flow of the main
808 <p class=
"rubric">This is a rubric inside a sidebar
</p>
809 <p>Sidebars often appear beside the main text with a border and a different
810 background or font color.
</p>
812 <p>A
<em>topic
</em> is like a block quote with a title, or a self-contained section
813 with no subsections.
</p>
814 <aside class=
"topic">
815 <p class=
"topic-title">Topic Title
</p>
816 <p>This is a topic.
</p>
818 <p>A
<em>rubric
</em> is like an informal heading that doesn't correspond to the
819 document's structure. It is typically highlighted in red (hence the name).
</p>
820 <p class=
"rubric">This is a rubric
</p>
821 <p>Topics and rubrics can be used at places where a
<a class=
"reference internal" href=
"#section-title">section title
</a> is not
822 allowed (e.g. inside a directive).
</p>
824 <section id=
"target-footnotes">
825 <h4><a class=
"toc-backref" href=
"#toc-entry-59" role=
"doc-backlink"><span class=
"sectnum">2.14.6 </span>Target Footnotes
</a></h4>
826 <aside class=
"footnote brackets" id=
"footnote-7" role=
"note">
827 <span class=
"label"><span class=
"fn-bracket">[
</span>7<span class=
"fn-bracket">]
</span></span>
828 <span class=
"backrefs">(
<a role=
"doc-backlink" href=
"#footnote-reference-18">1</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-19">2</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-20">3</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-26">4</a>)
</span>
829 <p><a class=
"reference external" href=
"http://www.python.org/">http://www.python.org/
</a></p>
831 <aside class=
"footnote brackets" id=
"footnote-8" role=
"note">
832 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-21">8</a><span class=
"fn-bracket">]
</span></span>
833 <p><a class=
"reference external" href=
"http://pygments.org/">http://pygments.org/
</a></p>
835 <aside class=
"footnote brackets" id=
"footnote-9" role=
"note">
836 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-22">9</a><span class=
"fn-bracket">]
</span></span>
837 <p><a class=
"reference external" href=
"https://www.w3.org/TR/html52/interactive-elements.html#the-details-element">https://www.w3.org/TR/html52/interactive-elements.html#the-details-element
</a></p>
839 <aside class=
"footnote brackets" id=
"footnote-10" role=
"note">
840 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-23">10</a><span class=
"fn-bracket">]
</span></span>
841 <p><a class=
"reference external" href=
"http://docutils.sourceforge.net/docs/user/config.html#table-style">http://docutils.sourceforge.net/docs/user/config.html#table-style
</a></p>
843 <aside class=
"footnote brackets" id=
"footnote-11" role=
"note">
844 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-24">11</a><span class=
"fn-bracket">]
</span></span>
845 <p><a class=
"reference external" href=
"http://tug.ctan.org/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf">http://tug.ctan.org/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf
</a></p>
847 <aside class=
"footnote brackets" id=
"footnote-12" role=
"note">
848 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-25">12</a><span class=
"fn-bracket">]
</span></span>
849 <p><a class=
"reference external" href=
"http://docutils.sourceforge.net/docs/dev/todo.html#interpreted-text">http://docutils.sourceforge.net/docs/dev/todo.html#interpreted-text
</a></p>
851 <aside class=
"footnote brackets" id=
"footnote-13" role=
"note">
852 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-27">13</a><span class=
"fn-bracket">]
</span></span>
853 <p><a class=
"reference external" href=
"https://docutils.sourceforge.io/">https://docutils.sourceforge.io/
</a></p>
855 <aside class=
"footnote brackets" id=
"footnote-14" role=
"note">
856 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-28">14</a><span class=
"fn-bracket">]
</span></span>
857 <p><a class=
"reference external" href=
"https://docutils.sourceforge.io/docs/ref/rst/directives.html">https://docutils.sourceforge.io/docs/ref/rst/directives.html
</a></p>
859 <aside class=
"footnote brackets" id=
"footnote-15" role=
"note">
860 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-29">15</a><span class=
"fn-bracket">]
</span></span>
861 <p><a class=
"reference external" href=
"https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata
</a></p>
863 <aside class=
"footnote brackets" id=
"footnote-16" role=
"note">
864 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-30">16</a><span class=
"fn-bracket">]
</span></span>
865 <p><a class=
"reference external" href=
"https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag">https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
</a></p>
867 <aside class=
"footnote brackets" id=
"footnote-17" role=
"note">
868 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-31">17</a><span class=
"fn-bracket">]
</span></span>
869 <p><a class=
"reference external" href=
"https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article">https://stackoverflow.com/questions/
39547412/same-font-size-for-h1-and-h2-in-article
</a></p>
871 <aside class=
"footnote brackets" id=
"footnote-18" role=
"note">
872 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-32">18</a><span class=
"fn-bracket">]
</span></span>
873 <p><a class=
"reference external" href=
"https://html.spec.whatwg.org/#text-level-semantics">https://html.spec.whatwg.org/#text-level-semantics
</a></p>
875 <aside class=
"footnote brackets" id=
"footnote-19" role=
"note">
876 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-33">19</a><span class=
"fn-bracket">]
</span></span>
877 <p><a class=
"reference external" href=
"https://html.spec.whatwg.org/multipage/edits.html">https://html.spec.whatwg.org/multipage/edits.html
</a></p>
880 <section id=
"replacement-text">
881 <h4><a class=
"toc-backref" href=
"#toc-entry-60" role=
"doc-backlink"><span class=
"sectnum">2.14.7 </span>Replacement Text
</a></h4>
882 <p>I recommend you try
<a class=
"reference external" href=
"http://www.python.org/">Python,
<em>the
</em> best language around
</a> <a class=
"footnote-reference brackets" href=
"#footnote-7" id=
"footnote-reference-20" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>7<span class=
"fn-bracket">]
</span></a>.
</p>
884 <section id=
"compound-paragraph">
885 <h4><a class=
"toc-backref" href=
"#toc-entry-61" role=
"doc-backlink"><span class=
"sectnum">2.14.8 </span>Compound Paragraph
</a></h4>
886 <p>The
<em>compound
</em> directive is used to create a
"compound paragraph
", which
887 is a single logical paragraph containing multiple physical body
888 elements. For example:
</p>
889 <div class=
"compound">
890 <p>The 'rm' command is very dangerous. If you are logged
891 in as root and enter
</p>
892 <pre class=
"literal-block">cd /
894 <p>you will erase the entire contents of your file system.
</p>
896 <p>Test the handling and display of compound paragraphs:
</p>
897 <div class=
"some-class compound">
898 <p>Compound
2, paragraph
1,
</p>
899 <p>compound
2, paragraph
2,
</p>
901 <li><p>list item
1,
</p></li>
902 <li><p>list item
2,
</p></li>
904 <p>compound
2, paragraph
3.
</p>
906 <div class=
"compound">
907 <p>Compound
3, only consisting of one paragraph.
</p>
909 <div class=
"compound">
910 <pre class=
"literal-block">Compound
4.
911 This one starts with a literal block.
</pre>
912 <p>Compound
4, paragraph following the literal block.
</p>
914 <p>Now something
<em>really
</em> perverted -- a nested compound block. This is
915 just to test that it works at all; the results don't have to be
917 <div class=
"compound">
918 <p>Compound
5, block
1 (a paragraph).
</p>
919 <div class=
"compound">
920 <p>Compound
6 is block
2 in compound
5.
</p>
921 <p>Compound
6, another paragraph.
</p>
923 <p>Compound
5, block
3 (a paragraph).
</p>
925 <div class=
"compound">
926 <p>Compound
7, tests the inclusion of various block-level
927 elements in one logical paragraph. First a table,
</p>
930 <tr><td><p>Left cell, first
939 <td><p>Right cell.
</p>
946 <p>followed by a paragraph. This physical paragraph is
947 actually a continuation of the paragraph before the table. It is followed
952 <ol class=
"arabic simple">
953 <li><p>an enumerated list,
</p></li>
956 <dl class=
"option-list">
957 <dt><kbd><span class=
"option">--an
</span></kbd></dt>
958 <dd><p>option list,
</p>
962 <dl class=
"field-list simple">
963 <dt>a field
<span class=
"colon">:
</span></dt>
969 <dt>a definition
</dt>
973 <p>a paragraph, an image:
</p>
974 <img alt=
"../../../docs/user/rst/images/biohazard.png" src=
"../../../docs/user/rst/images/biohazard.png" />
976 <div class=
"line-block">
977 <div class=
"line">a line
</div>
978 <div class=
"line">block,
</div>
980 <p>a paragraph followed by a comment,
</p>
981 <!-- this is a comment -->
982 <p>a paragraph, a
</p>
983 <aside class=
"admonition note">
984 <p class=
"admonition-title">Note
</p>
987 <p>and the final paragraph of the compound
7.
</p>
990 <section id=
"parsed-literal-blocks">
991 <h4><a class=
"toc-backref" href=
"#toc-entry-62" role=
"doc-backlink"><span class=
"sectnum">2.14.9 </span>Parsed Literal Blocks
</a></h4>
992 <pre class=
"literal-block">This is a parsed literal block.
993 This line is indented. The next line is blank.
995 Inline markup is supported, e.g.
<em>emphasis
</em>,
<strong>strong
</strong>,
<span class=
"docutils literal">literal
996 text
</span>,
<sub>sub-
</sub> and
<sup>super
</sup>scripts,
997 inline formulas:
<span class=
"formula"><i>A
</i> =
2<i>π
</i><i>r
</i><sup>2</sup></span>,
998 footnotes
<a class=
"footnote-reference brackets" href=
"#footnote-1" id=
"footnote-reference-9" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>1<span class=
"fn-bracket">]
</span></a>,
<span class=
"target" id=
"hyperlink-targets">hyperlink targets
</span>, and
<a class=
"reference external" href=
"http://www.python.org/">references
</a>.
</pre>
1001 <h4><a class=
"toc-backref" href=
"#toc-entry-63" role=
"doc-backlink"><span class=
"sectnum">2.14.10 </span>Code
</a></h4>
1002 <p>Blocks of source code can be set with the
<cite>code
</cite> directive. If the code
1003 language is specified, the content is parsed and tagged by the
<a class=
"reference external" href=
"http://pygments.org/">Pygments
</a> <a class=
"footnote-reference brackets" href=
"#footnote-8" id=
"footnote-reference-21" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>8<span class=
"fn-bracket">]
</span></a>
1004 syntax highlighter and can be formatted with a style sheet. (Code parsing
1005 is turned off using the
<span class=
"docutils literal"><span class=
"pre">syntax-highlight
</span></span> config setting in the test
1006 conversions in order to get identical results with/without installed
1007 Pygments highlighter.)
</p>
1008 <pre class=
"code python literal-block"><code>print 'This is Python code.'
</code></pre>
1009 <p>The
<span class=
"docutils literal"><span class=
"pre">:number-lines:
</span></span> option (with optional start value) generates line
1011 <pre class=
"code python literal-block"><small class=
"ln"> 8 </small><code data-lineno=
" 8 "># print integers from
0 to
9:
1012 </code><small class=
"ln"> 9 </small><code data-lineno=
" 9 ">for i in range(
10):
1013 </code><small class=
"ln">10 </small><code data-lineno=
"10 "> print i
</code></pre>
1014 <p>For inline code snippets, there is the
<cite>code
</cite> role, which can be used
1015 directly (the code will not be parsed/tagged, as the language is not known)
1016 or as base for special code roles, e.g. the LaTeX code in the next
1018 <p>Docutils uses LaTeX syntax for math directives and roles:
1019 <code class=
"tex">\alpha = f(x)
</code> prints
<span class=
"formula"><i>α
</i> =
<i>f
</i>(
<i>x
</i>)
</span>.
</p>
1020 <p>The
<span class=
"docutils literal">:code:
</span> option of the
<cite>include
</cite> directive sets the included content
1021 as a code block, here the rst file
<span class=
"docutils literal">header_footer.txt
</span> with line numbers:
</p>
1022 <pre class=
"code rst literal-block"><small class=
"ln">1 </small><code data-lineno=
"1 ">.. header:: Document header
1023 </code><small class=
"ln">2 </small><code data-lineno=
"2 ">.. footer:: Document footer
</code></pre>
1026 <h4><a class=
"toc-backref" href=
"#toc-entry-64" role=
"doc-backlink"><span class=
"sectnum">2.14.11 </span>Meta
</a></h4>
1027 <p>The
<a class=
"reference external" href=
"https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">“meta” directive
</a> <a class=
"footnote-reference brackets" href=
"#footnote-15" id=
"footnote-reference-29" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>15<span class=
"fn-bracket">]
</span></a> is used to specify metadata to be stored in,
1028 e.g., HTML META tags or ODT file properties.
</p>
1031 <section id=
"substitution-definitions">
1032 <h3><a class=
"toc-backref" href=
"#toc-entry-34" role=
"doc-backlink"><span class=
"sectnum">2.15 </span>Substitution Definitions
</a></h3>
1033 <p>An inline image (
<img alt=
"EXAMPLE" src=
"../../../docs/user/rst/images/biohazard.png" />) example:
</p>
1034 <p>A Unicode example:
</p>
1035 <p>(Substitution definitions are not visible in the HTML source.)
</p>
1037 <section id=
"comments">
1038 <h3><a class=
"toc-backref" href=
"#toc-entry-35" role=
"doc-backlink"><span class=
"sectnum">2.16 </span>Comments
</a></h3>
1040 <!-- Comments begin with two dots and a space. Anything may
1041 follow, except for the syntax of footnotes, hyperlink
1042 targets, directives, or substitution definitions.
1044 Double-dashes - - "- -" - - must be escaped somehow in HTML output.
1046 Comments may contain non-ASCII characters: ä ö ü æ ø å -->
1047 <p>(View the HTML source to see the comment.)
</p>
1049 <section id=
"raw-text">
1050 <h3><a class=
"toc-backref" href=
"#toc-entry-36" role=
"doc-backlink"><span class=
"sectnum">2.17 </span>Raw text
</a></h3>
1051 <p>This does not necessarily look nice, because there may be missing white space.
</p>
1052 <p>It's just there to freeze the behavior.
</p>
1053 A test.Second test.
<div class=
"myclass">Another test with myclass set.
</div><p>This is the
<span class=
"myrawroleclass">fourth test
</span> with myrawroleclass set.
</p>
1054 Fifth test in HTML.
<br />Line two.
</section>
1055 <section id=
"container">
1056 <h3><a class=
"toc-backref" href=
"#toc-entry-37" role=
"doc-backlink"><span class=
"sectnum">2.18 </span>Container
</a></h3>
1057 <div class=
"custom docutils container">
1062 <section id=
"colspanning-tables">
1063 <h3><a class=
"toc-backref" href=
"#toc-entry-38" role=
"doc-backlink"><span class=
"sectnum">2.19 </span>Colspanning tables
</a></h3>
1064 <p>This table has a cell spanning two columns:
</p>
1067 <tr><th class=
"head" colspan=
"2"><p>Inputs
</p></th>
1068 <th class=
"head"><p>Output
</p></th>
1070 <tr><th class=
"head"><p>A
</p></th>
1071 <th class=
"head"><p>B
</p></th>
1072 <th class=
"head"><p>A or B
</p></th>
1076 <tr><td><p>False
</p></td>
1077 <td><p>False
</p></td>
1078 <td><p>False
</p></td>
1080 <tr><td><p>True
</p></td>
1081 <td><p>False
</p></td>
1082 <td><p>True
</p></td>
1084 <tr><td><p>False
</p></td>
1085 <td><p>True
</p></td>
1086 <td><p>True
</p></td>
1088 <tr><td><p>True
</p></td>
1089 <td><p>True
</p></td>
1090 <td><p>True
</p></td>
1095 <section id=
"rowspanning-tables">
1096 <h3><a class=
"toc-backref" href=
"#toc-entry-39" role=
"doc-backlink"><span class=
"sectnum">2.20 </span>Rowspanning tables
</a></h3>
1097 <p>Here's a table with cells spanning several rows:
</p>
1100 <tr><th class=
"head"><p>Header row, column
1
1101 (header rows optional)
</p></th>
1102 <th class=
"head"><p>Header
2</p></th>
1103 <th class=
"head"><p>Header
3</p></th>
1107 <tr><td><p>body row
1, column
1</p></td>
1108 <td><p>column
2</p></td>
1109 <td><p>column
3</p></td>
1111 <tr><td><p>body row
2</p></td>
1112 <td rowspan=
"2"><p>Cells may
1114 <td rowspan=
"2"><p>Another
1118 <tr><td><p>body row
3</p></td>
1123 <section id=
"complex-tables">
1124 <h3><a class=
"toc-backref" href=
"#toc-entry-40" role=
"doc-backlink"><span class=
"sectnum">2.21 </span>Complex tables
</a></h3>
1125 <p>Here's a complex table, which should test all features.
</p>
1128 <tr><th class=
"head"><p>Header row, column
1
1129 (header rows optional)
</p></th>
1130 <th class=
"head"><p>Header
2</p></th>
1131 <th class=
"head"><p>Header
3</p></th>
1132 <th class=
"head"><p>Header
4</p></th>
1136 <tr><td><p>body row
1, column
1</p></td>
1137 <td><p>column
2</p></td>
1138 <td><p>column
3</p></td>
1139 <td><p>column
4</p></td>
1141 <tr><td><p>body row
2</p></td>
1142 <td colspan=
"3"><p>Cells may span columns.
</p></td>
1144 <tr><td><p>body row
3</p></td>
1145 <td rowspan=
"2"><p>Cells may
1149 <td colspan=
"2" rowspan=
"2"><ul class=
"simple">
1150 <li><p>Table cells
</p></li>
1151 <li><p>contain
</p></li>
1152 <li><p>body elements.
</p></li>
1156 <tr><td><p>body row
4</p></td>
1158 <tr><td><p>body row
5</p></td>
1159 <td colspan=
"2"><p>Cells may also be
1160 empty:
<span class=
"docutils literal"><span class=
"pre">--
></span></span></p></td>
1166 <section id=
"list-tables">
1167 <h3><a class=
"toc-backref" href=
"#toc-entry-41" role=
"doc-backlink"><span class=
"sectnum">2.22 </span>List Tables
</a></h3>
1168 <p>Here's a list table exercising all features:
</p>
1169 <table class=
"test" style=
"width: 95%;">
1170 <caption>list table with integral header
</caption>
1172 <col style=
"width: 26%" />
1173 <col style=
"width: 21%" />
1174 <col style=
"width: 53%" />
1177 <tr><th class=
"head stub"><p>Treat
</p></th>
1178 <th class=
"head"><p>Quantity
</p></th>
1179 <th class=
"head"><p>Description
</p></th>
1183 <tr><th class=
"stub"><p>Albatross
</p></th>
1184 <td><p>2.99</p></td>
1185 <td><p>On a stick!
</p></td>
1187 <tr><th class=
"stub"><p>Crunchy Frog
</p></th>
1188 <td><p>1.49</p></td>
1189 <td><p>If we took the bones out, it wouldn't be
1190 crunchy, now would it?
</p></td>
1192 <tr><th class=
"stub"><p>Gannet Ripple
</p></th>
1193 <td><p>1.99</p></td>
1194 <td><p>On a stick!
</p></td>
1198 <table class=
"align-center">
1199 <caption>center aligned list table
</caption>
1201 <tr><td><p>Albatross
</p></td>
1202 <td><p>2.99</p></td>
1204 <tr><td><p>Crunchy Frog
</p></td>
1205 <td><p>1.49</p></td>
1207 <tr><td><p>Gannet Ripple
</p></td>
1208 <td><p>1.99</p></td>
1213 <section id=
"custom-roles">
1214 <h3><a class=
"toc-backref" href=
"#toc-entry-42" role=
"doc-backlink"><span class=
"sectnum">2.23 </span>Custom Roles
</a></h3>
1216 <li><p>A role based on an existing role.
</p>
1217 <p><span class=
"custom docutils literal">one
</span> <span class=
"custom docutils literal">two
</span> <span class=
"custom docutils literal">three
</span></p>
1219 <li><p>A new role.
</p>
1220 <p><span class=
"customnew">one two three
</span></p>
1222 <li><p>A role with class attribute.
</p>
1223 <p><span class=
"special">interpreted text
</span></p>
1225 <li><p>A language-switching role:
</p>
1226 <p>Let's count in German
<span lang=
"de">eins zwei drei
</span>.
</p>
1228 <li><p>A role with multiple class attributes, styled with raw directives:
</p>
1229 <p>The following works in most browsers but does not validate
1230 (
<span class=
"docutils literal"><style
></span> is only allowed in the document head):
</p>
1231 <pre class=
"literal-block">.. raw:: html
1233 <style type=
"text/css
"><!--
1234 .green {color: green;}
1235 .sc {font-variant: small-caps;}
1236 --
></style
></pre>
1237 <p><span class=
"green sc" lang=
"en-gb">British colourful text in small-caps
</span>.
</p>
1240 <!-- HTML Specific -->
1243 <section id=
"changes-to-the-html4css1-writer">
1244 <h2><a class=
"toc-backref" href=
"#toc-entry-43" role=
"doc-backlink"><span class=
"sectnum">3 </span>Changes to the
<cite>html4css1
</cite> Writer
</a></h2>
1246 <li><p>Use only
<a class=
"reference internal" href=
"#meta">meta
</a> keywords recognized by HTML
5.
1247 Add HTML5-compatible meta tags for docinfo items
1248 "authors
",
"date
", and
"copyright
".
</p>
1249 <p>Add a
<a class=
"reference external" href=
"https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag">viewport meta tag
</a> <a class=
"footnote-reference brackets" href=
"#footnote-16" id=
"footnote-reference-30" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>16<span class=
"fn-bracket">]
</span></a> to tell mobile browsers
1250 to use the device-width as viewport.
</p>
1252 <li><p>Set table column widths with
<style=
"width: ...
">, not
"width
" argument.
</p></li>
1253 <li><p>Horizontal alignment of table heads with CSS.
</p></li>
1254 <li><p>Do not drop paragraph objects, use CSS rules to prevent unwanted vertical
1256 <li><p>Put subtitles in
<p
> elements.
</p></li>
1257 <li><p>Use the new semantic tags
<main
>,
<section
>,
<header
>,
1258 <footer
>,
<aside
>,
<figure
>, and
<figcaption
>.
1259 See
<span class=
"docutils literal">minimal.css
</span> and
<span class=
"docutils literal">responsive.css
</span> for styling rule examples.
</p>
1260 <p>Change the
<cite>initial_header_level
</cite> setting default to
"2", as browsers
1261 use the
<a class=
"reference external" href=
"https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article">same style for
<h1
> and
<h2
> when nested in a
<section
></a> <a class=
"footnote-reference brackets" href=
"#footnote-17" id=
"footnote-reference-31" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>17<span class=
"fn-bracket">]
</span></a>.
</p>
1263 <li><p>Use HTML5 tags
<small
>,
<s
>,
<q
>,
<dfn
>,
<var
>,
<samp
>,
<kbd
>,
1264 <i
>,
<b
>,
<u
>,
<mark
>, and
<bdi
> if a matching class value
1265 is found in
<cite>inline
</cite> and
<cite>literal
</cite> elements.
1266 Use
<ins
> and
<del
> if a matching class value
1267 is found in
<cite>inline
</cite>,
<cite>literal
</cite>, or
<cite>container
</cite> elements.
1268 (See
<a class=
"reference internal" href=
"#text-level-semantics">text-level semantics
</a> and
<a class=
"reference internal" href=
"#indicating-edits">indicating edits
</a>.)
</p></li>
1270 <section id=
"field-list-rendering">
1271 <h3><a class=
"toc-backref" href=
"#toc-entry-44" role=
"doc-backlink"><span class=
"sectnum">3.1 </span>Field List Rendering
</a></h3>
1272 <p>A
<cite>field list
</cite> is converted to a HTML
<cite>definition list
</cite> and given the
1273 <span class=
"docutils literal"><span class=
"pre">field-list
</span></span> class argument value to allow CSS styling.
1274 With
<span class=
"docutils literal">html_plain.css
</span>, the layout is similar to
<cite>html4css1
</cite>:
</p>
1275 <dl class=
"open field-list">
1276 <dt>A long field name
<span class=
"colon">:
</span></dt>
1277 <dd><p>sticks into the field body.
</p>
1278 <p>The field body is pushed to the next line (you can suppress this
1279 behaviour with the
<a class=
"reference internal" href=
"#run-in">run-in
</a> class argument).
</p>
1281 <dt>Customization
<span class=
"colon">:
</span></dt>
1282 <dd><p>of the field name width is possible with CSS instead
1283 of the
<cite>field-name-limit
</cite> configuration setting, for
1285 <pre class=
"literal-block">dl.field-list
> dd { margin-left:
6em; }
</pre>
1287 <dt>Empty
<span class=
"colon">:
</span></dt>
1289 <dt>fields
<span class=
"colon">:
</span></dt>
1290 <dd><p>must not lead to misalignment of the following content.
</p>
1294 <section id=
"styling-with-class-arguments">
1295 <h3><a class=
"toc-backref" href=
"#toc-entry-45" role=
"doc-backlink"><span class=
"sectnum">3.2 </span>Styling with Class Arguments
</a></h3>
1296 <p>The
<span class=
"docutils literal">plain.css
</span> style sheet comes with some pre-defined style variants
1297 that can be choosen via a class argument.
</p>
1298 <section id=
"description-lists">
1299 <h4><a class=
"toc-backref" href=
"#toc-entry-46" role=
"doc-backlink"><span class=
"sectnum">3.2.1 </span>Description Lists
</a></h4>
1300 <p>Definition lists with the
"description
" class argument:
</p>
1301 <dl class=
"description">
1302 <dt>description lists
</dt>
1303 <dd><p>Definition lists that are styled like in most dictionaries,
1304 encyclopedias etc. (as well as the LaTeX
<cite>description
</cite> environment).
</p>
1307 <dd><p>The term to be described. Put in boldface or italic.
</p>
1310 <dd><p>starts on the same line and has a hanging indent.
</p>
1312 <dt>A label without content
</dt>
1315 <dt>and the next label
</dt>
1316 <dd><p>must align.
</p>
1319 <dd><p>as content containing more than one
</p>
1323 <dd><ul class=
"simple">
1324 <li><p>nested lists
</p></li>
1325 <li><p>item
2</p></li>
1329 <dd><dl class=
"simple">
1331 <dd><p>definition lists
</p>
1337 <section id=
"details-disclosure-elements">
1338 <h4><a class=
"toc-backref" href=
"#toc-entry-47" role=
"doc-backlink"><span class=
"sectnum">3.2.2 </span>Details disclosure elements
</a></h4>
1339 <p>Items of
<a class=
"reference internal" href=
"#definition-lists">definition lists
</a> with class argument
"details
" are converted
1340 to
<a class=
"reference external" href=
"https://www.w3.org/TR/html52/interactive-elements.html#the-details-element">details
</a> <a class=
"footnote-reference brackets" href=
"#footnote-9" id=
"footnote-reference-22" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>9<span class=
"fn-bracket">]
</span></a> disclosure elements with the term becoming the
"summary
".
</p>
1342 <summary>A summary
</summary>
1343 <p>with details only visible after user interaction.
</p>
1345 <details open=
"open">
1346 <summary>Another summary
</summary>
1347 <p>with open details because the source list has the additional class
1348 value
"open
".
</p>
1351 <section id=
"field-list-variants">
1352 <h4><a class=
"toc-backref" href=
"#toc-entry-48" role=
"doc-backlink"><span class=
"sectnum">3.2.3 </span>Field List Variants
</a></h4>
1353 <p>For field lists, the
"compact/open
",
"narrow
" and
"run-in
" styles are defined
1354 in the style sheets
<span class=
"docutils literal">plain.css
</span> and
<span class=
"docutils literal">responsive.css
</span>.
</p>
1356 <dt><em>compact
</em></dt>
1357 <dd><dl class=
"compact field-list simple">
1358 <dt>Feature
<span class=
"colon">:
</span></dt>
1359 <dd><p>No additional space between list items.
</p>
1361 <dt>Option
<span class=
"colon">:
</span></dt>
1362 <dd><p>The
<span class=
"docutils literal"><span class=
"pre">--compact-field-lists
</span></span> command line option (and the
1363 corresponding configuration setting) set the
<cite>compact
</cite>
1364 class argument on all
"simple
" field lists, if not
1365 overridden with
<cite>open
</cite>.
</p>
1367 <dt>Use
<span class=
"colon">:
</span></dt>
1368 <dd><p>For lists with short field body.
</p>
1372 <dt><em>open
</em></dt>
1373 <dd><dl class=
"open field-list">
1374 <dt>Feature
<span class=
"colon">:
</span></dt>
1375 <dd><p>Additional space between list items also in
"simple
" lists.
1376 (Overrides the
<span class=
"docutils literal"><span class=
"pre">--compact-field-lists
</span></span> command line
1377 option and the corresponding configuration setting)
</p>
1379 <dt>Use
<span class=
"colon">:
</span></dt>
1380 <dd><p>For
"simple
" lists that should keep the space between list items.
</p>
1384 <dt><em>narrow
</em></dt>
1385 <dd><dl class=
"narrow field-list simple">
1386 <dt>Feature
<span class=
"colon">:
</span></dt>
1387 <dd><p>Less indented field body.
</p>
1389 <dt>Use
<span class=
"colon">:
</span></dt>
1390 <dd><p>For lists with short field names.
</p>
1392 <dt>A long field name
<span class=
"colon">:
</span></dt>
1393 <dd><p>sticks into the field body and the field body starts on a
1394 new line (if not combined with
<a class=
"reference internal" href=
"#run-in">run-in
</a>).
</p>
1398 <dt>custom
<em>field-indent
</em></dt>
1399 <dd><dl class=
"field-list simple" style=
"--field-indent: 3em;">
1400 <dt>Feature
<span class=
"colon">:
</span></dt>
1401 <dd><p>Field body indented by custom amount.
</p>
1403 <dt>Use
<span class=
"colon">:
</span></dt>
1404 <dd><p>class value starting with
<span class=
"docutils literal"><span class=
"pre">field-indent-
</span></span> followed by
1405 a valid lenght, e.g.
<span class=
"docutils literal"><span class=
"pre">field-indent-
3em
</span></span>.
</p>
1407 <dt>The writer
<span class=
"colon">:
</span></dt>
1408 <dd><p>will convert this class value to a
<span class=
"docutils literal">style
</span> attribute setting.
</p>
1413 <dl class=
"simple" id=
"run-in">
1414 <dt><em>run-in
</em></dt>
1415 <dd><dl class=
"run-in field-list simple">
1416 <dt>Feature
<span class=
"colon">:
</span></dt>
1417 <dd><p>Field body starts on the same line also after long field
1420 <dt>A long field name
<span class=
"colon">:
</span></dt>
1421 <dd><p>sticks into the field body which continues on
1424 <dt>The next field name
<span class=
"colon">:
</span></dt>
1425 <dd><p>and field body should align. Long text in the field
1426 body is wrapped and aligns with other fields.
</p>
1432 <section id=
"table-variants">
1433 <h4><a class=
"toc-backref" href=
"#toc-entry-49" role=
"doc-backlink"><span class=
"sectnum">3.2.4 </span>Table Variants
</a></h4>
1434 <p>The following styles can be applied to individual tables via a class
1435 argument or as document wide setting with the
<a class=
"reference external" href=
"http://docutils.sourceforge.net/docs/user/config.html#table-style">table-style
</a> <a class=
"footnote-reference brackets" href=
"#footnote-10" id=
"footnote-reference-23" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>10<span class=
"fn-bracket">]
</span></a> configuration
1436 setting (or command line argument).
</p>
1438 <li><p>Numbered tables can be achieved with the
"numbered
" class option:
</p>
1439 <table class=
"numbered">
1440 <caption>truth values
</caption>
1442 <tr><th class=
"head"><p>A
</p></th>
1443 <th class=
"head"><p>B
</p></th>
1444 <th class=
"head"><p>A or B
</p></th>
1448 <tr><td><p>False
</p></td>
1449 <td><p>False
</p></td>
1450 <td><p>False
</p></td>
1452 <tr><td><p>True
</p></td>
1453 <td><p>False
</p></td>
1454 <td><p>True
</p></td>
1456 <tr><td><p>False
</p></td>
1457 <td><p>True
</p></td>
1458 <td><p>True
</p></td>
1460 <tr><td><p>True
</p></td>
1461 <td><p>True
</p></td>
1462 <td><p>True
</p></td>
1466 <p>Currently, referencing to the table by number is not supported. This is a
1467 common request and already on the
<cite>TODO list
</cite>.
</p>
1469 <li><p>A table with
"booktabs
" class value, is rendered similar to the style
1470 from the
<a class=
"reference external" href=
"http://tug.ctan.org/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf">booktabs
</a> <a class=
"footnote-reference brackets" href=
"#footnote-11" id=
"footnote-reference-24" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>11<span class=
"fn-bracket">]
</span></a> LaTeX package.
</p>
1473 <p>"Booktabs
" style table, numbered, centre-aligned, with auto-sized columns:
</p>
1475 <table class=
"align-center booktabs numbered">
1476 <caption>I/O values
</caption>
1478 <tr><th class=
"head" colspan=
"2"><p>Input
</p></th>
1479 <th class=
"head"><p>Output
</p></th>
1481 <tr><th class=
"head"><p>A
</p></th>
1482 <th class=
"head"><p>B
</p></th>
1483 <th class=
"head"><p>A or B
</p></th>
1487 <tr><td><p>False
</p></td>
1488 <td><p>False
</p></td>
1489 <td><p>False
</p></td>
1491 <tr><td><p>True
</p></td>
1492 <td><p>False
</p></td>
1493 <td><p>True
</p></td>
1495 <tr><td><p>False
</p></td>
1496 <td><p>True
</p></td>
1497 <td><p>True
</p></td>
1499 <tr><td><p>True
</p></td>
1500 <td><p>True
</p></td>
1501 <td><p>True
</p></td>
1507 <section id=
"numbered-figures">
1508 <h4><a class=
"toc-backref" href=
"#toc-entry-50" role=
"doc-backlink"><span class=
"sectnum">3.2.5 </span>Numbered Figures
</a></h4>
1509 <p>Numbered figures can be achieved with the
"numbered
" <span class=
"docutils literal">:figclass:
</span> option:
</p>
1510 <figure class=
"numbered">
1511 <img alt=
"reStructuredText, the markup syntax" src=
"../../../docs/user/rst/images/title.svg" style=
"width: 100%;" />
1513 <p>SVG image in a numbered figure.
</p>
1518 <section id=
"text-level-semantics">
1519 <h3><a class=
"toc-backref" href=
"#toc-entry-51" role=
"doc-backlink"><span class=
"sectnum">3.3 </span>Text-Level Semantics
</a></h3>
1520 <p>This section describes the
<a class=
"reference external" href=
"https://html.spec.whatwg.org/#text-level-semantics">HTML
5 tags for representation of text-level
1521 semantics
</a> <a class=
"footnote-reference brackets" href=
"#footnote-18" id=
"footnote-reference-32" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>18<span class=
"fn-bracket">]
</span></a> and their reStructuredText equivalents.
</p>
1522 <dl class=
"description">
1524 <dd><p>Hyperlinks
</p>
1526 <p>Visit my
<a class=
"reference external" href=
"example.org:drinks.html">drinks
</a> page.
</p>
1530 <dd><p>Stress emphasis
</p>
1532 <p>I must say I
<em>adore
</em> lemonade. I's
<em>sooo
</em> sweet.
</p>
1536 <dd><p>Importance
</p>
1538 <p><strong>Warning
</strong>: This tea is
<strong>very hot
</strong>.
</p>
1542 <dd><p>Side comments
</p>
1544 <p>These grapes are made into wine.
1545 <small>Alcohol is addictive.
</small></p>
1549 <dd><p>Inaccurate text
</p>
1551 <p>Price:
<s>£
4.50</s> £
2.00!
</p>
1555 <dd><p>Titles of works
</p>
1557 <p>The case
<cite>Hugo v. Danielle
</cite> is relevant here.
1558 I recommend reading
<cite>Harry Potter
</cite>.
</p>
1562 <dd><p>Quotations
</p>
1564 <p>The judge said
<q>You can drink water from the fish tank
</q>
1565 but advised against it.
</p>
1569 <dd><p>Defining instance
</p>
1571 <p>The term
<dfn>organic food
</dfn> refers to food produced without synthetic
1576 <dd><p>Abbreviations
<a class=
"footnote-reference brackets" href=
"#attribute-optional" id=
"footnote-reference-10" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>5<span class=
"fn-bracket">]
</span></a></p>
1578 <p>Organic food in Ireland is certified by the
<abbr>IOFGA
</abbr> <a class=
"footnote-reference brackets" href=
"#footnote-6" id=
"footnote-reference-11" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>‡
<span class=
"fn-bracket">]
</span></a></p>
1580 <p>In rST there are separate roles for
<cite>abbreviations
</cite> <abbr>rsp.
</abbr>
1581 <cite>acronymes
</cite>. In HTML, the
<acronym
> tag is obsolete and authors are
1582 advised to use
<abbr
> instead. The HTML5 writer uses
<abbr
> for Docutil's
1583 <abbreviation
> element.
</p>
1584 <aside class=
"footnote brackets" id=
"footnote-6" role=
"note">
1585 <span class=
"label"><span class=
"fn-bracket">[
</span><a role=
"doc-backlink" href=
"#footnote-reference-11">‡
</a><span class=
"fn-bracket">]
</span></span>
1586 <p>Irish Organic Farmers and Growers Association
</p>
1589 <dt>ruby, rt, rp
</dt>
1590 <dd><p>Ruby annotations
</p>
1591 <p>Require inline nesting, currently not supported in rST.
</p>
1592 <!-- <ruby> OJ <rp>(</rp><rt>Orange Juice</rt><rp>)</rp></ruby> -->
1595 <dd><p>Machine-readable equivalent
<a class=
"footnote-reference brackets" href=
"#attribute-required" id=
"footnote-reference-12" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>6<span class=
"fn-bracket">]
</span></a></p>
1596 <!-- Available starting today! <data value="UPC:022014640201">North Coast
1597 Organic Apple Cider</data> -->
1600 <dd><p>Machine-readable equivalent of date- or time-related data
<a class=
"footnote-reference brackets" href=
"#attribute-required" id=
"footnote-reference-13" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>6<span class=
"fn-bracket">]
</span></a></p>
1601 <!-- Available starting on <time datetime="2011-11-18">November 18th</time>! -->
1604 <dd><p>Computer code
</p>
1606 <p>The
<code>fruitdb
</code> program can be used for tracking fruit production.
</p>
1610 <dd><p>Variables
</p>
1612 <p>If there are
<var>n
</var> fruit in the bowl, at least
<var>n
</var>÷
2 will be
1617 <dd><p>Computer output
</p>
1619 <p>The computer said
<samp class=
"docutils literal">Unknown error
<span class=
"pre">-
3</span></samp>.
</p>
1623 <dd><p>User input
</p>
1625 <p>Hit
<kbd>F1
</kbd> to continue.
</p>
1629 <dd><p>Subscripts
</p>
1631 <p>Water is H
<sub>2</sub>O.
</p>
1635 <dd><p>Superscripts
</p>
1637 <p>The Hydrogen in heavy water is usually
<sup>2</sup>H.
</p>
1641 <dd><p>Alternative voice
</p>
1643 <p>Lemonade consists primarily of
<i lang=
"la">Citrus limon
</i>.
</p>
1649 <p>Take a
<b>lemon
</b> and squeeze it with a
<b>juicer
</b>.
</p>
1653 <dd><p>Annotations
</p>
1655 <p>The mixture of apple juice and
<u class=
"spelling">eldeflower
</u> juice is very
1660 <dd><p>Highlight
</p>
1662 <p>Elderflower cordial, with one
<mark>part
</mark> cordial to ten
1663 <mark>part
</mark>s water, stands a
<mark>part
</mark> from the rest.
</p>
1667 <dd><p>Text directionality isolation
<a class=
"footnote-reference brackets" href=
"#attribute-optional" id=
"footnote-reference-14" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>5<span class=
"fn-bracket">]
</span></a></p>
1669 <p>The recommended restaurant is
<bdi>My Juice Café (At The Beach)
</bdi>.
</p>
1671 <p>The
<cite>dir
</cite> global attribute defaults to
"auto
" (not
"inherit
") on this
1675 <dd><p>Text directionality formatting
<a class=
"footnote-reference brackets" href=
"#attribute-required" id=
"footnote-reference-15" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>6<span class=
"fn-bracket">]
</span></a></p>
1676 <!-- The proposal is to write English, but in reverse order. "Juice" would
1677 become "<bdo dir=rtl>Juice</bdo>"> -->
1678 <p>Authors
<em>must
</em> specify the dir attribute on this element.
</p>
1683 <p>In French we call it
<span lang=
"fr">sirop de sureau
</span>.
</p>
1687 <dd><p>Line break
</p>
1688 <p>For complete paragraphs, use a line-block:
</p>
1690 <div class=
"line-block">
1691 <div class=
"line">Simply Orange Juice Company
</div>
1692 <div class=
"line">Apopka, FL
32703</div>
1693 <div class=
"line">U.S.A.
</div>
1696 <p>rST does not natively support an exceptional hard line break in a floating
1697 paragraph. You may use a HTML-only substitution.
</p>
1699 <p>I want to break this line after the colon:
<br /> but allow other
1700 linebreaks in this paragraph according to the width of the containing
1705 <dd><p>Line breaking opportunity
</p>
1706 <p>Not supported by rST. You may use a ZWSP character (u200B), literal or via
1709 <p>www.simplyorangejuice.com
</p>
1713 <aside class=
"footnote brackets" id=
"attribute-optional" role=
"note">
1714 <span class=
"label"><span class=
"fn-bracket">[
</span>5<span class=
"fn-bracket">]
</span></span>
1715 <span class=
"backrefs">(
<a role=
"doc-backlink" href=
"#footnote-reference-10">1</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-14">2</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-16">3</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-17">4</a>)
</span>
1716 <p>Would gain from support for attributes/arguments
1717 to inline roles. See
<a class=
"reference external" href=
"http://docutils.sourceforge.net/docs/dev/todo.html#interpreted-text">TODO
</a> <a class=
"footnote-reference brackets" href=
"#footnote-12" id=
"footnote-reference-25" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>12<span class=
"fn-bracket">]
</span></a></p>
1719 <aside class=
"footnote brackets" id=
"attribute-required" role=
"note">
1720 <span class=
"label"><span class=
"fn-bracket">[
</span>6<span class=
"fn-bracket">]
</span></span>
1721 <span class=
"backrefs">(
<a role=
"doc-backlink" href=
"#footnote-reference-12">1</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-13">2</a>,
<a role=
"doc-backlink" href=
"#footnote-reference-15">3</a>)
</span>
1722 <p>Requires support for attributes to inline
1723 roles to make sense.
</p>
1726 <section id=
"indicating-edits">
1727 <h3><a class=
"toc-backref" href=
"#toc-entry-52" role=
"doc-backlink"><span class=
"sectnum">3.4 </span>Indicating Edits
</a></h3>
1728 <p>The
<a class=
"reference external" href=
"https://html.spec.whatwg.org/multipage/edits.html">HTML tags for representation of edits to the document
</a> <a class=
"footnote-reference brackets" href=
"#footnote-19" id=
"footnote-reference-33" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>19<span class=
"fn-bracket">]
</span></a> and their
1729 reStructuredText equivalents are:
</p>
1730 <dl class=
"description">
1732 <dd><p>Additions
<a class=
"footnote-reference brackets" href=
"#attribute-optional" id=
"footnote-reference-16" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>5<span class=
"fn-bracket">]
</span></a></p>
1734 <p>This text has
"always
" been here.
<ins>This text has been inserted.
</ins></p>
1735 <ins class=
"docutils container">
1736 <p>This paragraph has been inserted.
</p>
1741 <dd><p>Removed content
<a class=
"footnote-reference brackets" href=
"#attribute-optional" id=
"footnote-reference-17" role=
"doc-noteref"><span class=
"fn-bracket">[
</span>5<span class=
"fn-bracket">]
</span></a></p>
1743 <p><del>This text has been deleted
</del>, here is the rest of the paragraph.
</p>
1744 <del class=
"docutils container">
1745 <p>This paragraph has been deleted.
</p>
1752 <section id=
"error-handling">
1753 <h2><a class=
"toc-backref" href=
"#toc-entry-53" role=
"doc-backlink"><span class=
"sectnum">4 </span>Error Handling
</a></h2>
1754 <p>Any errors caught during processing will generate system messages.
</p>
1755 <p>There should be five messages in the following, auto-generated
1756 section,
"Docutils System Messages
":
</p>
1757 <!-- section should be added by Docutils automatically -->
1759 <section class=
"system-messages">
1760 <h2>Docutils System Messages
</h2>
1761 <aside class=
"system-message" id=
"system-message-1">
1762 <p class=
"system-message-title">System Message: ERROR/
3 (
<span class=
"docutils literal">functional/input/data/standard.txt
</span>, line
99);
<em><a href=
"#problematic-1">backlink
</a></em></p>
1763 <p>Undefined substitution referenced:
"problematic
".
</p>
1765 <aside class=
"system-message" id=
"system-message-2">
1766 <p class=
"system-message-title">System Message: ERROR/
3 (
<span class=
"docutils literal">functional/input/data/standard.txt
</span>, line
387);
<em><a href=
"#footnote-reference-8">backlink
</a></em></p>
1767 <p>Unknown target name:
"5".
</p>
1769 <aside class=
"system-message" id=
"system-message-3">
1770 <p class=
"system-message-title">System Message: ERROR/
3 (
<span class=
"docutils literal">functional/input/data/standard.txt
</span>, line
396);
<em><a href=
"#citation-reference-3">backlink
</a></em></p>
1771 <p>Unknown target name:
"nonexistent
".
</p>
1773 <aside class=
"system-message" id=
"system-message-4">
1774 <p class=
"system-message-title">System Message: ERROR/
3 (
<span class=
"docutils literal">functional/input/data/standard.txt
</span>, line
423);
<em><a href=
"#problematic-2">backlink
</a></em></p>
1775 <p>Unknown target name:
"hyperlink reference without a target
".
</p>
1777 <aside class=
"system-message" id=
"system-message-5">
1778 <p class=
"system-message-title">System Message: ERROR/
3 (
<span class=
"docutils literal">functional/input/data/standard.txt
</span>, line
436);
<em><a href=
"#problematic-3">backlink
</a></em></p>
1779 <p>Duplicate target name, cannot be used as a unique reference:
"duplicate target names
".
</p>
1784 <p>Document footer
</p>
1785 <p><a class=
"reference external image-reference" href=
"http://www.w3.org/TR/html5/"><img alt=
"Conforms to HTML 5" src=
"http://www.w3.org/html/logo/badge/html5-badge-h-css3-semantics.png" style=
"width: 88px; height: 31px;" /></a> <a class=
"reference external image-reference" href=
"http://validator.w3.org/check?uri=referer"><img alt=
"Check validity!" src=
"https://www.w3.org/Icons/ValidatorSuite/vs-blue-190.png" style=
"width: 88px; height: 31px;" /></a> <a class=
"reference external image-reference" href=
"http://jigsaw.w3.org/css-validator/check/referer"><img alt=
"Valid CSS 2.1!" src=
"http://jigsaw.w3.org/css-validator/images/vcss" style=
"width: 88px; height: 31px;" /></a></p>