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