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