Version: 0.18.1b1.dev
[docutils.git] / docutils / test / functional / expected / standalone_rst_html4css1.html
blob3db6bbdfe6924ad91732fa6073d922dc3af3f390
1 <?xml version="1.0" encoding="utf-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.18.1b1.dev: 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" />
10 <meta name="author" content="David Goodger" />
11 <meta name="authors" content="Me Myself I" />
12 <meta name="organization" content="humankind" />
13 <meta name="date" content="Now, or yesterday. Or maybe even before yesterday." />
14 <meta name="copyright" 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." />
15 <link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
16 <link rel="stylesheet" href="../input/data/math.css" type="text/css" />
17 </head>
18 <body>
19 <div class="header">
20 Document header
21 <hr class="header"/>
22 </div>
23 <div class="document" id="restructuredtext-test-document">
24 <span id="doctitle"></span>
25 <h1 class="title">reStructuredText Test Document</h1>
26 <h2 class="subtitle" id="examples-of-syntax-constructs"><span id="subtitle"></span>Examples of Syntax Constructs</h2>
27 <table class="docinfo" frame="void" rules="none">
28 <col class="docinfo-name" />
29 <col class="docinfo-content" />
30 <tbody valign="top">
31 <tr><th class="docinfo-name">Author:</th>
32 <td>David Goodger</td></tr>
33 <tr><th class="docinfo-name">Address:</th>
34 <td><pre class="address">
35 123 Example Street
36 Example, EX Canada
37 A1B 2C3
38 </pre>
39 </td></tr>
40 <tr><th class="docinfo-name">Contact:</th>
41 <td><a class="first last reference external" href="mailto:goodger&#64;python.org">goodger&#64;python.org</a></td></tr>
42 <tr><th class="docinfo-name">Authors:</th>
43 <td>Me
44 <br />Myself
45 <br />I</td></tr>
46 <tr><th class="docinfo-name">Organization:</th>
47 <td>humankind</td></tr>
48 <tr><th class="docinfo-name">Date:</th>
49 <td>Now, or yesterday. Or maybe even <em>before</em> yesterday.</td></tr>
50 <tr><th class="docinfo-name">Status:</th>
51 <td>This is a &quot;work in progress&quot;</td></tr>
52 <tr><th class="docinfo-name">Revision:</th>
53 <td>is managed by a version control system.</td></tr>
54 <tr><th class="docinfo-name">Version:</th>
55 <td>1</td></tr>
56 <tr><th class="docinfo-name">Copyright:</th>
57 <td>This document has been placed in the public domain. You
58 may do with it as you wish. You may copy, modify,
59 redistribute, reattribute, sell, buy, rent, lease,
60 destroy, or improve it, quote it at length, excerpt,
61 incorporate, collate, fold, staple, or mutilate it, or do
62 anything else to it that your or anyone else's heart
63 desires.</td></tr>
64 <tr class="field-name field"><th class="docinfo-name">field name:</th><td class="field-body">This is a &quot;generic bibliographic field&quot;.</td>
65 </tr>
66 <tr class="field-name-2 field"><th class="docinfo-name">field name &quot;2&quot;:</th><td class="field-body"><p class="first">Generic bibliographic fields may contain multiple body elements.</p>
67 <p class="last">Like this.</p>
68 </td>
69 </tr>
70 </tbody>
71 </table>
72 <div class="dedication topic">
73 <p class="topic-title">Dedication</p>
74 <p>For Docutils users &amp; co-developers.</p>
75 </div>
76 <div class="abstract topic">
77 <p class="topic-title">Abstract</p>
78 <p>This is a test document, containing at least one example of each
79 reStructuredText construct.</p>
80 </div>
81 <!-- This is a comment. Note how any initial comments are moved by
82 transforms to after the document title, subtitle, and docinfo. -->
83 <!-- Above is the document title, and below is the subtitle.
84 They are transformed from section titles after parsing. -->
85 <!-- bibliographic fields (which also require a transform): -->
86 <div class="contents topic" id="table-of-contents">
87 <p class="topic-title">Table of Contents</p>
88 <ul class="auto-toc simple">
89 <li><a class="reference internal" href="#structural-elements" id="toc-entry-1">1&nbsp;&nbsp;&nbsp;Structural Elements</a><ul class="auto-toc">
90 <li><a class="reference internal" href="#section-title" id="toc-entry-2">1.1&nbsp;&nbsp;&nbsp;Section Title</a></li>
91 <li><a class="reference internal" href="#empty-section" id="toc-entry-3">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></li>
92 <li><a class="reference internal" href="#transitions" id="toc-entry-4">1.3&nbsp;&nbsp;&nbsp;Transitions</a></li>
93 </ul>
94 </li>
95 <li><a class="reference internal" href="#body-elements" id="toc-entry-5">2&nbsp;&nbsp;&nbsp;Body Elements</a><ul class="auto-toc">
96 <li><a class="reference internal" href="#paragraphs" id="toc-entry-6">2.1&nbsp;&nbsp;&nbsp;Paragraphs</a><ul class="auto-toc">
97 <li><a class="reference internal" href="#inline-markup" id="toc-entry-7">2.1.1&nbsp;&nbsp;&nbsp;Inline Markup</a></li>
98 </ul>
99 </li>
100 <li><a class="reference internal" href="#bullet-lists" id="toc-entry-8">2.2&nbsp;&nbsp;&nbsp;Bullet Lists</a></li>
101 <li><a class="reference internal" href="#enumerated-lists" id="toc-entry-9">2.3&nbsp;&nbsp;&nbsp;Enumerated Lists</a></li>
102 <li><a class="reference internal" href="#definition-lists" id="toc-entry-10">2.4&nbsp;&nbsp;&nbsp;Definition Lists</a></li>
103 <li><a class="reference internal" href="#field-lists" id="toc-entry-11">2.5&nbsp;&nbsp;&nbsp;Field Lists</a></li>
104 <li><a class="reference internal" href="#option-lists" id="toc-entry-12">2.6&nbsp;&nbsp;&nbsp;Option Lists</a></li>
105 <li><a class="reference internal" href="#literal-blocks" id="toc-entry-13">2.7&nbsp;&nbsp;&nbsp;Literal Blocks</a></li>
106 <li><a class="reference internal" href="#line-blocks" id="toc-entry-14">2.8&nbsp;&nbsp;&nbsp;Line Blocks</a></li>
107 <li><a class="reference internal" href="#block-quotes" id="toc-entry-15">2.9&nbsp;&nbsp;&nbsp;Block Quotes</a></li>
108 <li><a class="reference internal" href="#doctest-blocks" id="toc-entry-16">2.10&nbsp;&nbsp;&nbsp;Doctest Blocks</a></li>
109 <li><a class="reference internal" href="#footnotes" id="toc-entry-17">2.11&nbsp;&nbsp;&nbsp;Footnotes</a></li>
110 <li><a class="reference internal" href="#citations" id="toc-entry-18">2.12&nbsp;&nbsp;&nbsp;Citations</a></li>
111 <li><a class="reference internal" href="#targets" id="toc-entry-19">2.13&nbsp;&nbsp;&nbsp;Targets</a><ul class="auto-toc">
112 <li><a class="reference internal" href="#duplicate-target-names" id="toc-entry-20">2.13.1&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></li>
113 <li><a class="reference internal" href="#duplicate-target-names-1" id="toc-entry-21">2.13.2&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></li>
114 </ul>
115 </li>
116 <li><a class="reference internal" href="#directives" id="toc-entry-22">2.14&nbsp;&nbsp;&nbsp;Directives</a><ul class="auto-toc">
117 <li><a class="reference internal" href="#document-parts" id="toc-entry-23">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></li>
118 <li><a class="reference internal" href="#images-and-figures" id="toc-entry-24">2.14.2&nbsp;&nbsp;&nbsp;Images and Figures</a></li>
119 <li><a class="reference internal" href="#tables" id="toc-entry-25">2.14.3&nbsp;&nbsp;&nbsp;Tables</a></li>
120 <li><a class="reference internal" href="#admonitions" id="toc-entry-26">2.14.4&nbsp;&nbsp;&nbsp;Admonitions</a></li>
121 <li><a class="reference internal" href="#topics-sidebars-and-rubrics" id="toc-entry-27">2.14.5&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></li>
122 <li><a class="reference internal" href="#target-footnotes" id="toc-entry-28">2.14.6&nbsp;&nbsp;&nbsp;Target Footnotes</a></li>
123 <li><a class="reference internal" href="#replacement-text" id="toc-entry-29">2.14.7&nbsp;&nbsp;&nbsp;Replacement Text</a></li>
124 <li><a class="reference internal" href="#compound-paragraph" id="toc-entry-30">2.14.8&nbsp;&nbsp;&nbsp;Compound Paragraph</a></li>
125 <li><a class="reference internal" href="#parsed-literal-blocks" id="toc-entry-31">2.14.9&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></li>
126 <li><a class="reference internal" href="#code" id="toc-entry-32">2.14.10&nbsp;&nbsp;&nbsp;Code</a></li>
127 <li><a class="reference internal" href="#meta" id="toc-entry-33">2.14.11&nbsp;&nbsp;&nbsp;Meta</a></li>
128 </ul>
129 </li>
130 <li><a class="reference internal" href="#substitution-definitions" id="toc-entry-34">2.15&nbsp;&nbsp;&nbsp;Substitution Definitions</a></li>
131 <li><a class="reference internal" href="#comments" id="toc-entry-35">2.16&nbsp;&nbsp;&nbsp;Comments</a></li>
132 <li><a class="reference internal" href="#raw-text" id="toc-entry-36">2.17&nbsp;&nbsp;&nbsp;Raw text</a></li>
133 <li><a class="reference internal" href="#container" id="toc-entry-37">2.18&nbsp;&nbsp;&nbsp;Container</a></li>
134 <li><a class="reference internal" href="#colspanning-tables" id="toc-entry-38">2.19&nbsp;&nbsp;&nbsp;Colspanning tables</a></li>
135 <li><a class="reference internal" href="#rowspanning-tables" id="toc-entry-39">2.20&nbsp;&nbsp;&nbsp;Rowspanning tables</a></li>
136 <li><a class="reference internal" href="#complex-tables" id="toc-entry-40">2.21&nbsp;&nbsp;&nbsp;Complex tables</a></li>
137 <li><a class="reference internal" href="#list-tables" id="toc-entry-41">2.22&nbsp;&nbsp;&nbsp;List Tables</a></li>
138 <li><a class="reference internal" href="#custom-roles" id="toc-entry-42">2.23&nbsp;&nbsp;&nbsp;Custom Roles</a></li>
139 <li><a class="reference internal" href="#svg-images" id="toc-entry-43">2.24&nbsp;&nbsp;&nbsp;SVG Images</a></li>
140 <li><a class="reference internal" href="#swf-images" id="toc-entry-44">2.25&nbsp;&nbsp;&nbsp;SWF Images</a></li>
141 </ul>
142 </li>
143 <li><a class="reference internal" href="#error-handling" id="toc-entry-45">3&nbsp;&nbsp;&nbsp;Error Handling</a></li>
144 </ul>
145 </div>
146 <div class="section" id="structural-elements">
147 <h1><a class="toc-backref" href="#toc-entry-1">1&nbsp;&nbsp;&nbsp;Structural Elements</a></h1>
148 <div class="section" id="section-title">
149 <h2 class="with-subtitle"><a class="toc-backref" href="#toc-entry-2">1.1&nbsp;&nbsp;&nbsp;Section Title</a></h2>
150 <h2 class="section-subtitle" id="section-subtitle"><span class="section-subtitle">Section Subtitle</span></h2>
151 <p>Lone subsections are converted to a section subtitle by a transform
152 activated with the <tt class="docutils literal"><span class="pre">--section-subtitles</span></tt> command line option or the
153 <tt class="docutils literal"><span class="pre">sectsubtitle-xform</span></tt> configuration value.</p>
154 </div>
155 <div class="section" id="empty-section">
156 <h2><a class="toc-backref" href="#toc-entry-3">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></h2>
157 </div>
158 <div class="section" id="transitions">
159 <h2><a class="toc-backref" href="#toc-entry-4">1.3&nbsp;&nbsp;&nbsp;Transitions</a></h2>
160 <p>Here's a transition:</p>
161 <hr class="docutils" />
162 <p>It divides the section. Transitions may also occur between sections:</p>
163 </div>
164 </div>
165 <hr class="docutils" />
166 <div class="section" id="body-elements">
167 <h1><a class="toc-backref" href="#toc-entry-5">2&nbsp;&nbsp;&nbsp;Body Elements</a></h1>
168 <div class="section" id="paragraphs">
169 <h2><a class="toc-backref" href="#toc-entry-6">2.1&nbsp;&nbsp;&nbsp;Paragraphs</a></h2>
170 <p>A paragraph.</p>
171 <div class="section" id="inline-markup">
172 <h3><a class="toc-backref" href="#toc-entry-7">2.1.1&nbsp;&nbsp;&nbsp;Inline Markup</a></h3>
173 <p>Paragraphs contain text and may contain inline markup: <em>emphasis</em>,
174 <strong>strong emphasis</strong>, <tt class="docutils literal">inline literals</tt>, standalone hyperlinks
175 (<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" href="#footnote-6" id="footnote-reference-10">[5]</a>), internal
176 cross-references (<a class="reference internal" href="#example">example</a>), external hyperlinks with embedded URIs
177 (<a class="reference external" href="http://www.python.org">Python web site</a>), <a class="reference external" href="http://www.python.org/">anonymous hyperlink
178 references</a> <a class="footnote-reference" href="#footnote-6" id="footnote-reference-14">[5]</a> (<a class="reference external" href="https://docutils.sourceforge.io/">a second reference</a> <a class="footnote-reference" href="#footnote-8" id="footnote-reference-15">[7]</a>), footnote references (manually
179 numbered <a class="footnote-reference" href="#footnote-1" id="footnote-reference-1">[1]</a>, anonymous auto-numbered <a class="footnote-reference" href="#footnote-2" id="footnote-reference-2">[3]</a>, labeled auto-numbered
180 <a class="footnote-reference" href="#label" id="footnote-reference-3">[2]</a>, or symbolic <a class="footnote-reference" href="#footnote-3" id="footnote-reference-4">[*]</a>), citation references (see <a class="citation-reference" href="#cit2002" id="citation-reference-1">[CIT2002]</a>),
181 substitution references (<img alt="EXAMPLE" src="../../../docs/user/rst/images/biohazard.png" /> &amp;
182 a <em>trimmed heart</em> <tt class="docutils literal">(U+2665):</tt>♥), and <span class="target" id="inline-hyperlink-targets">inline hyperlink targets</span>
183 (see <a class="reference internal" href="#targets">Targets</a> below for a reference back to here). Character-level
184 inline markup is also possible (although exceedingly ugly!) in <em>re</em><tt class="docutils literal">Structured</tt><em>Text</em>. Problems are indicated by <a href="#system-message-1"><span class="problematic" id="problematic-1">|problematic|</span></a> text
185 (generated by processing errors; this one is intentional). Here is a
186 reference to the <a class="reference internal" href="#doctitle">doctitle</a> and the <a class="reference internal" href="#subtitle">subtitle</a>.</p>
187 <p>The default role for interpreted text is <cite>Title Reference</cite>. Here are
188 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
189 RFC reference (<a class="reference external" href="http://tools.ietf.org/html/rfc2822.html">RFC 2822</a>); an abbreviation (<abbr>abb.</abbr>), an acronym
190 (<acronym>reST</acronym>), code (<code>print &quot;hello world&quot;</code>); a <sub>subscript</sub>;
191 a <sup>superscript</sup> and explicit roles for <cite>Docutils</cite>'
192 <em>standard</em> <strong>inline</strong> <tt class="docutils literal">markup</tt>.</p>
193 <!-- DO NOT RE-WRAP THE FOLLOWING PARAGRAPH! -->
194 <p>Let's test wrapping and whitespace significance in inline literals:
195 <tt 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>
196 <span class="pre">strangely--hyphenated-words.</span>&nbsp; <span class="pre">Adjust-the-width-of-your-browser-window</span>
197 to see how the text is wrapped.&nbsp; <span class="pre">--</span> <span class="pre">----</span> <span class="pre">--------</span>&nbsp; Now note&nbsp;&nbsp;&nbsp; the
198 spacing&nbsp;&nbsp;&nbsp; between the&nbsp;&nbsp;&nbsp; words of&nbsp;&nbsp;&nbsp; this sentence&nbsp;&nbsp;&nbsp; (words
199 should&nbsp;&nbsp;&nbsp; be grouped&nbsp;&nbsp;&nbsp; in pairs).</tt></p>
200 <p>If the <tt class="docutils literal"><span class="pre">--pep-references</span></tt> option was supplied, there should be a
201 live link to PEP 258 here.</p>
202 </div>
203 </div>
204 <div class="section" id="bullet-lists">
205 <h2><a class="toc-backref" href="#toc-entry-8">2.2&nbsp;&nbsp;&nbsp;Bullet Lists</a></h2>
206 <ul>
207 <li><p class="first">A bullet list</p>
208 <ul class="simple">
209 <li>Nested bullet list.</li>
210 <li>Nested item 2.</li>
211 </ul>
212 </li>
213 <li><p class="first">Item 2.</p>
214 <p>Paragraph 2 of item 2.</p>
215 <ul class="simple">
216 <li>Nested bullet list.</li>
217 <li>Nested item 2.<ul>
218 <li>Third level.</li>
219 <li>Item 2.</li>
220 </ul>
221 </li>
222 <li>Nested item 3.</li>
223 <li>This nested list should be compacted by the HTML writer.<span class="target" id="target"></span><!-- Even if this item contains a target and a comment. -->
224 </li>
225 </ul>
226 </li>
227 </ul>
228 </div>
229 <div class="section" id="enumerated-lists">
230 <h2><a class="toc-backref" href="#toc-entry-9">2.3&nbsp;&nbsp;&nbsp;Enumerated Lists</a></h2>
231 <ol class="arabic">
232 <li><p class="first">Arabic numerals.</p>
233 <ol class="loweralpha simple">
234 <li>lower alpha)<ol class="lowerroman">
235 <li>(lower roman)<ol class="upperalpha">
236 <li>upper alpha.<ol class="upperroman">
237 <li>upper roman)</li>
238 </ol>
239 </li>
240 </ol>
241 </li>
242 </ol>
243 </li>
244 </ol>
245 </li>
246 <li><p class="first">Lists that don't start at 1:</p>
247 <ol class="arabic simple" start="3">
248 <li>Three</li>
249 <li>Four</li>
250 </ol>
251 <ol class="upperalpha simple" start="3">
252 <li>C</li>
253 <li>D</li>
254 </ol>
255 <ol class="lowerroman simple" start="3">
256 <li>iii</li>
257 <li>iv</li>
258 </ol>
259 </li>
260 </ol>
261 </div>
262 <div class="section" id="definition-lists">
263 <h2><a class="toc-backref" href="#toc-entry-10">2.4&nbsp;&nbsp;&nbsp;Definition Lists</a></h2>
264 <dl class="docutils">
265 <dt>Term</dt>
266 <dd>Definition</dd>
267 <dt>Term <span class="classifier-delimiter">:</span> <span class="classifier">classifier</span></dt>
268 <dd><p class="first">Definition paragraph 1.</p>
269 <p class="last">Definition paragraph 2.</p>
270 </dd>
271 <dt>Term</dt>
272 <dd>Definition</dd>
273 <dt>Term <span class="classifier-delimiter">:</span> <span class="classifier">classifier one</span> <span class="classifier-delimiter">:</span> <span class="classifier">classifier two</span></dt>
274 <dd>Definition</dd>
275 </dl>
276 </div>
277 <div class="section" id="field-lists">
278 <h2><a class="toc-backref" href="#toc-entry-11">2.5&nbsp;&nbsp;&nbsp;Field Lists</a></h2>
279 <table class="docutils field-list" frame="void" rules="none">
280 <col class="field-name" />
281 <col class="field-body" />
282 <tbody valign="top">
283 <tr class="field"><th class="field-name">what:</th><td class="field-body"><p class="first">Field lists map field names to field bodies, like database
284 records. They are often part of an extension syntax. They are
285 an unambiguous variant of RFC 2822 fields.</p>
286 </td>
287 </tr>
288 <tr class="field"><th class="field-name">how arg1 arg2:</th><td class="field-body"><p class="first">The field marker is a colon, the field name, and a colon.</p>
289 <p>The field body may contain one or more body elements, indented
290 relative to the field marker.</p>
291 </td>
292 </tr>
293 <tr class="field"><th class="field-name">credits:</th><td class="field-body"><p class="credits first last">This paragraph has the <cite>credits</cite> class set. (This is actually not
294 about credits but just for ensuring that the class attribute
295 doesn't get stripped away.)</p>
296 </td>
297 </tr>
298 </tbody>
299 </table>
300 </div>
301 <div class="section" id="option-lists">
302 <h2><a class="toc-backref" href="#toc-entry-12">2.6&nbsp;&nbsp;&nbsp;Option Lists</a></h2>
303 <p>For listing command-line options:</p>
304 <table class="docutils option-list" frame="void" rules="none">
305 <col class="option" />
306 <col class="description" />
307 <tbody valign="top">
308 <tr><td class="option-group">
309 <kbd><span class="option">-a</span></kbd></td>
310 <td>command-line option &quot;a&quot;</td></tr>
311 <tr><td class="option-group">
312 <kbd><span class="option">-b <var>file</var></span></kbd></td>
313 <td>options can have arguments
314 and long descriptions</td></tr>
315 <tr><td class="option-group">
316 <kbd><span class="option">--long</span></kbd></td>
317 <td>options can be long also</td></tr>
318 <tr><td class="option-group">
319 <kbd><span class="option">--input=<var>file</var></span></kbd></td>
320 <td>long options can also have
321 arguments</td></tr>
322 <tr><td class="option-group" colspan="2">
323 <kbd><span class="option">--very-long-option</span></kbd></td>
324 </tr>
325 <tr><td>&nbsp;</td><td><p class="first">The description can also start on the next line.</p>
326 <p class="last">The description may contain multiple body elements,
327 regardless of where it starts.</p>
328 </td></tr>
329 <tr><td class="option-group">
330 <kbd><span class="option">-x</span>, <span class="option">-y</span>, <span class="option">-z</span></kbd></td>
331 <td>Multiple options are an &quot;option group&quot;.</td></tr>
332 <tr><td class="option-group">
333 <kbd><span class="option">-v</span>, <span class="option">--verbose</span></kbd></td>
334 <td>Commonly-seen: short &amp; long options.</td></tr>
335 <tr><td class="option-group" colspan="2">
336 <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></td>
337 </tr>
338 <tr><td>&nbsp;</td><td>Multiple options with arguments.</td></tr>
339 <tr><td class="option-group">
340 <kbd><span class="option">/V</span></kbd></td>
341 <td>DOS/VMS-style options too</td></tr>
342 </tbody>
343 </table>
344 <p>There must be at least two spaces between the option and the
345 description.</p>
346 </div>
347 <div class="section" id="literal-blocks">
348 <h2><a class="toc-backref" href="#toc-entry-13">2.7&nbsp;&nbsp;&nbsp;Literal Blocks</a></h2>
349 <p>Literal blocks are indicated with a double-colon (&quot;::&quot;) at the end of
350 the preceding paragraph (over there <tt class="docutils literal"><span class="pre">--&gt;</span></tt>). They can be indented:</p>
351 <pre class="literal-block">
352 if literal_block:
353 text = 'is left as-is'
354 spaces_and_linebreaks = 'are preserved'
355 markup_processing = None
356 </pre>
357 <p>Or they can be quoted without indentation:</p>
358 <pre class="literal-block">
359 &gt;&gt; Great idea!
360 &gt;
361 &gt; Why didn't I think of that?
362 </pre>
363 </div>
364 <div class="section" id="line-blocks">
365 <h2><a class="toc-backref" href="#toc-entry-14">2.8&nbsp;&nbsp;&nbsp;Line Blocks</a></h2>
366 <p>This section tests line blocks. Line blocks are body elements which
367 consist of lines and other line blocks. Nested line blocks cause
368 indentation.</p>
369 <div class="line-block">
370 <div class="line">This is a line block. It ends with a blank line.</div>
371 <div class="line-block">
372 <div class="line">New lines begin with a vertical bar (&quot;|&quot;).</div>
373 <div class="line">Line breaks and initial indent are significant, and preserved.</div>
374 <div class="line-block">
375 <div class="line">Continuation lines are also possible. A long line that is intended
376 to wrap should begin with a space in place of the vertical bar.</div>
377 </div>
378 <div class="line">The left edge of a continuation line need not be aligned with
379 the left edge of the text above it.</div>
380 </div>
381 </div>
382 <div class="line-block">
383 <div class="line">This is a second line block.</div>
384 <div class="line"><br /></div>
385 <div class="line">Blank lines are permitted internally, but they must begin with a &quot;|&quot;.</div>
386 </div>
387 <p>Another line block, surrounded by paragraphs:</p>
388 <div class="line-block">
389 <div class="line">And it's no good waiting by the window</div>
390 <div class="line">It's no good waiting for the sun</div>
391 <div class="line">Please believe me, the things you dream of</div>
392 <div class="line">They don't fall in the lap of no-one</div>
393 </div>
394 <p>Take it away, Eric the Orchestra Leader!</p>
395 <blockquote>
396 <div class="line-block">
397 <div class="line">A one, two, a one two three four</div>
398 <div class="line"><br /></div>
399 <div class="line">Half a bee, philosophically,</div>
400 <div class="line-block">
401 <div class="line">must, <em>ipso facto</em>, half not be.</div>
402 </div>
403 <div class="line">But half the bee has got to be,</div>
404 <div class="line-block">
405 <div class="line"><em>vis a vis</em> its entity. D'you see?</div>
406 <div class="line"><br /></div>
407 </div>
408 <div class="line">But can a bee be said to be</div>
409 <div class="line-block">
410 <div class="line">or not to be an entire bee,</div>
411 <div class="line-block">
412 <div class="line">when half the bee is not a bee,</div>
413 <div class="line-block">
414 <div class="line">due to some ancient injury?</div>
415 <div class="line"><br /></div>
416 </div>
417 </div>
418 </div>
419 <div class="line">Singing...</div>
420 </div>
421 </blockquote>
422 <p>A line block, like the following poem by Christian Morgenstern, can
423 also be centre-aligned:</p>
424 <div class="align-center line-block" lang="de">
425 <div class="line"><strong>Die Trichter</strong></div>
426 <div class="line"><br /></div>
427 <div class="line">Zwei Trichter wandeln durch die Nacht.</div>
428 <div class="line">Durch ihres Rumpfs verengten Schacht</div>
429 <div class="line">fließt weißes Mondlicht</div>
430 <div class="line">still und heiter</div>
431 <div class="line">auf &nbsp; ihren</div>
432 <div class="line">Waldweg</div>
433 <div class="line">u. s.</div>
434 <div class="line">w.</div>
435 <div class="line"><br /></div>
436 </div>
437 </div>
438 <div class="section" id="block-quotes">
439 <h2><a class="toc-backref" href="#toc-entry-15">2.9&nbsp;&nbsp;&nbsp;Block Quotes</a></h2>
440 <p>Block quotes consist of indented body elements:</p>
441 <blockquote>
442 <p>My theory by A. Elk. Brackets Miss, brackets. This theory goes
443 as follows and begins now. All brontosauruses are thin at one
444 end, much much thicker in the middle and then thin again at the
445 far end. That is my theory, it is mine, and belongs to me and I
446 own it, and what it is too.</p>
447 <p class="attribution">&mdash;Anne Elk (Miss)</p>
448 </blockquote>
449 <p>The language of a quote (like any other object) can be specified by
450 a class attribute:</p>
451 <!-- -->
452 <blockquote lang="fr">
453 ReStructuredText est un langage de balisage léger utilisé
454 notamment dans la documentation du langage Python.</blockquote>
455 </div>
456 <div class="section" id="doctest-blocks">
457 <h2><a class="toc-backref" href="#toc-entry-16">2.10&nbsp;&nbsp;&nbsp;Doctest Blocks</a></h2>
458 <pre class="doctest-block">
459 &gt;&gt;&gt; print 'Python-specific usage examples; begun with &quot;&gt;&gt;&gt;&quot;'
460 Python-specific usage examples; begun with &quot;&gt;&gt;&gt;&quot;
461 &gt;&gt;&gt; print '(cut and pasted from interactive Python sessions)'
462 (cut and pasted from interactive Python sessions)
463 </pre>
464 </div>
465 <div class="section" id="footnotes">
466 <h2><a class="toc-backref" href="#toc-entry-17">2.11&nbsp;&nbsp;&nbsp;Footnotes</a></h2>
467 <table class="docutils footnote" frame="void" id="footnote-1" rules="none">
468 <colgroup><col class="label" /><col /></colgroup>
469 <tbody valign="top">
470 <tr><td class="label">[1]</td><td><em>(<a class="fn-backref" href="#footnote-reference-1">1</a>, <a class="fn-backref" href="#footnote-reference-5">2</a>, <a class="fn-backref" href="#footnote-reference-9">3</a>)</em> <p>A footnote contains body elements, consistently indented by at
471 least 3 spaces.</p>
472 <p class="last">This is the footnote's second paragraph.</p>
473 </td></tr>
474 </tbody>
475 </table>
476 <table class="docutils footnote" frame="void" id="label" rules="none">
477 <colgroup><col class="label" /><col /></colgroup>
478 <tbody valign="top">
479 <tr><td class="label">[2]</td><td><em>(<a class="fn-backref" href="#footnote-reference-3">1</a>, <a class="fn-backref" href="#footnote-reference-6">2</a>)</em> Footnotes may be numbered, either manually (as in <a class="footnote-reference" href="#footnote-1" id="footnote-reference-5">[1]</a>) or
480 automatically using a &quot;#&quot;-prefixed label. This footnote has a
481 label so it can be referred to from multiple places, both as a
482 footnote reference (<a class="footnote-reference" href="#label" id="footnote-reference-6">[2]</a>) and as a <a class="reference internal" href="#label">hyperlink reference</a>.</td></tr>
483 </tbody>
484 </table>
485 <table class="docutils footnote" frame="void" id="footnote-2" rules="none">
486 <colgroup><col class="label" /><col /></colgroup>
487 <tbody valign="top">
488 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-2">[3]</a></td><td><p class="first">This footnote is numbered automatically and anonymously using a
489 label of &quot;#&quot; only.</p>
490 <p>This is the second paragraph.</p>
491 <p class="last">And this is the third paragraph.</p>
492 </td></tr>
493 </tbody>
494 </table>
495 <table class="docutils footnote" frame="void" id="footnote-3" rules="none">
496 <colgroup><col class="label" /><col /></colgroup>
497 <tbody valign="top">
498 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-4">[*]</a></td><td>Footnotes may also use symbols, specified with a &quot;*&quot; label.
499 Here's a reference to the next footnote: <a class="footnote-reference" href="#footnote-4" id="footnote-reference-7">[†]</a>.</td></tr>
500 </tbody>
501 </table>
502 <table class="docutils footnote" frame="void" id="footnote-4" rules="none">
503 <colgroup><col class="label" /><col /></colgroup>
504 <tbody valign="top">
505 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-7">[†]</a></td><td>This footnote shows the next symbol in the sequence.</td></tr>
506 </tbody>
507 </table>
508 <table class="docutils footnote" frame="void" id="footnote-5" rules="none">
509 <colgroup><col class="label" /><col /></colgroup>
510 <tbody valign="top">
511 <tr><td class="label">[4]</td><td>Here's an unreferenced footnote, with a reference to a
512 nonexistent footnote: <a href="#system-message-2"><span class="problematic" id="footnote-reference-8">[5]_</span></a>.</td></tr>
513 </tbody>
514 </table>
515 </div>
516 <div class="section" id="citations">
517 <h2><a class="toc-backref" href="#toc-entry-18">2.12&nbsp;&nbsp;&nbsp;Citations</a></h2>
518 <table class="docutils citation" frame="void" id="cit2002" rules="none">
519 <colgroup><col class="label" /><col /></colgroup>
520 <tbody valign="top">
521 <tr><td class="label">[CIT2002]</td><td><em>(<a class="fn-backref" href="#citation-reference-1">1</a>, <a class="fn-backref" href="#citation-reference-2">2</a>)</em> Citations are text-labeled footnotes. They may be
522 rendered separately and differently from footnotes.</td></tr>
523 </tbody>
524 </table>
525 <p>Here's a reference to the above, <a class="citation-reference" href="#cit2002" id="citation-reference-2">[CIT2002]</a>, and a <a href="#system-message-3"><span class="problematic" id="citation-reference-3">[nonexistent]_</span></a>
526 citation.</p>
527 </div>
528 <div class="section" id="targets">
529 <span id="another-target"></span><h2><a class="toc-backref" href="#toc-entry-19">2.13&nbsp;&nbsp;&nbsp;Targets</a></h2>
530 <p id="example">This paragraph is pointed to by the explicit &quot;example&quot; target. A
531 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
532 hyperlink targets</a> are also possible.</p>
533 <p>Section headers are implicit targets, referred to by name. See
534 <a class="reference internal" href="#targets">Targets</a>, which is a subsection of <a class="reference internal" href="#body-elements">Body Elements</a>.</p>
535 <p>Explicit external targets are interpolated into references such as
536 &quot;<a class="reference external" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#footnote-6" id="footnote-reference-11">[5]</a>&quot;.</p>
537 <p>Targets may be indirect and anonymous. Thus <a class="reference internal" href="#targets">this phrase</a> may also
538 refer to the <a class="reference internal" href="#targets">Targets</a> section.</p>
539 <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
540 error.</p>
541 <div class="section" id="duplicate-target-names">
542 <h3><a class="toc-backref" href="#toc-entry-20">2.13.1&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></h3>
543 <p>Duplicate names in section headers or other implicit targets will
544 generate &quot;info&quot; (level-1) system messages. Duplicate names in
545 explicit targets will generate &quot;warning&quot; (level-2) system messages.</p>
546 </div>
547 <div class="section" id="duplicate-target-names-1">
548 <h3><a class="toc-backref" href="#toc-entry-21">2.13.2&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></h3>
549 <p>Since there are two &quot;Duplicate Target Names&quot; section headers, we
550 cannot uniquely refer to either of them by name. If we try to (like
551 this: <a href="#system-message-5"><span class="problematic" id="problematic-3">`Duplicate Target Names`_</span></a>), an error is generated.</p>
552 </div>
553 </div>
554 <div class="section" id="directives">
555 <h2><a class="toc-backref" href="#toc-entry-22">2.14&nbsp;&nbsp;&nbsp;Directives</a></h2>
556 <div class="contents local topic" id="contents">
557 <ul class="auto-toc simple">
558 <li><a class="reference internal" href="#document-parts" id="toc-entry-46">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></li>
559 <li><a class="reference internal" href="#images-and-figures" id="toc-entry-47">2.14.2&nbsp;&nbsp;&nbsp;Images and Figures</a></li>
560 <li><a class="reference internal" href="#tables" id="toc-entry-48">2.14.3&nbsp;&nbsp;&nbsp;Tables</a></li>
561 <li><a class="reference internal" href="#admonitions" id="toc-entry-49">2.14.4&nbsp;&nbsp;&nbsp;Admonitions</a></li>
562 <li><a class="reference internal" href="#topics-sidebars-and-rubrics" id="toc-entry-50">2.14.5&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></li>
563 <li><a class="reference internal" href="#target-footnotes" id="toc-entry-51">2.14.6&nbsp;&nbsp;&nbsp;Target Footnotes</a></li>
564 <li><a class="reference internal" href="#replacement-text" id="toc-entry-52">2.14.7&nbsp;&nbsp;&nbsp;Replacement Text</a></li>
565 <li><a class="reference internal" href="#compound-paragraph" id="toc-entry-53">2.14.8&nbsp;&nbsp;&nbsp;Compound Paragraph</a></li>
566 <li><a class="reference internal" href="#parsed-literal-blocks" id="toc-entry-54">2.14.9&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></li>
567 <li><a class="reference internal" href="#code" id="toc-entry-55">2.14.10&nbsp;&nbsp;&nbsp;Code</a></li>
568 <li><a class="reference internal" href="#meta" id="toc-entry-56">2.14.11&nbsp;&nbsp;&nbsp;Meta</a></li>
569 </ul>
570 </div>
571 <p>These are just a sample of the many reStructuredText Directives. For
572 others, please see <a class="reference external" href="https://docutils.sourceforge.io/docs/ref/rst/directives.html">reStructuredText Directives</a> <a class="footnote-reference" href="#footnote-9" id="footnote-reference-16">[8]</a>.</p>
573 <div class="section" id="document-parts">
574 <h3><a class="toc-backref" href="#toc-entry-46">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></h3>
575 <p>An example of the &quot;contents&quot; directive can be seen above this section
576 (a local, untitled table of <a class="reference internal" href="#contents">contents</a>) and at the beginning of the
577 document (a document-wide <a class="reference internal" href="#table-of-contents">table of contents</a>).</p>
578 </div>
579 <div class="section" id="images-and-figures">
580 <h3><a class="toc-backref" href="#toc-entry-47">2.14.2&nbsp;&nbsp;&nbsp;Images and Figures</a></h3>
581 <p>An image directive (also clickable -- a hyperlink reference):</p>
582 <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>
583 <p>Image with multiple IDs:</p>
584 <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" />
585 <p>A centered image:</p>
586 <img alt="../../../docs/user/rst/images/biohazard.png" class="align-center" src="../../../docs/user/rst/images/biohazard.png" />
587 <p>A left-aligned image:</p>
588 <img alt="../../../docs/user/rst/images/biohazard.png" class="align-left" src="../../../docs/user/rst/images/biohazard.png" />
589 <p>This paragraph might flow around the image.
590 The specific behavior depends upon the style sheet and
591 the browser or rendering software used.</p>
592 <p>A right-aligned image:</p>
593 <img alt="../../../docs/user/rst/images/biohazard.png" class="align-right" src="../../../docs/user/rst/images/biohazard.png" />
594 <p>This paragraph might flow around the image.
595 The specific behavior depends upon the style sheet and
596 the browser or rendering software used.</p>
597 <p>For inline images see <a class="reference internal" href="#substitution-definitions">Substitution Definitions</a>.</p>
598 <p>Image size:</p>
599 <p>An image 2 em wide:</p>
600 <img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="width: 2em;" />
601 <p>An image 2 cm wide and 15 pixel high:</p>
602 <img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="width: 2cm; height: 15px;" />
603 <p>Relative units allow adaption of the image to the screen or paper size.
604 An image occupying 50% of the line width:</p>
605 <img alt="../../../docs/user/rst/images/title.png" src="../../../docs/user/rst/images/title.png" style="width: 50%;" />
606 <p>A <em>figure</em> is an image with a caption and/or a legend. With page-based output
607 media, figures might float to a different position if this helps the page
608 layout.</p>
609 <div class="figclass1 figclass2 figure">
610 <img alt="reStructuredText, the markup syntax" class="class1 class2" src="../../../docs/user/rst/images/title.png" style="width: 258px;" />
611 <p class="caption">Plaintext markup syntax and parser system.</p>
612 <div class="legend">
613 <table border="1" class="docutils">
614 <colgroup>
615 <col width="20%" />
616 <col width="80%" />
617 </colgroup>
618 <tbody valign="top">
619 <tr><td>re</td>
620 <td>Revised, revisited, based on 're' module.</td>
621 </tr>
622 <tr><td>Structured</td>
623 <td>Structure-enhanced text, structuredtext.</td>
624 </tr>
625 <tr><td>Text</td>
626 <td>Well it is, isn't it?</td>
627 </tr>
628 </tbody>
629 </table>
630 <p>This paragraph is also part of the legend.</p>
631 </div>
632 </div>
633 <p>A left-aligned figure, 70% wide:</p>
634 <div class="figclass1 figclass2 figure align-left" style="width: 70%">
635 <img alt="reStructuredText, the markup syntax" class="class1 class2" src="../../../docs/user/rst/images/biohazard.png" style="width: 40px;" />
636 <p class="caption">This is the caption.</p>
637 <div class="legend">
638 <p>This is the legend.</p>
639 <p>The legend may consist of several paragraphs.</p>
640 </div>
641 </div>
642 <p>This paragraph might flow around the figure.</p>
643 <p>The specific behavior depends upon the style sheet and the browser or
644 rendering software used.</p>
645 <p>A centered figure:</p>
646 <div class="figure align-center">
647 <img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="width: 40px;" />
648 <p class="caption">This is the caption.</p>
649 <div class="legend">
650 <p>This is the legend.</p>
651 <p>The legend may consist of several paragraphs.</p>
652 </div>
653 </div>
654 <p>This paragraph might flow around the figure.</p>
655 <p>The specific behavior depends upon the style sheet and the browser or
656 rendering software used.</p>
657 <p>A right-aligned figure:</p>
658 <div class="figure align-right">
659 <img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="width: 40px;" />
660 <p class="caption">This is the caption.</p>
661 <div class="legend">
662 <p>This is the legend.</p>
663 <p>The legend may consist of several paragraphs.</p>
664 </div>
665 </div>
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>
668 </div>
669 <div class="section" id="tables">
670 <h3><a class="toc-backref" href="#toc-entry-48">2.14.3&nbsp;&nbsp;&nbsp;Tables</a></h3>
671 <p>Tables may be given titles and additional arguments with the <em>table</em>
672 directive:</p>
673 <table border="1" class="docutils align-left">
674 <caption>left-aligned table</caption>
675 <colgroup>
676 <col width="50%" />
677 <col width="50%" />
678 </colgroup>
679 <thead valign="bottom">
680 <tr><th class="head">A</th>
681 <th class="head">not A</th>
682 </tr>
683 </thead>
684 <tbody valign="top">
685 <tr><td>False</td>
686 <td>True</td>
687 </tr>
688 <tr><td>True</td>
689 <td>False</td>
690 </tr>
691 </tbody>
692 </table>
693 <table border="1" class="docutils align-center">
694 <caption>center-aligned table</caption>
695 <colgroup>
696 <col width="50%" />
697 <col width="50%" />
698 </colgroup>
699 <thead valign="bottom">
700 <tr><th class="head">A</th>
701 <th class="head">not A</th>
702 </tr>
703 </thead>
704 <tbody valign="top">
705 <tr><td>False</td>
706 <td>True</td>
707 </tr>
708 <tr><td>True</td>
709 <td>False</td>
710 </tr>
711 </tbody>
712 </table>
713 <table border="1" class="docutils align-right">
714 <caption>right-aligned table</caption>
715 <colgroup>
716 <col width="50%" />
717 <col width="50%" />
718 </colgroup>
719 <thead valign="bottom">
720 <tr><th class="head">A</th>
721 <th class="head">not A</th>
722 </tr>
723 </thead>
724 <tbody valign="top">
725 <tr><td>False</td>
726 <td>True</td>
727 </tr>
728 <tr><td>True</td>
729 <td>False</td>
730 </tr>
731 </tbody>
732 </table>
733 <p>With the &quot;widths&quot; argument &quot;auto&quot; (or &quot;class&quot; value &quot;colwidths-auto&quot;),
734 column widths are determined by the backend (if supported by the
735 writer/backend).</p>
736 <span id="target1"></span><table border="1" class="docutils" id="target2">
737 <thead valign="bottom">
738 <tr><th class="head">A</th>
739 <th class="head">B</th>
740 <th class="head">A or B</th>
741 </tr>
742 </thead>
743 <tbody valign="top">
744 <tr><td>False</td>
745 <td>False</td>
746 <td>False</td>
747 </tr>
748 <tr><td>True</td>
749 <td>False</td>
750 <td>True</td>
751 </tr>
752 <tr><td>False</td>
753 <td>True</td>
754 <td>True</td>
755 </tr>
756 <tr><td>True</td>
757 <td>True</td>
758 <td>True</td>
759 </tr>
760 </tbody>
761 </table>
762 </div>
763 <div class="section" id="admonitions">
764 <h3><a class="toc-backref" href="#toc-entry-49">2.14.4&nbsp;&nbsp;&nbsp;Admonitions</a></h3>
765 <div class="admonition attention">
766 <p class="first admonition-title">Attention!</p>
767 <p class="last">Directives at large.</p>
768 </div>
769 <div class="admonition caution">
770 <p class="first admonition-title">Caution!</p>
771 <p class="last">Don't take any wooden nickels.</p>
772 </div>
773 <div class="admonition danger">
774 <p class="first admonition-title">!DANGER!</p>
775 <p class="last">Mad scientist at work!</p>
776 </div>
777 <div class="admonition error">
778 <p class="first admonition-title">Error</p>
779 <p class="last">Does not compute.</p>
780 </div>
781 <div class="admonition hint">
782 <p class="first admonition-title">Hint</p>
783 <p class="last">It's bigger than a bread box.</p>
784 </div>
785 <div class="admonition important">
786 <p class="first admonition-title">Important</p>
787 <ul class="last simple">
788 <li>Wash behind your ears.</li>
789 <li>Clean up your room.</li>
790 <li>Call your mother.</li>
791 <li>Back up your data.</li>
792 </ul>
793 </div>
794 <div class="admonition note">
795 <p class="first admonition-title">Note</p>
796 <p class="last">This is a note.</p>
797 </div>
798 <div class="admonition tip">
799 <p class="first admonition-title">Tip</p>
800 <p class="last">15% if the service is good.</p>
801 </div>
802 <div class="admonition warning">
803 <p class="first admonition-title">Warning</p>
804 <p class="last">Strong prose may provoke extreme mental exertion.
805 Reader discretion is strongly advised.</p>
806 </div>
807 <div class="admonition admonition-and-by-the-way">
808 <p class="first admonition-title">And, by the way...</p>
809 <p class="last">You can make up your own admonition too.</p>
810 </div>
811 </div>
812 <div class="section" id="topics-sidebars-and-rubrics">
813 <h3><a class="toc-backref" href="#toc-entry-50">2.14.5&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></h3>
814 <p><em>Sidebars</em> are like miniature, parallel documents.</p>
815 <div class="sidebar">
816 <p class="first sidebar-title">Optional Sidebar Title</p>
817 <p class="sidebar-subtitle">Optional Subtitle</p>
818 <p>This is a sidebar. It is for text outside the flow of the main
819 text.</p>
820 <p class="rubric">This is a rubric inside a sidebar</p>
821 <p class="last">Sidebars often appear beside the main text with a border and a different
822 background or font color.</p>
823 </div>
824 <p>A <em>topic</em> is like a block quote with a title, or a self-contained section
825 with no subsections.</p>
826 <div class="topic">
827 <p class="topic-title">Topic Title</p>
828 <p>This is a topic.</p>
829 </div>
830 <p>A <em>rubric</em> is like an informal heading that doesn't correspond to the
831 document's structure. It is typically highlighted in red (hence the name).</p>
832 <p class="rubric">This is a rubric</p>
833 <p>Topics and rubrics can be used at places where a <a class="reference internal" href="#section-title">section title</a> is not
834 allowed (e.g. inside a directive).</p>
835 </div>
836 <div class="section" id="target-footnotes">
837 <h3><a class="toc-backref" href="#toc-entry-51">2.14.6&nbsp;&nbsp;&nbsp;Target Footnotes</a></h3>
838 <table class="docutils footnote" frame="void" id="footnote-6" rules="none">
839 <colgroup><col class="label" /><col /></colgroup>
840 <tbody valign="top">
841 <tr><td class="label">[5]</td><td><em>(<a class="fn-backref" href="#footnote-reference-10">1</a>, <a class="fn-backref" href="#footnote-reference-11">2</a>, <a class="fn-backref" href="#footnote-reference-12">3</a>, <a class="fn-backref" href="#footnote-reference-14">4</a>)</em> <a class="reference external" href="http://www.python.org/">http://www.python.org/</a></td></tr>
842 </tbody>
843 </table>
844 <table class="docutils footnote" frame="void" id="footnote-7" rules="none">
845 <colgroup><col class="label" /><col /></colgroup>
846 <tbody valign="top">
847 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-13">[6]</a></td><td><a class="reference external" href="http://pygments.org/">http://pygments.org/</a></td></tr>
848 </tbody>
849 </table>
850 <table class="docutils footnote" frame="void" id="footnote-8" rules="none">
851 <colgroup><col class="label" /><col /></colgroup>
852 <tbody valign="top">
853 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-15">[7]</a></td><td><a class="reference external" href="https://docutils.sourceforge.io/">https://docutils.sourceforge.io/</a></td></tr>
854 </tbody>
855 </table>
856 <table class="docutils footnote" frame="void" id="footnote-9" rules="none">
857 <colgroup><col class="label" /><col /></colgroup>
858 <tbody valign="top">
859 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-16">[8]</a></td><td><a class="reference external" href="https://docutils.sourceforge.io/docs/ref/rst/directives.html">https://docutils.sourceforge.io/docs/ref/rst/directives.html</a></td></tr>
860 </tbody>
861 </table>
862 <table class="docutils footnote" frame="void" id="footnote-10" rules="none">
863 <colgroup><col class="label" /><col /></colgroup>
864 <tbody valign="top">
865 <tr><td class="label"><a class="fn-backref" href="#footnote-reference-17">[9]</a></td><td><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></td></tr>
866 </tbody>
867 </table>
868 </div>
869 <div class="section" id="replacement-text">
870 <h3><a class="toc-backref" href="#toc-entry-52">2.14.7&nbsp;&nbsp;&nbsp;Replacement Text</a></h3>
871 <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" href="#footnote-6" id="footnote-reference-12">[5]</a>.</p>
872 </div>
873 <div class="section" id="compound-paragraph">
874 <h3><a class="toc-backref" href="#toc-entry-53">2.14.8&nbsp;&nbsp;&nbsp;Compound Paragraph</a></h3>
875 <p>The <em>compound</em> directive is used to create a &quot;compound paragraph&quot;, which
876 is a single logical paragraph containing multiple physical body
877 elements. For example:</p>
878 <div class="compound">
879 <p class="compound-first">The 'rm' command is very dangerous. If you are logged
880 in as root and enter</p>
881 <pre class="compound-middle literal-block">
882 cd /
883 rm -rf *
884 </pre>
885 <p class="compound-last">you will erase the entire contents of your file system.</p>
886 </div>
887 <p>Test the handling and display of compound paragraphs:</p>
888 <div class="some-class compound">
889 <p class="compound-first">Compound 2, paragraph 1,</p>
890 <p class="compound-middle">compound 2, paragraph 2,</p>
891 <ul class="compound-middle simple">
892 <li>list item 1,</li>
893 <li>list item 2,</li>
894 </ul>
895 <p class="compound-last">compound 2, paragraph 3.</p>
896 </div>
897 <div class="compound">
898 <p>Compound 3, only consisting of one paragraph.</p>
899 </div>
900 <div class="compound">
901 <pre class="compound-first literal-block">
902 Compound 4.
903 This one starts with a literal block.
904 </pre>
905 <p class="compound-last">Compound 4, paragraph following the literal block.</p>
906 </div>
907 <p>Now something <em>really</em> perverted -- a nested compound block. This is
908 just to test that it works at all; the results don't have to be
909 meaningful.</p>
910 <div class="compound">
911 <p class="compound-first">Compound 5, block 1 (a paragraph).</p>
912 <div class="compound-middle compound">
913 <p class="compound-first">Compound 6 is block 2 in compound 5.</p>
914 <p class="compound-last">Compound 6, another paragraph.</p>
915 </div>
916 <p class="compound-last">Compound 5, block 3 (a paragraph).</p>
917 </div>
918 <div class="compound">
919 <p class="compound-first">Compound 7, tests the inclusion of various block-level
920 elements in one logical paragraph. First a table,</p>
921 <table border="1" class="compound-middle docutils">
922 <colgroup>
923 <col width="33%" />
924 <col width="33%" />
925 <col width="33%" />
926 </colgroup>
927 <tbody valign="top">
928 <tr><td><p class="first">Left cell, first
929 paragraph.</p>
930 <p class="last">Left cell, second
931 paragraph.</p>
932 </td>
933 <td>Middle cell,
934 consisting of
935 exactly one
936 paragraph.</td>
937 <td><p class="first">Right cell.</p>
938 <p>Paragraph 2.</p>
939 <p class="last">Paragraph 3.</p>
940 </td>
941 </tr>
942 </tbody>
943 </table>
944 <p class="compound-middle">followed by a paragraph. This physical paragraph is
945 actually a continuation of the paragraph before the table. It is followed
946 by</p>
947 <blockquote class="compound-middle">
948 a quote and</blockquote>
949 <ol class="compound-middle arabic simple">
950 <li>an enumerated list,</li>
951 </ol>
952 <p class="compound-middle">a paragraph,</p>
953 <table class="compound-middle docutils option-list" frame="void" rules="none">
954 <col class="option" />
955 <col class="description" />
956 <tbody valign="top">
957 <tr><td class="option-group">
958 <kbd><span class="option">--an</span></kbd></td>
959 <td>option list,</td></tr>
960 </tbody>
961 </table>
962 <p class="compound-middle">a paragraph,</p>
963 <table class="compound-middle docutils field-list" frame="void" rules="none">
964 <col class="field-name" />
965 <col class="field-body" />
966 <tbody valign="top">
967 <tr class="field"><th class="field-name">a field:</th><td class="field-body">list,</td>
968 </tr>
969 </tbody>
970 </table>
971 <p class="compound-middle">a paragraph,</p>
972 <dl class="compound-middle docutils">
973 <dt>a definition</dt>
974 <dd>list,</dd>
975 </dl>
976 <p class="compound-middle">a paragraph, an image:</p>
977 <img alt="../../../docs/user/rst/images/biohazard.png" class="compound-middle" src="../../../docs/user/rst/images/biohazard.png" />
978 <p class="compound-middle">a paragraph,</p>
979 <div class="compound-middle line-block">
980 <div class="line">a line</div>
981 <div class="line">block,</div>
982 </div>
983 <p class="compound-middle">a paragraph followed by a comment,</p>
984 <!-- this is a comment -->
985 <p class="compound-middle">a paragraph, a</p>
986 <div class="admonition note compound-middle">
987 <p class="first admonition-title">Note</p>
988 <p class="last">with content</p>
989 </div>
990 <p class="compound-last">and the final paragraph of the compound 7.</p>
991 </div>
992 </div>
993 <div class="section" id="parsed-literal-blocks">
994 <h3><a class="toc-backref" href="#toc-entry-54">2.14.9&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></h3>
995 <pre class="literal-block">
996 This is a parsed literal block.
997 This line is indented. The next line is blank.
999 Inline markup is supported, e.g. <em>emphasis</em>, <strong>strong</strong>, <tt class="docutils literal">literal
1000 text</tt>, <span class="subscript">sub-</span> and <span class="superscript">super</span>scripts,
1001 inline formulas: <span class="formula"><i>A</i> = 2<i>π</i><i>r</i><sup>2</sup></span>,
1002 footnotes <a class="footnote-reference" href="#footnote-1" id="footnote-reference-9">[1]</a>, <span class="target" id="hyperlink-targets">hyperlink targets</span>, and <a class="reference external" href="http://www.python.org/">references</a>.
1003 </pre>
1004 </div>
1005 <div class="section" id="code">
1006 <h3><a class="toc-backref" href="#toc-entry-55">2.14.10&nbsp;&nbsp;&nbsp;Code</a></h3>
1007 <p>Blocks of source code can be set with the <cite>code</cite> directive. If the code
1008 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" href="#footnote-7" id="footnote-reference-13">[6]</a>
1009 syntax highlighter and can be formatted with a style sheet. (Code parsing
1010 is turned off using the <tt class="docutils literal"><span class="pre">syntax-highlight</span></tt> config setting in the test
1011 conversions in order to get identical results with/without installed
1012 Pygments highlighter.)</p>
1013 <pre class="code python literal-block">
1014 print 'This is Python code.'
1015 </pre>
1016 <p>The <tt class="docutils literal"><span class="pre">:number-lines:</span></tt> option (with optional start value) generates line
1017 numbers:</p>
1018 <pre class="code python literal-block">
1019 <span class="ln"> 8 </span># print integers from 0 to 9:
1020 <span class="ln"> 9 </span>for i in range(10):
1021 <span class="ln">10 </span> print i
1022 </pre>
1023 <p>For inline code snippets, there is the <cite>code</cite> role, which can be used
1024 directly (the code will not be parsed/tagged, as the language is not known)
1025 or as base for special code roles, e.g. the LaTeX code in the next
1026 paragraph.</p>
1027 <p>Docutils uses LaTeX syntax for math directives and roles:
1028 <code class="tex">\alpha = f(x)</code> prints <span class="formula"><i>α</i> = <i>f</i>(<i>x</i>)</span>.</p>
1029 <p>The <tt class="docutils literal">:code:</tt> option of the <cite>include</cite> directive sets the included content
1030 as a code block, here the rst file <tt class="docutils literal">header_footer.txt</tt> with line numbers:</p>
1031 <pre class="code rst literal-block">
1032 <span class="ln">1 </span>.. header:: Document header
1033 <span class="ln">2 </span>.. footer:: Document footer
1034 </pre>
1035 </div>
1036 <div class="section" id="meta">
1037 <h3><a class="toc-backref" href="#toc-entry-56">2.14.11&nbsp;&nbsp;&nbsp;Meta</a></h3>
1038 <p>The <a class="reference external" href="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">“meta” directive</a> <a class="footnote-reference" href="#footnote-10" id="footnote-reference-17">[9]</a> is used to specify metadata to be stored in,
1039 e.g., HTML META tags or ODT file properties.</p>
1040 </div>
1041 </div>
1042 <div class="section" id="substitution-definitions">
1043 <h2><a class="toc-backref" href="#toc-entry-34">2.15&nbsp;&nbsp;&nbsp;Substitution Definitions</a></h2>
1044 <p>An inline image (<img alt="EXAMPLE" src="../../../docs/user/rst/images/biohazard.png" />) example:</p>
1045 <p>A Unicode example:</p>
1046 <p>(Substitution definitions are not visible in the HTML source.)</p>
1047 </div>
1048 <div class="section" id="comments">
1049 <h2><a class="toc-backref" href="#toc-entry-35">2.16&nbsp;&nbsp;&nbsp;Comments</a></h2>
1050 <p>Here's one:</p>
1051 <!-- Comments begin with two dots and a space. Anything may
1052 follow, except for the syntax of footnotes, hyperlink
1053 targets, directives, or substitution definitions.
1055 Double-dashes - - "- -" - - must be escaped somehow in HTML output.
1057 Comments may contain non-ASCII characters: ä ö ü æ ø å -->
1058 <p>(View the HTML source to see the comment.)</p>
1059 </div>
1060 <div class="section" id="raw-text">
1061 <h2><a class="toc-backref" href="#toc-entry-36">2.17&nbsp;&nbsp;&nbsp;Raw text</a></h2>
1062 <p>This does not necessarily look nice, because there may be missing white space.</p>
1063 <p>It's just there to freeze the behavior.</p>
1064 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>
1065 Fifth test in HTML.<br />Line two.</div>
1066 <div class="section" id="container">
1067 <h2><a class="toc-backref" href="#toc-entry-37">2.18&nbsp;&nbsp;&nbsp;Container</a></h2>
1068 <div class="custom docutils container">
1069 <p>paragraph 1</p>
1070 <p>paragraph 2</p>
1071 </div>
1072 </div>
1073 <div class="section" id="colspanning-tables">
1074 <h2><a class="toc-backref" href="#toc-entry-38">2.19&nbsp;&nbsp;&nbsp;Colspanning tables</a></h2>
1075 <p>This table has a cell spanning two columns:</p>
1076 <table border="1" class="docutils">
1077 <colgroup>
1078 <col width="31%" />
1079 <col width="31%" />
1080 <col width="38%" />
1081 </colgroup>
1082 <thead valign="bottom">
1083 <tr><th class="head" colspan="2">Inputs</th>
1084 <th class="head">Output</th>
1085 </tr>
1086 <tr><th class="head">A</th>
1087 <th class="head">B</th>
1088 <th class="head">A or B</th>
1089 </tr>
1090 </thead>
1091 <tbody valign="top">
1092 <tr><td>False</td>
1093 <td>False</td>
1094 <td>False</td>
1095 </tr>
1096 <tr><td>True</td>
1097 <td>False</td>
1098 <td>True</td>
1099 </tr>
1100 <tr><td>False</td>
1101 <td>True</td>
1102 <td>True</td>
1103 </tr>
1104 <tr><td>True</td>
1105 <td>True</td>
1106 <td>True</td>
1107 </tr>
1108 </tbody>
1109 </table>
1110 </div>
1111 <div class="section" id="rowspanning-tables">
1112 <h2><a class="toc-backref" href="#toc-entry-39">2.20&nbsp;&nbsp;&nbsp;Rowspanning tables</a></h2>
1113 <p>Here's a table with cells spanning several rows:</p>
1114 <table border="1" class="docutils">
1115 <colgroup>
1116 <col width="44%" />
1117 <col width="22%" />
1118 <col width="33%" />
1119 </colgroup>
1120 <thead valign="bottom">
1121 <tr><th class="head">Header row, column 1
1122 (header rows optional)</th>
1123 <th class="head">Header 2</th>
1124 <th class="head">Header 3</th>
1125 </tr>
1126 </thead>
1127 <tbody valign="top">
1128 <tr><td>body row 1, column 1</td>
1129 <td>column 2</td>
1130 <td>column 3</td>
1131 </tr>
1132 <tr><td>body row 2</td>
1133 <td rowspan="2">Cells may
1134 span rows.</td>
1135 <td rowspan="2">Another
1136 rowspanning
1137 cell.</td>
1138 </tr>
1139 <tr><td>body row 3</td>
1140 </tr>
1141 </tbody>
1142 </table>
1143 </div>
1144 <div class="section" id="complex-tables">
1145 <h2><a class="toc-backref" href="#toc-entry-40">2.21&nbsp;&nbsp;&nbsp;Complex tables</a></h2>
1146 <p>Here's a complex table, which should test all features.</p>
1147 <table border="1" class="docutils">
1148 <colgroup>
1149 <col width="43%" />
1150 <col width="21%" />
1151 <col width="18%" />
1152 <col width="18%" />
1153 </colgroup>
1154 <thead valign="bottom">
1155 <tr><th class="head">Header row, column 1
1156 (header rows optional)</th>
1157 <th class="head">Header 2</th>
1158 <th class="head">Header 3</th>
1159 <th class="head">Header 4</th>
1160 </tr>
1161 </thead>
1162 <tbody valign="top">
1163 <tr><td>body row 1, column 1</td>
1164 <td>column 2</td>
1165 <td>column 3</td>
1166 <td>column 4</td>
1167 </tr>
1168 <tr><td>body row 2</td>
1169 <td colspan="3">Cells may span columns.</td>
1170 </tr>
1171 <tr><td>body row 3</td>
1172 <td rowspan="2"><p class="first">Cells may
1173 span rows.</p>
1174 <p class="last">Paragraph.</p>
1175 </td>
1176 <td colspan="2" rowspan="2"><ul class="first last simple">
1177 <li>Table cells</li>
1178 <li>contain</li>
1179 <li>body elements.</li>
1180 </ul>
1181 </td>
1182 </tr>
1183 <tr><td>body row 4</td>
1184 </tr>
1185 <tr><td>body row 5</td>
1186 <td colspan="2">Cells may also be
1187 empty: <tt class="docutils literal"><span class="pre">--&gt;</span></tt></td>
1188 <td>&nbsp;</td>
1189 </tr>
1190 </tbody>
1191 </table>
1192 </div>
1193 <div class="section" id="list-tables">
1194 <h2><a class="toc-backref" href="#toc-entry-41">2.22&nbsp;&nbsp;&nbsp;List Tables</a></h2>
1195 <p>Here's a list table exercising all features:</p>
1196 <table border="1" class="test docutils" style="width: 95%">
1197 <caption>list table with integral header</caption>
1198 <colgroup>
1199 <col width="26%" />
1200 <col width="21%" />
1201 <col width="53%" />
1202 </colgroup>
1203 <thead valign="bottom">
1204 <tr><th class="head stub">Treat</th>
1205 <th class="head">Quantity</th>
1206 <th class="head">Description</th>
1207 </tr>
1208 </thead>
1209 <tbody valign="top">
1210 <tr><th class="stub">Albatross</th>
1211 <td>2.99</td>
1212 <td>On a stick!</td>
1213 </tr>
1214 <tr><th class="stub">Crunchy Frog</th>
1215 <td>1.49</td>
1216 <td>If we took the bones out, it wouldn't be
1217 crunchy, now would it?</td>
1218 </tr>
1219 <tr><th class="stub">Gannet Ripple</th>
1220 <td>1.99</td>
1221 <td>On a stick!</td>
1222 </tr>
1223 </tbody>
1224 </table>
1225 <table border="1" class="docutils align-center">
1226 <caption>center aligned list table</caption>
1227 <tbody valign="top">
1228 <tr><td>Albatross</td>
1229 <td>2.99</td>
1230 </tr>
1231 <tr><td>Crunchy Frog</td>
1232 <td>1.49</td>
1233 </tr>
1234 <tr><td>Gannet Ripple</td>
1235 <td>1.99</td>
1236 </tr>
1237 </tbody>
1238 </table>
1239 </div>
1240 <div class="section" id="custom-roles">
1241 <h2><a class="toc-backref" href="#toc-entry-42">2.23&nbsp;&nbsp;&nbsp;Custom Roles</a></h2>
1242 <ul>
1243 <li><p class="first">A role based on an existing role.</p>
1244 <p><tt class="custom docutils literal">one</tt> <tt class="custom docutils literal">two</tt> <tt class="custom docutils literal">three</tt></p>
1245 </li>
1246 <li><p class="first">A new role.</p>
1247 <p><span class="customnew">one two three</span></p>
1248 </li>
1249 <li><p class="first">A role with class attribute.</p>
1250 <p><span class="special">interpreted text</span></p>
1251 </li>
1252 <li><p class="first">A language-switching role:</p>
1253 <p>Let's count in German <span lang="de">eins zwei drei</span>.</p>
1254 </li>
1255 <li><p class="first">A role with multiple class attributes, styled with raw directives:</p>
1256 <p>The following works in most browsers but does not validate
1257 (<tt class="docutils literal">&lt;style&gt;</tt> is only allowed in the document head):</p>
1258 <pre class="literal-block">
1259 .. raw:: html
1261 &lt;style type=&quot;text/css&quot;&gt;&lt;!--
1262 .green {color: green;}
1263 .sc {font-variant: small-caps;}
1264 --&gt;&lt;/style&gt;
1265 </pre>
1266 <p><span class="green sc" lang="en-gb">British colourful text in small-caps</span>.</p>
1267 </li>
1268 </ul>
1269 </div>
1270 <div class="section" id="svg-images">
1271 <h2><a class="toc-backref" href="#toc-entry-43">2.24&nbsp;&nbsp;&nbsp;SVG Images</a></h2>
1272 <object class="align-left" data="../../../docs/user/rst/images/biohazard.svg" style="width: 48px; height: 48px;" type="image/svg+xml">../../../docs/user/rst/images/biohazard.svg</object>
1273 <p>Scalable vector graphics (SVG) images are the only standards-compatible
1274 way to include vector graphics in HTML documents. However, they are not
1275 supported by all backends/output formats (LaTeX, e.g., supports the PDF
1276 or Postscript formats for vector graphics instead). Rendering behaviour
1277 varies, depending on the SVG image itself, the method used to put the
1278 image in the document, and the viewing agent.</p>
1279 <p>All up-to-date HTML browsers support SVG, however not all do this fully
1280 and in the same manner. Many older versions, especially IE &lt; 9, have
1281 deficiencies or require plug-ins (i.e. don't support the <tt class="docutils literal">&lt;img&gt;</tt> tag).
1282 The <cite>html4css1</cite> writer includes SVG images using <tt class="docutils literal">&lt;object&gt;</tt> tags,
1283 the <cite>html5</cite> writer uses <tt class="docutils literal">&lt;img&gt;</tt> tags.</p>
1284 <p>If the image is wrapped in <tt class="docutils literal">&lt;object&gt;</tt> or <tt class="docutils literal">&lt;svg&gt;</tt> tags, it depends on the
1285 &quot;viewBox&quot; declaration inside the image's root <tt class="docutils literal">&lt;svg&gt;</tt> element whether an
1286 SVG image is scaled or clipped/padded. Images wrapped in <tt class="docutils literal">&lt;img&gt;</tt> are
1287 always scaled.</p>
1288 <ul>
1289 <li><object class="first align-right" data="../../../docs/user/rst/images/title-scaling.svg" style="width: 50%;" type="image/svg+xml">../../../docs/user/rst/images/title-scaling.svg</object>
1290 <p>An image occupying 50% of the line width. The &quot;viewBox&quot; attribute in
1291 the image file enables auto-scaling also in <tt class="docutils literal">&lt;object&gt;</tt> tags and
1292 embedded SVG.</p>
1293 </li>
1294 <li><object class="first align-right" data="../../../docs/user/rst/images/title.svg" style="width: 50%; height: 15px;" type="image/svg+xml">../../../docs/user/rst/images/title.svg</object>
1295 <p>An image without &quot;viewBox&quot; in a box 50% wide and 15&nbsp;pixles high.
1296 This image is scaled, if wrapped in an <tt class="docutils literal">&lt;img&gt;</tt> tag but clipped in
1297 an <tt class="docutils literal">&lt;object&gt;</tt> tag or within SVG.</p>
1298 </li>
1299 <li><object class="first align-right" data="../../../docs/user/rst/images/title-scaling.svg" style="width: 50%; height: 1.5em;" type="image/svg+xml">../../../docs/user/rst/images/title-scaling.svg</object>
1300 <p>A right aligned image with &quot;viewBox&quot;, 50% wide and 1.5 em high.
1301 (SVG images keep the aspect ratio unless the &quot;preserveAspectRatio&quot;
1302 attribute is <tt class="docutils literal">&quot;none&quot;</tt>.)</p>
1303 </li>
1304 <li><p class="first">An inline image <object data="../../../docs/user/rst/images/biohazard-scaling.svg" style="height: 0.8em;" type="image/svg+xml">inline-svg</object> scaled to a height of 0.8 em.</p>
1305 </li>
1306 <li><object class="first align-right" data="../../../docs/user/rst/images/biohazard-scaling.svg" style="height: 1em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-scaling.svg</object>
1307 <p>An image 1 em high, right aligned:</p>
1308 </li>
1309 <li><p class="first">An image 5 mm x 5 mm, centred, with hyperlink reference:</p>
1310 <a class="reference internal image-reference" href="#svg-images"><object class="align-center" data="../../../docs/user/rst/images/biohazard-scaling.svg" style="width: 5mm; height: 5mm;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-scaling.svg</object></a>
1311 </li>
1312 <li><object class="first align-right" data="../../../docs/user/rst/images/biohazard.svg" style="width: 4cm; height: 2em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard.svg</object>
1313 <p>An image without &quot;viewBox&quot; in a 4 cm x 2 em box.</p>
1314 </li>
1315 </ul>
1316 <p>Older versions of <cite>webkit</cite> based browsers (chromium, safari, midori,
1317 konqueror) support the <tt class="docutils literal">&lt;img&gt;</tt> tag but don't display contained bitmap
1318 images.</p>
1319 <ul>
1320 <li><object class="first align-right" data="../../../docs/user/rst/images/biohazard-bitmap.svg" style="width: 3em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-bitmap.svg</object>
1321 <p>A small SVG image with embedded bitmap, The <tt class="docutils literal">:width:</tt> is set to 3&nbsp;em
1322 in the rST source. Does not scale if wrapped in <tt class="docutils literal">&lt;object&gt;</tt> tags
1323 because there is no &quot;viewBox&quot; attribute.</p>
1324 </li>
1325 <li><object class="first align-right" data="../../../docs/user/rst/images/biohazard-bitmap-scaling.svg" style="width: 3em;" type="image/svg+xml">../../../docs/user/rst/images/biohazard-bitmap-scaling.svg</object>
1326 <p>An SVG image with embedded bitmap and &quot;viewBox&quot;, 3&nbsp;em wide.</p>
1327 </li>
1328 </ul>
1329 <p>SVG images can also be put in figures:</p>
1330 <blockquote>
1331 <div class="figure align-center">
1332 <object data="../../../docs/user/rst/images/title-scaling.svg" style="width: 290px; height: 28px;" type="image/svg+xml">reStructuredText, the markup syntax</object>
1333 <p class="caption">SVG image in a figure.</p>
1334 </div>
1335 </blockquote>
1336 </div>
1337 <div class="section" id="swf-images">
1338 <h2><a class="toc-backref" href="#toc-entry-44">2.25&nbsp;&nbsp;&nbsp;SWF Images</a></h2>
1339 <p>Shockwave Flash is an image/movie format that most modern web browsers
1340 support via a plugin. It is sometimes blocked due to privacy/security
1341 concerns.</p>
1342 <p>Images with extension <tt class="docutils literal">.swf</tt> are placed inside &lt;object&gt; elements.
1343 For complete control over display options use raw HTML.</p>
1344 <object class="align-left" data="../../../docs/user/rst/images/biohazard.swf" style="width: 4cm; height: 2em;" type="application/x-shockwave-flash">[biohazard.swf]</object>
1345 <p>An SWF image in a 4 cm x 2 em box, left aligned.</p>
1346 <p>An inline SWF image <object data="../../../docs/user/rst/images/biohazard.swf" style="width: 0.8em; height: 0.8em;" type="application/x-shockwave-flash">inline-swf</object> scaled to 0.8 em x 0.8 em.</p>
1347 </div>
1348 </div>
1349 <div class="section" id="error-handling">
1350 <h1><a class="toc-backref" href="#toc-entry-45">3&nbsp;&nbsp;&nbsp;Error Handling</a></h1>
1351 <p>Any errors caught during processing will generate system messages.</p>
1352 <p>There should be five messages in the following, auto-generated
1353 section, &quot;Docutils System Messages&quot;:</p>
1354 <!-- section should be added by Docutils automatically -->
1355 </div>
1356 <div class="system-messages section">
1357 <h1>Docutils System Messages</h1>
1358 <div class="system-message" id="system-message-1">
1359 <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 99); <em><a href="#problematic-1">backlink</a></em></p>
1360 Undefined substitution referenced: &quot;problematic&quot;.</div>
1361 <div class="system-message" id="system-message-2">
1362 <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 387); <em><a href="#footnote-reference-8">backlink</a></em></p>
1363 Unknown target name: &quot;5&quot;.</div>
1364 <div class="system-message" id="system-message-3">
1365 <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 396); <em><a href="#citation-reference-3">backlink</a></em></p>
1366 Unknown target name: &quot;nonexistent&quot;.</div>
1367 <div class="system-message" id="system-message-4">
1368 <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 423); <em><a href="#problematic-2">backlink</a></em></p>
1369 Unknown target name: &quot;hyperlink reference without a target&quot;.</div>
1370 <div class="system-message" id="system-message-5">
1371 <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 436); <em><a href="#problematic-3">backlink</a></em></p>
1372 Duplicate target name, cannot be used as a unique reference: &quot;duplicate target names&quot;.</div>
1373 </div>
1374 </div>
1375 <div class="footer">
1376 <hr class="footer" />
1377 <p>Document footer</p>
1378 <p><a class="reference external image-reference" href="http://validator.w3.org/check?uri=referer"><img alt="Valid XHTML 1.0!" src="http://www.w3.org/Icons/valid-xhtml10" 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>
1380 </div>
1381 </body>
1382 </html>