From: Felix W. <fel...@us...> - 2004-06-22 21:24:30
|
Update of /cvsroot/docutils/docutils/test/functional/expected In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8513/functional/expected Added Files: standalone_rst_html4css1.html standalone_rst_latex.tex Log Message: moved functional tests to main tree --- NEW FILE: standalone_rst_html4css1.html --- <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.3.4: http://docutils.sourceforge.net/" /> <title>reStructuredText Test Document</title> <meta name="author" content="David Goodger" /> <meta name="author" content="Me" /> <meta name="author" content="Myself" /> <meta name="author" content="I" /> <meta name="organization" content="humankind" /> <meta name="date" content="Now, or yesterday. Or maybe even before yesterday." /> <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." /> <meta content="reStructuredText, test, parser" name="keywords" /> <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" /> <link rel="stylesheet" href="default.css" type="text/css" /> </head> <body> <h1 class="title">reStructuredText Test Document</h1> <h2 class="subtitle" id="examples-of-syntax-constructs">Examples of Syntax Constructs</h2> <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>David Goodger</td></tr> <tr><th class="docinfo-name">Address:</th> <td><pre class="address"> 123 Example Street Example, EX Canada A1B 2C3 </pre> </td></tr> <tr><th class="docinfo-name">Contact:</th> <td><a class="first last reference" href="mailto:goodger@users.sourceforge.net">goodger@users.sourceforge.net</a></td></tr> <tr><th class="docinfo-name">Author:</th> <td>Me</td></tr> <tr><th class="docinfo-name">Author:</th> <td>Myself</td></tr> <tr><th class="docinfo-name">Author:</th> <td>I</td></tr> <tr><th class="docinfo-name">Organization:</th> <td>humankind</td></tr> <tr><th class="docinfo-name">Date:</th> <td>Now, or yesterday. Or maybe even <em>before</em> yesterday.</td></tr> <tr><th class="docinfo-name">Status:</th> <td>This is a "work in progress"</td></tr> <tr><th class="docinfo-name">Revision:</th> <td>is managed by a version control system.</td></tr> <tr><th class="docinfo-name">Version:</th> <td>1</td></tr> <tr><th class="docinfo-name">Copyright:</th> <td>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.</td></tr> <tr class="field"><th class="docinfo-name">field name:</th><td class="field-body">This is a generic bibliographic field.</td> </tr> <tr class="field"><th class="docinfo-name">field name 2:</th><td class="field-body"><p class="first">Generic bibliographic fields may contain multiple body elements.</p> <p class="last">Like this.</p> </td> </tr> </tbody> </table> <div class="document" id="restructuredtext-test-document"> <div class="dedication topic"> <p class="topic-title first">Dedication</p> <p>For Docutils users & co-developers.</p> </div> <div class="abstract topic"> <p class="topic-title first">Abstract</p> <p>This is a test document, containing at least one example of each reStructuredText construct.</p> </div> <!-- This is a comment. Note how any initial comments are moved by transforms to after the document title, subtitle, and docinfo. --> <!-- Above is the document title, and below is the subtitle. They are transformed from section titles after parsing. --> <!-- bibliographic fields (which also require a transform): --> <div class="contents topic" id="table-of-contents"> <p class="topic-title first"><a name="table-of-contents">Table of Contents</a></p> <ul class="auto-toc simple"> <li><a class="reference" href="#structural-elements" id="id25" name="id25">1Â Â Â Structural Elements</a><ul class="auto-toc"> <li><a class="reference" href="#section-title" id="id26" name="id26">1.1Â Â Â Section Title</a></li> <li><a class="reference" href="#transitions" id="id27" name="id27">1.2Â Â Â Transitions</a></li> </ul> </li> <li><a class="reference" href="#body-elements" id="id28" name="id28">2Â Â Â Body Elements</a><ul class="auto-toc"> <li><a class="reference" href="#paragraphs" id="id29" name="id29">2.1Â Â Â Paragraphs</a><ul class="auto-toc"> <li><a class="reference" href="#inline-markup" id="id30" name="id30">2.1.1Â Â Â Inline Markup</a></li> </ul> </li> <li><a class="reference" href="#bullet-lists" id="id31" name="id31">2.2Â Â Â Bullet Lists</a></li> <li><a class="reference" href="#enumerated-lists" id="id32" name="id32">2.3Â Â Â Enumerated Lists</a></li> <li><a class="reference" href="#definition-lists" id="id33" name="id33">2.4Â Â Â Definition Lists</a></li> <li><a class="reference" href="#field-lists" id="id34" name="id34">2.5Â Â Â Field Lists</a></li> <li><a class="reference" href="#option-lists" id="id35" name="id35">2.6Â Â Â Option Lists</a></li> <li><a class="reference" href="#literal-blocks" id="id36" name="id36">2.7Â Â Â Literal Blocks</a></li> <li><a class="reference" href="#block-quotes" id="id37" name="id37">2.8Â Â Â Block Quotes</a></li> <li><a class="reference" href="#doctest-blocks" id="id38" name="id38">2.9Â Â Â Doctest Blocks</a></li> <li><a class="reference" href="#footnotes" id="id39" name="id39">2.10Â Â Â Footnotes</a></li> <li><a class="reference" href="#citations" id="id40" name="id40">2.11Â Â Â Citations</a></li> <li><a class="reference" href="#targets" id="id41" name="id41">2.12Â Â Â Targets</a><ul class="auto-toc"> <li><a class="reference" href="#duplicate-target-names" id="id42" name="id42">2.12.1Â Â Â Duplicate Target Names</a></li> <li><a class="reference" href="#id18" id="id43" name="id43">2.12.2Â Â Â Duplicate Target Names</a></li> </ul> </li> <li><a class="reference" href="#directives" id="id44" name="id44">2.13Â Â Â Directives</a><ul class="auto-toc"> <li><a class="reference" href="#document-parts" id="id45" name="id45">2.13.1Â Â Â Document Parts</a></li> <li><a class="reference" href="#images" id="id46" name="id46">2.13.2Â Â Â Images</a></li> <li><a class="reference" href="#admonitions" id="id47" name="id47">2.13.3Â Â Â Admonitions</a></li> <li><a class="reference" href="#topics-sidebars-and-rubrics" id="id48" name="id48">2.13.4Â Â Â Topics, Sidebars, and Rubrics</a></li> <li><a class="reference" href="#target-footnotes" id="id49" name="id49">2.13.5Â Â Â Target Footnotes</a></li> <li><a class="reference" href="#line-blocks" id="id50" name="id50">2.13.6Â Â Â Line Blocks</a></li> <li><a class="reference" href="#replacement-text" id="id51" name="id51">2.13.7Â Â Â Replacement Text</a></li> </ul> </li> <li><a class="reference" href="#substitution-definitions" id="id52" name="id52">2.14Â Â Â Substitution Definitions</a></li> <li><a class="reference" href="#comments" id="id53" name="id53">2.15Â Â Â Comments</a></li> <li><a class="reference" href="#colspanning-tables" id="id54" name="id54">2.16Â Â Â Colspanning tables</a></li> <li><a class="reference" href="#rowspanning-tables" id="id55" name="id55">2.17Â Â Â Rowspanning tables</a></li> <li><a class="reference" href="#complex-tables" id="id56" name="id56">2.18Â Â Â Complex tables</a></li> </ul> </li> <li><a class="reference" href="#error-handling" id="id57" name="id57">3Â Â Â Error Handling</a></li> </ul> </div> <div class="section" id="structural-elements"> <h1><a class="toc-backref" href="#id25" name="structural-elements">1Â Â Â Structural Elements</a></h1> <div class="section" id="section-title"> <h2><a class="toc-backref" href="#id26" name="section-title">1.1Â Â Â Section Title</a></h2> <p>That's it, the text just above this line.</p> </div> <div class="section" id="transitions"> <h2><a class="toc-backref" href="#id27" name="transitions">1.2Â Â Â Transitions</a></h2> <p>Here's a transition:</p> <hr /> <p>It divides the section.</p> </div> </div> <div class="section" id="body-elements"> <h1><a class="toc-backref" href="#id28" name="body-elements">2Â Â Â Body Elements</a></h1> <div class="section" id="paragraphs"> <h2><a class="toc-backref" href="#id29" name="paragraphs">2.1Â Â Â Paragraphs</a></h2> <p>A paragraph.</p> <div class="section" id="inline-markup"> <h3><a class="toc-backref" href="#id30" name="inline-markup">2.1.1Â Â Â Inline Markup</a></h3> <p>Paragraphs contain text and may contain inline markup: <em>emphasis</em>, <strong>strong emphasis</strong>, <tt class="literal"><span class="pre">inline</span> <span class="pre">literals</span></tt>, standalone hyperlinks (<a class="reference" href="http://www.python.org">http://www.python.org</a>), external hyperlinks (<a class="reference" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#id21" id="id22" name="id22"><sup>5</sup></a>), internal cross-references (<a class="reference" href="#example">example</a>), external hyperlinks with embedded URIs (<a class="reference" href="http://www.python.org">Python web site</a>), footnote references (manually numbered <a class="footnote-reference" href="#id6" id="id1" name="id1"><sup>1</sup></a>, anonymous auto-numbered <a class="footnote-reference" href="#id9" id="id2" name="id2"><sup>3</sup></a>, labeled auto-numbered <a class="footnote-reference" href="#label" id="id3" name="id3"><sup>2</sup></a>, or symbolic <a class="footnote-reference" href="#id10" id="id4" name="id4"><sup>*</sup></a>), citation references (<a class="citation-reference" href="#cit2002" id="id5" name="id5">[CIT2002]</a>), substitution references (<img alt="EXAMPLE" src="../../../docs/user/rst/images/biohazard.png" />), and <a class="target" id="inline-hyperlink-targets" name="inline-hyperlink-targets">inline hyperlink targets</a> (see <a class="reference" href="#targets">Targets</a> below for a reference back to here). Character-level inline markup is also possible (although exceedingly ugly!) in <em>re</em><tt class="literal"><span class="pre">Structured</span></tt><em>Text</em>. Problems are indicated by <a href="#id19" name="id20"><span class="problematic" id="id20">|problematic|</span></a> text (generated by processing errors; this one is intentional).</p> <p>The default role for interpreted text is <cite>Title Reference</cite>. Here are some explicit interpreted text roles: a PEP reference (<a class="reference" href="http://www.python.org/peps/pep-0287.html">PEP 287</a>); an RFC reference (<a class="reference" href="http://www.faqs.org/rfcs/rfc2822.html">RFC 2822</a>); a <sub>subscript</sub>; a <sup>superscript</sup>; and explicit roles for <em>standard</em> <strong>inline</strong> <tt class="literal"><span class="pre">markup</span></tt>.</p> <!-- DO NOT RE-WRAP THE FOLLOWING PARAGRAPH! --> <p>Let's test wrapping and whitespace significance in inline literals: <tt class="literal"><span class="pre">This</span> <span class="pre">is</span> <span class="pre">an</span> <span class="pre">example</span> <span class="pre">of</span> <span class="pre">--inline-literal</span> <span class="pre">--text,</span> <span class="pre">--including</span> <span class="pre">some--</span> <span class="pre">strangely--hyphenated-words.</span> <span class="pre">Adjust-the-width-of-your-browser-window</span> <span class="pre">to</span> <span class="pre">see</span> <span class="pre">how</span> <span class="pre">the</span> <span class="pre">text</span> <span class="pre">is</span> <span class="pre">wrapped.</span> <span class="pre">--</span> <span class="pre">----</span> <span class="pre">--------</span> <span class="pre">Now</span> <span class="pre">note</span> <span class="pre">the</span> <span class="pre">spacing</span> <span class="pre">between</span> <span class="pre">the</span> <span class="pre">words</span> <span class="pre">of</span> <span class="pre">this</span> <span class="pre">sentence</span> <span class="pre">(words</span> <span class="pre">should</span> <span class="pre">be</span> <span class="pre">grouped</span> <span class="pre">in</span> <span class="pre">pairs).</span></tt></p> <p>If the <tt class="literal"><span class="pre">--pep-references</span></tt> option was supplied, there should be a live link to PEP 258 here.</p> </div> </div> <div class="section" id="bullet-lists"> <h2><a class="toc-backref" href="#id31" name="bullet-lists">2.2Â Â Â Bullet Lists</a></h2> <ul> <li><p class="first">A bullet list</p> <ul class="simple"> <li>Nested bullet list.</li> <li>Nested item 2.</li> </ul> </li> <li><p class="first">Item 2.</p> <p>Paragraph 2 of item 2.</p> <ul class="simple"> <li>Nested bullet list.</li> <li>Nested item 2.<ul> <li>Third level.</li> <li>Item 2.</li> </ul> </li> <li>Nested item 3.</li> </ul> </li> </ul> </div> <div class="section" id="enumerated-lists"> <h2><a class="toc-backref" href="#id32" name="enumerated-lists">2.3Â Â Â Enumerated Lists</a></h2> <ol class="arabic"> <li><p class="first">Arabic numerals.</p> <ol class="loweralpha simple"> <li>lower alpha)<ol class="lowerroman"> <li>(lower roman)<ol class="upperalpha"> <li>upper alpha.<ol class="upperroman"> <li>upper roman)</li> </ol> </li> </ol> </li> </ol> </li> </ol> </li> <li><p class="first">Lists that don't start at 1:</p> <ol class="arabic simple" start="3"> <li>Three</li> <li>Four</li> </ol> <ol class="upperalpha simple" start="3"> <li>C</li> <li>D</li> </ol> <ol class="lowerroman simple" start="3"> <li>iii</li> <li>iv</li> </ol> </li> </ol> </div> <div class="section" id="definition-lists"> <h2><a class="toc-backref" href="#id33" name="definition-lists">2.4Â Â Â Definition Lists</a></h2> <dl> <dt>Term</dt> <dd>Definition</dd> <dt>Term <span class="classifier-delimiter">:</span> <span class="classifier">classifier</span></dt> <dd><p class="first">Definition paragraph 1.</p> <p class="last">Definition paragraph 2.</p> </dd> <dt>Term</dt> <dd>Definition</dd> </dl> </div> <div class="section" id="field-lists"> <h2><a class="toc-backref" href="#id34" name="field-lists">2.5Â Â Â Field Lists</a></h2> <table class="field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field"><th class="field-name">what:</th><td class="field-body">Field lists map field names to field bodies, like database records. They are often part of an extension syntax. They are an unambiguous variant of RFC 2822 fields.</td> </tr> <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> <p class="last">The field body may contain one or more body elements, indented relative to the field marker.</p> </td> </tr> </tbody> </table> </div> <div class="section" id="option-lists"> <h2><a class="toc-backref" href="#id35" name="option-lists">2.6Â Â Â Option Lists</a></h2> <p>For listing command-line options:</p> <table class="option-list" frame="void" rules="none"> <col class="option" /> <col class="description" /> <tbody valign="top"> <tr><td> <kbd><span class="option">-a</span></kbd></td> <td>command-line option "a"</td></tr> <tr><td> <kbd><span class="option">-b</span> <var>file</var></kbd></td> <td>options can have arguments and long descriptions</td></tr> <tr><td> <kbd><span class="option">--long</span></kbd></td> <td>options can be long also</td></tr> <tr><td> <kbd><span class="option">--input</span>=<var>file</var></kbd></td> <td>long options can also have arguments</td></tr> <tr><td colspan="2"> <kbd><span class="option">--very-long-option</span></kbd></td> </tr> <tr><td> </td><td><p class="first">The description can also start on the next line.</p> <p class="last">The description may contain multiple body elements, regardless of where it starts.</p> </td></tr> <tr><td> <kbd><span class="option">-x</span>, <span class="option">-y</span>, <span class="option">-z</span></kbd></td> <td>Multiple options are an "option group".</td></tr> <tr><td> <kbd><span class="option">-v</span>, <span class="option">--verbose</span></kbd></td> <td>Commonly-seen: short & long options.</td></tr> <tr><td colspan="2"> <kbd><span class="option">-1</span> <var>file</var>, <span class="option">--one</span>=<var>file</var>, <span class="option">--two</span> <var>file</var></kbd></td> </tr> <tr><td> </td><td>Multiple options with arguments.</td></tr> <tr><td> <kbd><span class="option">/V</span></kbd></td> <td>DOS/VMS-style options too</td></tr> </tbody> </table> <p>There must be at least two spaces between the option and the description.</p> </div> <div class="section" id="literal-blocks"> <h2><a class="toc-backref" href="#id36" name="literal-blocks">2.7Â Â Â Literal Blocks</a></h2> <p>Literal blocks are indicated with a double-colon ("::") at the end of the preceding paragraph (over there <tt class="literal"><span class="pre">--></span></tt>). They can be indented:</p> <pre class="literal-block"> if literal_block: text = 'is left as-is' spaces_and_linebreaks = 'are preserved' markup_processing = None </pre> <p>Or they can be quoted without indentation:</p> <pre class="literal-block"> >> Great idea! > > Why didn't I think of that? </pre> </div> <div class="section" id="block-quotes"> <h2><a class="toc-backref" href="#id37" name="block-quotes">2.8Â Â Â Block Quotes</a></h2> <p>Block quotes consist of indented body elements:</p> <blockquote> <p>My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.</p> <p class="attribution">—Anne Elk (Miss)</p> </blockquote> </div> <div class="section" id="doctest-blocks"> <h2><a class="toc-backref" href="#id38" name="doctest-blocks">2.9Â Â Â Doctest Blocks</a></h2> <pre class="doctest-block"> >>> print 'Python-specific usage examples; begun with ">>>"' Python-specific usage examples; begun with ">>>" >>> print '(cut and pasted from interactive Python sessions)' (cut and pasted from interactive Python sessions) </pre> </div> <div class="section" id="footnotes"> <h2><a class="toc-backref" href="#id39" name="footnotes">2.10Â Â Â Footnotes</a></h2> <table class="footnote" frame="void" id="id6" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a name="id6">[1]</a></td><td><em>(<a class="fn-backref" href="#id1">1</a>, <a class="fn-backref" href="#id7">2</a>)</em> <p>A footnote contains body elements, consistently indented by at least 3 spaces.</p> <p>This is the footnote's second paragraph.</p> </td></tr> </tbody> </table> <table class="footnote" frame="void" id="label" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a name="label">[2]</a></td><td><em>(<a class="fn-backref" href="#id3">1</a>, <a class="fn-backref" href="#id8">2</a>)</em> Footnotes may be numbered, either manually (as in <a class="footnote-reference" href="#id6" id="id7" name="id7"><sup>1</sup></a>) or automatically using a "#"-prefixed label. This footnote has a label so it can be referred to from multiple places, both as a footnote reference (<a class="footnote-reference" href="#label" id="id8" name="id8"><sup>2</sup></a>) and as a hyperlink reference (<a class="reference" href="#label">label</a>).</td></tr> </tbody> </table> <table class="footnote" frame="void" id="id9" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a class="fn-backref" href="#id2" name="id9">[3]</a></td><td>This footnote is numbered automatically and anonymously using a label of "#" only.</td></tr> </tbody> </table> <table class="footnote" frame="void" id="id10" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a class="fn-backref" href="#id4" name="id10">[*]</a></td><td>Footnotes may also use symbols, specified with a "*" label. Here's a reference to the next footnote: <a class="footnote-reference" href="#id12" id="id11" name="id11"><sup>â </sup></a>.</td></tr> </tbody> </table> <table class="footnote" frame="void" id="id12" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a class="fn-backref" href="#id11" name="id12">[â ]</a></td><td>This footnote shows the next symbol in the sequence.</td></tr> </tbody> </table> <table class="footnote" frame="void" id="id13" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a name="id13">[4]</a></td><td>Here's an unreferenced footnote, with a reference to a nonexistent footnote: <a href="#id65" name="id66"><span class="problematic" id="id66">[5]_</span></a>.</td></tr> </tbody> </table> </div> <div class="section" id="citations"> <h2><a class="toc-backref" href="#id40" name="citations">2.11Â Â Â Citations</a></h2> <table class="citation" frame="void" id="cit2002" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a name="cit2002">[CIT2002]</a></td><td><em>(<a class="fn-backref" href="#id5">1</a>, <a class="fn-backref" href="#id15">2</a>)</em> Citations are text-labeled footnotes. They may be rendered separately and differently from footnotes.</td></tr> </tbody> </table> <p>Here's a reference to the above, <a class="citation-reference" href="#cit2002" id="id15" name="id15">[CIT2002]</a>, and a <a href="#id67" name="id68"><span class="problematic" id="id68">[nonexistent]_</span></a> citation.</p> </div> <div class="section" id="targets"> <h2><a class="toc-backref" href="#id41" name="targets">2.12Â Â Â Targets</a></h2> <a class="target" id="example" name="example"></a><p>This paragraph is pointed to by the explicit "example" target. A reference can be found under <a class="reference" href="#inline-markup">Inline Markup</a>, above. <a class="reference" href="#inline-hyperlink-targets">Inline hyperlink targets</a> are also possible.</p> <p>Section headers are implicit targets, referred to by name. See <a class="reference" href="#targets">Targets</a>, which is a subsection of <a class="reference" href="#body-elements">Body Elements</a>.</p> <p>Explicit external targets are interpolated into references such as "<a class="reference" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#id21" id="id23" name="id23"><sup>5</sup></a>".</p> <p>Targets may be indirect and anonymous. Thus <a class="reference" href="#targets">this phrase</a> may also refer to the <a class="reference" href="#targets">Targets</a> section.</p> <p>Here's a <a href="#id69" name="id70"><span class="problematic" id="id70">`hyperlink reference without a target`_</span></a>, which generates an error.</p> <div class="section" id="duplicate-target-names"> <h3><a class="toc-backref" href="#id42" name="duplicate-target-names">2.12.1Â Â Â Duplicate Target Names</a></h3> <p>Duplicate names in section headers or other implicit targets will generate "info" (level-1) system messages. Duplicate names in explicit targets will generate "warning" (level-2) system messages.</p> </div> <div class="section" id="id18"> <h3><a class="toc-backref" href="#id43" name="id18">2.12.2Â Â Â Duplicate Target Names</a></h3> <p>Since there are two "Duplicate Target Names" section headers, we cannot uniquely refer to either of them by name. If we try to (like this: <a href="#id71" name="id72"><span class="problematic" id="id72">`Duplicate Target Names`_</span></a>), an error is generated.</p> </div> </div> <div class="section" id="directives"> <h2><a class="toc-backref" href="#id44" name="directives">2.13Â Â Â Directives</a></h2> <div class="contents topic" id="contents"> <ul class="auto-toc simple"> <li><a class="reference" href="#document-parts" id="id58" name="id58">2.13.1Â Â Â Document Parts</a></li> <li><a class="reference" href="#images" id="id59" name="id59">2.13.2Â Â Â Images</a></li> <li><a class="reference" href="#admonitions" id="id60" name="id60">2.13.3Â Â Â Admonitions</a></li> <li><a class="reference" href="#topics-sidebars-and-rubrics" id="id61" name="id61">2.13.4Â Â Â Topics, Sidebars, and Rubrics</a></li> <li><a class="reference" href="#target-footnotes" id="id62" name="id62">2.13.5Â Â Â Target Footnotes</a></li> <li><a class="reference" href="#line-blocks" id="id63" name="id63">2.13.6Â Â Â Line Blocks</a></li> <li><a class="reference" href="#replacement-text" id="id64" name="id64">2.13.7Â Â Â Replacement Text</a></li> </ul> </div> <p>These are just a sample of the many reStructuredText Directives. For others, please see <a class="reference" href="http://docutils.sourceforge.net/docs/ref/rst/directives.html">http://docutils.sourceforge.net/docs/ref/rst/directives.html</a>.</p> <div class="section" id="document-parts"> <h3><a class="toc-backref" href="#id58" name="document-parts">2.13.1Â Â Â Document Parts</a></h3> <p>An example of the "contents" directive can be seen above this section (a local, untitled table of <a class="reference" href="#contents">contents</a>) and at the beginning of the document (a document-wide <a class="reference" href="#table-of-contents">table of contents</a>).</p> </div> <div class="section" id="images"> <h3><a class="toc-backref" href="#id59" name="images">2.13.2Â Â Â Images</a></h3> <p>An image directive (also clickable -- a hyperlink reference):</p> <p><a class="reference" href="#directives"><img alt="../../../docs/user/rst/images/title.png" src="../../../docs/user/rst/images/title.png" /></a></p> <p>A figure directive:</p> <div class="figure"> <p><img alt="reStructuredText, the markup syntax" src="../../../docs/user/rst/images/title.png" /></p> <p class="caption">A figure is an image with a caption and/or a legend:</p> <div class="legend"> <table border="1" class="table"> <colgroup> <col width="20%" /> <col width="80%" /> </colgroup> <tbody valign="top"> <tr><td>re</td> <td>Revised, revisited, based on 're' module.</td> </tr> <tr><td>Structured</td> <td>Structure-enhanced text, structuredtext.</td> </tr> <tr><td>Text</td> <td>Well it is, isn't it?</td> </tr> </tbody> </table> <p>This paragraph is also part of the legend.</p> </div> </div> </div> <div class="section" id="admonitions"> <h3><a class="toc-backref" href="#id60" name="admonitions">2.13.3Â Â Â Admonitions</a></h3> <div class="attention"> <p class="admonition-title first">Attention!</p> Directives at large.</div> <div class="caution"> <p class="admonition-title first">Caution!</p> Don't take any wooden nickels.</div> <div class="danger"> <p class="admonition-title first">!DANGER!</p> Mad scientist at work!</div> <div class="error"> <p class="admonition-title first">Error</p> Does not compute.</div> <div class="hint"> <p class="admonition-title first">Hint</p> It's bigger than a bread box.</div> <div class="important"> <p class="admonition-title first">Important</p> <ul class="simple"> <li>Wash behind your ears.</li> <li>Clean up your room.</li> <li>Call your mother.</li> <li>Back up your data.</li> </ul> </div> <div class="note"> <p class="admonition-title first">Note</p> This is a note.</div> <div class="tip"> <p class="admonition-title first">Tip</p> 15% if the service is good.</div> <div class="warning"> <p class="admonition-title first">Warning</p> Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.</div> <div class="admonition-and-by-the-way admonition"> <p class="admonition-title first">And, by the way...</p> <p>You can make up your own admonition too.</p> </div> </div> <div class="section" id="topics-sidebars-and-rubrics"> <h3><a class="toc-backref" href="#id61" name="topics-sidebars-and-rubrics">2.13.4Â Â Â Topics, Sidebars, and Rubrics</a></h3> <div class="sidebar"> <p class="sidebar-title first">Sidebar Title</p> <p class="sidebar-subtitle">Optional Subtitle</p> <p>This is a sidebar. It is for text outside the flow of the main text.</p> <p class="rubric">This is a rubric inside a sidebar</p> <p>Sidebars often appears beside the main text with a border and background color.</p> </div> <div class="topic"> <p class="topic-title first">Topic Title</p> <p>This is a topic.</p> </div> <p class="rubric">This is a rubric</p> </div> <div class="section" id="target-footnotes"> <h3><a class="toc-backref" href="#id62" name="target-footnotes">2.13.5Â Â Â Target Footnotes</a></h3> <table class="footnote" frame="void" id="id21" rules="none"> <colgroup><col class="label" /><col /></colgroup> <tbody valign="top"> <tr><td class="label"><a name="id21">[5]</a></td><td><em>(<a class="fn-backref" href="#id22">1</a>, <a class="fn-backref" href="#id23">2</a>, <a class="fn-backref" href="#id24">3</a>)</em> <a class="reference" href="http://www.python.org/">http://www.python.org/</a></td></tr> </tbody> </table> </div> <div class="section" id="line-blocks"> <h3><a class="toc-backref" href="#id63" name="line-blocks">2.13.6Â Â Â Line Blocks</a></h3> <p>Take it away, Eric the Orchestra Leader!</p> <pre class="line-block"> A one, two, a one two three four Half a bee, philosophically, must, <em>ipso facto</em>, half not be. But half the bee has got to be, <em>vis a vis</em> its entity. D'you see? But can a bee be said to be or not to be an entire bee, when half the bee is not a bee, due to some ancient injury? Singing... </pre> </div> <div class="section" id="replacement-text"> <h3><a class="toc-backref" href="#id64" name="replacement-text">2.13.7Â Â Â Replacement Text</a></h3> <p>I recommend you try <a class="reference" href="http://www.python.org/">Python, <em>the</em> best language around</a> <a class="footnote-reference" href="#id21" id="id24" name="id24"><sup>5</sup></a>.</p> </div> </div> <div class="section" id="substitution-definitions"> <h2><a class="toc-backref" href="#id52" name="substitution-definitions">2.14Â Â Â Substitution Definitions</a></h2> <p>An inline image (<img alt="EXAMPLE" src="../../../docs/user/rst/images/biohazard.png" />) example:</p> <p>(Substitution definitions are not visible in the HTML source.)</p> </div> <div class="section" id="comments"> <h2><a class="toc-backref" href="#id53" name="comments">2.15Â Â Â Comments</a></h2> <p>Here's one:</p> <!-- Comments begin with two dots and a space. Anything may follow, except for the syntax of footnotes, hyperlink targets, directives, or substitution definitions. Double-dashes - - "- -" - - must be escaped somehow in HTML output. --> <p>(View the HTML source to see the comment.)</p> </div> <div class="section" id="colspanning-tables"> <h2><a class="toc-backref" href="#id54" name="colspanning-tables">2.16Â Â Â Colspanning tables</a></h2> <p>This table has a cell spanning two columns:</p> <table border="1" class="table"> <colgroup> <col width="31%" /> <col width="31%" /> <col width="38%" /> </colgroup> <thead valign="bottom"> <tr><th colspan="2">Inputs</th> <th>Output</th> </tr> <tr><th>A</th> <th>B</th> <th>A or B</th> </tr> </thead> <tbody valign="top"> <tr><td>False</td> <td>False</td> <td>False</td> </tr> <tr><td>True</td> <td>False</td> <td>True</td> </tr> <tr><td>False</td> <td>True</td> <td>True</td> </tr> <tr><td>True</td> <td>True</td> <td>True</td> </tr> </tbody> </table> </div> <div class="section" id="rowspanning-tables"> <h2><a class="toc-backref" href="#id55" name="rowspanning-tables">2.17Â Â Â Rowspanning tables</a></h2> <p>Here's a table with cells spanning several rows:</p> <table border="1" class="table"> <colgroup> <col width="44%" /> <col width="22%" /> <col width="33%" /> </colgroup> <thead valign="bottom"> <tr><th>Header row, column 1 (header rows optional)</th> <th>Header 2</th> <th>Header 3</th> </tr> </thead> <tbody valign="top"> <tr><td>body row 1, column 1</td> <td>column 2</td> <td>column 3</td> </tr> <tr><td>body row 2</td> <td rowspan="2">Cells may span rows.</td> <td rowspan="2"><ul class="first last simple"> <li>Table cells</li> <li>contain</li> <li>body elements.</li> </ul> </td> </tr> <tr><td>body row 3</td> </tr> </tbody> </table> </div> <div class="section" id="complex-tables"> <h2><a class="toc-backref" href="#id56" name="complex-tables">2.18Â Â Â Complex tables</a></h2> <p>Here's a complex table, which should test all features.</p> <table border="1" class="table"> <colgroup> <col width="43%" /> <col width="21%" /> <col width="18%" /> <col width="18%" /> </colgroup> <thead valign="bottom"> <tr><th>Header row, column 1 (header rows optional)</th> <th>Header 2</th> <th>Header 3</th> <th>Header 4</th> </tr> </thead> <tbody valign="top"> <tr><td>body row 1, column 1</td> <td>column 2</td> <td>column 3</td> <td>column 4</td> </tr> <tr><td>body row 2</td> <td colspan="3">Cells may span columns.</td> </tr> <tr><td>body row 3</td> <td rowspan="2"><p class="first">Cells may span rows.</p> <p class="last">Paragraph.</p> </td> <td colspan="2" rowspan="2"><ul class="first last simple"> <li>Table cells</li> <li>contain</li> <li>body elements.</li> </ul> </td> </tr> <tr><td>body row 4</td> </tr> <tr><td>body row 5</td> <td colspan="2">Cells may also be empty: <tt class="literal"><span class="pre">--></span></tt></td> <td> </td> </tr> </tbody> </table> </div> </div> <div class="section" id="error-handling"> <h1><a class="toc-backref" href="#id57" name="error-handling">3Â Â Â Error Handling</a></h1> <p>Any errors caught during processing will generate system messages.</p> <p>There should be five messages in the following, auto-generated section, "Docutils System Messages":</p> <!-- section should be added by Docutils automatically --> </div> <div class="system-messages section"> <h1><a>Docutils System Messages</a></h1> <div class="system-message" id="id19"> <p class="system-message-title">System Message: <a name="id19">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 89); <em><a href="#id20">backlink</a></em></p> Undefined substitution referenced: "problematic".</div> <div class="system-message" id="id65"> <p class="system-message-title">System Message: <a name="id65">ERROR/3</a> (<tt>functional/input/standalone_rst_html4css1.txt</tt>, line 281); <em><a href="#id66">backlink</a></em></p> Unknown target name: "5".</div> <div class="system-message" id="id67"> <p class="system-message-title">System Message: <a name="id67">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 290); <em><a href="#id68">backlink</a></em></p> Unknown target name: "nonexistent".</div> <div class="system-message" id="id69"> <p class="system-message-title">System Message: <a name="id69">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 315); <em><a href="#id70">backlink</a></em></p> Unknown target name: "hyperlink reference without a target".</div> <div class="system-message" id="id71"> <p class="system-message-title">System Message: <a name="id71">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 328); <em><a href="#id72">backlink</a></em></p> Duplicate target name, cannot be used as a unique reference: "duplicate target names".</div> </div> </div> </body> </html> --- NEW FILE: standalone_rst_latex.tex --- \documentclass[10pt,a4paper,english]{article} \usepackage{babel} \usepackage{shortvrb} \usepackage[latin1]{inputenc} \usepackage{tabularx} \usepackage{longtable} \setlength{\extrarowheight}{2pt} \usepackage{amsmath} \usepackage{graphicx} \usepackage{color} \usepackage{multirow} \usepackage{ifthen} \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage[DIV12]{typearea} %% generator Docutils: http://docutils.sourceforge.net/ \newlength{\admonitionwidth} \setlength{\admonitionwidth}{0.9\textwidth} \newlength{\docinfowidth} \setlength{\docinfowidth}{0.9\textwidth} [...1025 lines suppressed...] %___________________________________________________________________________ \section*{Docutils System Messages} Undefined substitution referenced: ``problematic''. Unknown target name: ``5''. Unknown target name: ``nonexistent''. Unknown target name: ``hyperlink reference without a target''. Duplicate target name, cannot be used as a unique reference: ``duplicate target names''. \end{document} |