"Fossies" - the Fresh Open Source Software Archive

Member "pandoc-2.7.3/test/writer.jats" (12 Jun 2019, 26758 Bytes) of package /linux/www/pandoc-2.7.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "writer.jats": 2.7.2_vs_2.7.3.

    1 <?xml version="1.0" encoding="utf-8" ?>
    2 <!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN"
    3                   "JATS-journalpublishing1.dtd">
    4 <article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.0" article-type="other">
    5 <front>
    6 <journal-meta>
    7 <journal-title-group>
    8 </journal-title-group>
    9 <publisher>
   10 <publisher-name></publisher-name>
   11 </publisher>
   12 </journal-meta>
   13 <article-meta>
   14 <title-group>
   15 <article-title>Pandoc Test Suite</article-title>
   16 </title-group>
   17 <contrib-group>
   18 <contrib contrib-type="author">
   19 <string-name>John MacFarlane</string-name>
   20 </contrib>
   21 <contrib contrib-type="author">
   22 <string-name>Anonymous</string-name>
   23 </contrib>
   24 </contrib-group>
   25 <pub-date pub-type="epub" iso-8601-date="2006-07-17">
   26 <day>17</day>
   27 <month>7</month>
   28 <year>2006</year>
   29 </pub-date>
   30 </article-meta>
   31 </front>
   32 <body>
   33 <p>This is a set of tests for pandoc. Most of them are adapted from John
   34 Gruber’s markdown test suite.</p>
   35 <sec id="headers">
   36   <title>Headers</title>
   37   <sec id="level-2-with-an-embedded-link">
   38     <title>Level 2 with an
   39     <ext-link ext-link-type="uri" xlink:href="/url">embedded
   40     link</ext-link></title>
   41     <sec id="level-3-with-emphasis">
   42       <title>Level 3 with <italic>emphasis</italic></title>
   43       <sec id="level-4">
   44         <title>Level 4</title>
   45         <sec id="level-5">
   46           <title>Level 5</title>
   47         </sec>
   48       </sec>
   49     </sec>
   50   </sec>
   51 </sec>
   52 <sec id="level-1">
   53   <title>Level 1</title>
   54   <sec id="level-2-with-emphasis">
   55     <title>Level 2 with <italic>emphasis</italic></title>
   56     <sec id="level-3">
   57       <title>Level 3</title>
   58       <p>with no blank line</p>
   59     </sec>
   60   </sec>
   61   <sec id="level-2">
   62     <title>Level 2</title>
   63     <p>with no blank line</p>
   64   </sec>
   65 </sec>
   66 <sec id="paragraphs">
   67   <title>Paragraphs</title>
   68   <p>Here’s a regular paragraph.</p>
   69   <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
   70   item. Because a hard-wrapped line in the middle of a paragraph looked like a
   71   list item.</p>
   72   <p>Here’s one with a bullet. * criminey.</p>
   73   <p>There should be a hard line break
   74   here.</p>
   75 </sec>
   76 <sec id="block-quotes">
   77   <title>Block Quotes</title>
   78   <p>E-mail style:</p>
   79   <disp-quote>
   80     <p>This is a block quote. It is pretty short.</p>
   81   </disp-quote>
   82   <disp-quote>
   83     <p>Code in a block quote:</p>
   84     <preformat>sub status {
   85     print &quot;working&quot;;
   86 }</preformat>
   87     <p>A list:</p>
   88     <list list-type="order">
   89       <list-item>
   90         <p>item one</p>
   91       </list-item>
   92       <list-item>
   93         <p>item two</p>
   94       </list-item>
   95     </list>
   96     <p>Nested block quotes:</p>
   97     <disp-quote>
   98       <p>nested</p>
   99     </disp-quote>
  100     <disp-quote>
  101       <p>nested</p>
  102     </disp-quote>
  103   </disp-quote>
  104   <p>This should not be a block quote: 2 &gt; 1.</p>
  105   <p>And a following paragraph.</p>
  106 </sec>
  107 <sec id="code-blocks">
  108   <title>Code Blocks</title>
  109   <p>Code:</p>
  110   <preformat>---- (should be four hyphens)
  111 
  112 sub status {
  113     print &quot;working&quot;;
  114 }
  115 
  116 this code block is indented by one tab</preformat>
  117   <p>And:</p>
  118   <preformat>    this code block is indented by two tabs
  119 
  120 These should not be escaped:  \$ \\ \&gt; \[ \{</preformat>
  121 </sec>
  122 <sec id="lists">
  123   <title>Lists</title>
  124   <sec id="unordered">
  125     <title>Unordered</title>
  126     <p>Asterisks tight:</p>
  127     <list list-type="bullet">
  128       <list-item>
  129         <p>asterisk 1</p>
  130       </list-item>
  131       <list-item>
  132         <p>asterisk 2</p>
  133       </list-item>
  134       <list-item>
  135         <p>asterisk 3</p>
  136       </list-item>
  137     </list>
  138     <p>Asterisks loose:</p>
  139     <list list-type="bullet">
  140       <list-item>
  141         <p>asterisk 1</p>
  142       </list-item>
  143       <list-item>
  144         <p>asterisk 2</p>
  145       </list-item>
  146       <list-item>
  147         <p>asterisk 3</p>
  148       </list-item>
  149     </list>
  150     <p>Pluses tight:</p>
  151     <list list-type="bullet">
  152       <list-item>
  153         <p>Plus 1</p>
  154       </list-item>
  155       <list-item>
  156         <p>Plus 2</p>
  157       </list-item>
  158       <list-item>
  159         <p>Plus 3</p>
  160       </list-item>
  161     </list>
  162     <p>Pluses loose:</p>
  163     <list list-type="bullet">
  164       <list-item>
  165         <p>Plus 1</p>
  166       </list-item>
  167       <list-item>
  168         <p>Plus 2</p>
  169       </list-item>
  170       <list-item>
  171         <p>Plus 3</p>
  172       </list-item>
  173     </list>
  174     <p>Minuses tight:</p>
  175     <list list-type="bullet">
  176       <list-item>
  177         <p>Minus 1</p>
  178       </list-item>
  179       <list-item>
  180         <p>Minus 2</p>
  181       </list-item>
  182       <list-item>
  183         <p>Minus 3</p>
  184       </list-item>
  185     </list>
  186     <p>Minuses loose:</p>
  187     <list list-type="bullet">
  188       <list-item>
  189         <p>Minus 1</p>
  190       </list-item>
  191       <list-item>
  192         <p>Minus 2</p>
  193       </list-item>
  194       <list-item>
  195         <p>Minus 3</p>
  196       </list-item>
  197     </list>
  198   </sec>
  199   <sec id="ordered">
  200     <title>Ordered</title>
  201     <p>Tight:</p>
  202     <list list-type="order">
  203       <list-item>
  204         <p>First</p>
  205       </list-item>
  206       <list-item>
  207         <p>Second</p>
  208       </list-item>
  209       <list-item>
  210         <p>Third</p>
  211       </list-item>
  212     </list>
  213     <p>and:</p>
  214     <list list-type="order">
  215       <list-item>
  216         <p>One</p>
  217       </list-item>
  218       <list-item>
  219         <p>Two</p>
  220       </list-item>
  221       <list-item>
  222         <p>Three</p>
  223       </list-item>
  224     </list>
  225     <p>Loose using tabs:</p>
  226     <list list-type="order">
  227       <list-item>
  228         <p>First</p>
  229       </list-item>
  230       <list-item>
  231         <p>Second</p>
  232       </list-item>
  233       <list-item>
  234         <p>Third</p>
  235       </list-item>
  236     </list>
  237     <p>and using spaces:</p>
  238     <list list-type="order">
  239       <list-item>
  240         <p>One</p>
  241       </list-item>
  242       <list-item>
  243         <p>Two</p>
  244       </list-item>
  245       <list-item>
  246         <p>Three</p>
  247       </list-item>
  248     </list>
  249     <p>Multiple paragraphs:</p>
  250     <list list-type="order">
  251       <list-item>
  252         <p>Item 1, graf one.</p>
  253         <p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
  254         back.</p>
  255       </list-item>
  256       <list-item>
  257         <p>Item 2.</p>
  258       </list-item>
  259       <list-item>
  260         <p>Item 3.</p>
  261       </list-item>
  262     </list>
  263   </sec>
  264   <sec id="nested">
  265     <title>Nested</title>
  266     <list list-type="bullet">
  267       <list-item>
  268         <p>Tab</p>
  269         <list list-type="bullet">
  270           <list-item>
  271             <p>Tab</p>
  272             <list list-type="bullet">
  273               <list-item>
  274                 <p>Tab</p>
  275               </list-item>
  276             </list>
  277           </list-item>
  278         </list>
  279       </list-item>
  280     </list>
  281     <p>Here’s another:</p>
  282     <list list-type="order">
  283       <list-item>
  284         <p>First</p>
  285       </list-item>
  286       <list-item>
  287         <p>Second:</p>
  288         <list list-type="bullet">
  289           <list-item>
  290             <p>Fee</p>
  291           </list-item>
  292           <list-item>
  293             <p>Fie</p>
  294           </list-item>
  295           <list-item>
  296             <p>Foe</p>
  297           </list-item>
  298         </list>
  299       </list-item>
  300       <list-item>
  301         <p>Third</p>
  302       </list-item>
  303     </list>
  304     <p>Same thing but with paragraphs:</p>
  305     <list list-type="order">
  306       <list-item>
  307         <p>First</p>
  308       </list-item>
  309       <list-item>
  310         <p>Second:</p>
  311         <list list-type="bullet">
  312           <list-item>
  313             <p>Fee</p>
  314           </list-item>
  315           <list-item>
  316             <p>Fie</p>
  317           </list-item>
  318           <list-item>
  319             <p>Foe</p>
  320           </list-item>
  321         </list>
  322       </list-item>
  323       <list-item>
  324         <p>Third</p>
  325       </list-item>
  326     </list>
  327   </sec>
  328   <sec id="tabs-and-spaces">
  329     <title>Tabs and spaces</title>
  330     <list list-type="bullet">
  331       <list-item>
  332         <p>this is a list item indented with tabs</p>
  333       </list-item>
  334       <list-item>
  335         <p>this is a list item indented with spaces</p>
  336         <list list-type="bullet">
  337           <list-item>
  338             <p>this is an example list item indented with tabs</p>
  339           </list-item>
  340           <list-item>
  341             <p>this is an example list item indented with spaces</p>
  342           </list-item>
  343         </list>
  344       </list-item>
  345     </list>
  346   </sec>
  347   <sec id="fancy-list-markers">
  348     <title>Fancy list markers</title>
  349     <list list-type="order">
  350       <list-item>
  351         <label>(2)</label>
  352         <p>begins with 2</p>
  353       </list-item>
  354       <list-item>
  355         <label>(3)</label>
  356         <p>and now 3</p>
  357         <p>with a continuation</p>
  358         <list list-type="roman-lower">
  359           <list-item>
  360             <label>iv.</label>
  361             <p>sublist with roman numerals, starting with 4</p>
  362           </list-item>
  363           <list-item>
  364             <label>v.</label>
  365             <p>more items</p>
  366             <list list-type="alpha-upper">
  367               <list-item>
  368                 <label>(A)</label>
  369                 <p>a subsublist</p>
  370               </list-item>
  371               <list-item>
  372                 <label>(B)</label>
  373                 <p>a subsublist</p>
  374               </list-item>
  375             </list>
  376           </list-item>
  377         </list>
  378       </list-item>
  379     </list>
  380     <p>Nesting:</p>
  381     <list list-type="alpha-upper">
  382       <list-item>
  383         <p>Upper Alpha</p>
  384         <list list-type="roman-upper">
  385           <list-item>
  386             <p>Upper Roman.</p>
  387             <list list-type="order">
  388               <list-item>
  389                 <label>(6)</label>
  390                 <p>Decimal start with 6</p>
  391                 <list list-type="alpha-lower">
  392                   <list-item>
  393                     <label>c)</label>
  394                     <p>Lower alpha with paren</p>
  395                   </list-item>
  396                 </list>
  397               </list-item>
  398             </list>
  399           </list-item>
  400         </list>
  401       </list-item>
  402     </list>
  403     <p>Autonumbering:</p>
  404     <list list-type="order">
  405       <list-item>
  406         <p>Autonumber.</p>
  407       </list-item>
  408       <list-item>
  409         <p>More.</p>
  410         <list list-type="order">
  411           <list-item>
  412             <p>Nested.</p>
  413           </list-item>
  414         </list>
  415       </list-item>
  416     </list>
  417     <p>Should not be a list item:</p>
  418     <p>M.A. 2007</p>
  419     <p>B. Williams</p>
  420   </sec>
  421 </sec>
  422 <sec id="definition-lists">
  423   <title>Definition Lists</title>
  424   <p>Tight using spaces:</p>
  425   <def-list>
  426     <def-item>
  427       <term>apple</term>
  428       <def>
  429         <p>red fruit</p>
  430       </def>
  431     </def-item>
  432     <def-item>
  433       <term>orange</term>
  434       <def>
  435         <p>orange fruit</p>
  436       </def>
  437     </def-item>
  438     <def-item>
  439       <term>banana</term>
  440       <def>
  441         <p>yellow fruit</p>
  442       </def>
  443     </def-item>
  444   </def-list>
  445   <p>Tight using tabs:</p>
  446   <def-list>
  447     <def-item>
  448       <term>apple</term>
  449       <def>
  450         <p>red fruit</p>
  451       </def>
  452     </def-item>
  453     <def-item>
  454       <term>orange</term>
  455       <def>
  456         <p>orange fruit</p>
  457       </def>
  458     </def-item>
  459     <def-item>
  460       <term>banana</term>
  461       <def>
  462         <p>yellow fruit</p>
  463       </def>
  464     </def-item>
  465   </def-list>
  466   <p>Loose:</p>
  467   <def-list>
  468     <def-item>
  469       <term>apple</term>
  470       <def>
  471         <p>red fruit</p>
  472       </def>
  473     </def-item>
  474     <def-item>
  475       <term>orange</term>
  476       <def>
  477         <p>orange fruit</p>
  478       </def>
  479     </def-item>
  480     <def-item>
  481       <term>banana</term>
  482       <def>
  483         <p>yellow fruit</p>
  484       </def>
  485     </def-item>
  486   </def-list>
  487   <p>Multiple blocks with italics:</p>
  488   <def-list>
  489     <def-item>
  490       <term><italic>apple</italic></term>
  491       <def>
  492         <p>red fruit</p>
  493         <p>contains seeds, crisp, pleasant to taste</p>
  494       </def>
  495     </def-item>
  496     <def-item>
  497       <term><italic>orange</italic></term>
  498       <def>
  499         <p>orange fruit</p>
  500         <p specific-use="wrapper">
  501           <preformat>{ orange code block }</preformat>
  502         </p>
  503         <p specific-use="wrapper">
  504           <disp-quote>
  505             <p>orange block quote</p>
  506           </disp-quote>
  507         </p>
  508       </def>
  509     </def-item>
  510   </def-list>
  511   <p>Multiple definitions, tight:</p>
  512   <def-list>
  513     <def-item>
  514       <term>apple</term>
  515       <def>
  516         <p>red fruit</p>
  517         <p>computer</p>
  518       </def>
  519     </def-item>
  520     <def-item>
  521       <term>orange</term>
  522       <def>
  523         <p>orange fruit</p>
  524         <p>bank</p>
  525       </def>
  526     </def-item>
  527   </def-list>
  528   <p>Multiple definitions, loose:</p>
  529   <def-list>
  530     <def-item>
  531       <term>apple</term>
  532       <def>
  533         <p>red fruit</p>
  534         <p>computer</p>
  535       </def>
  536     </def-item>
  537     <def-item>
  538       <term>orange</term>
  539       <def>
  540         <p>orange fruit</p>
  541         <p>bank</p>
  542       </def>
  543     </def-item>
  544   </def-list>
  545   <p>Blank line after term, indented marker, alternate markers:</p>
  546   <def-list>
  547     <def-item>
  548       <term>apple</term>
  549       <def>
  550         <p>red fruit</p>
  551         <p>computer</p>
  552       </def>
  553     </def-item>
  554     <def-item>
  555       <term>orange</term>
  556       <def>
  557         <p>orange fruit</p>
  558         <p specific-use="wrapper">
  559           <list list-type="order">
  560             <list-item>
  561               <p>sublist</p>
  562             </list-item>
  563             <list-item>
  564               <p>sublist</p>
  565             </list-item>
  566           </list>
  567         </p>
  568       </def>
  569     </def-item>
  570   </def-list>
  571 </sec>
  572 <sec id="html-blocks">
  573   <title>HTML Blocks</title>
  574   <p>Simple block on one line:</p>
  575   <boxed-text>
  576     <p>foo</p>
  577   </boxed-text>
  578   <p>And nested without indentation:</p>
  579   <boxed-text>
  580     <boxed-text>
  581       <boxed-text>
  582         <p>foo</p>
  583       </boxed-text>
  584     </boxed-text>
  585     <boxed-text>
  586       <p>bar</p>
  587     </boxed-text>
  588   </boxed-text>
  589   <p>Interpreted markdown in a table:</p>
  590   <p>This is <italic>emphasized</italic></p>
  591   <p>And this is <bold>strong</bold></p>
  592   <p>Here’s a simple block:</p>
  593   <boxed-text>
  594     <p>foo</p>
  595   </boxed-text>
  596   <p>This should be a code block, though:</p>
  597   <preformat>&lt;div&gt;
  598     foo
  599 &lt;/div&gt;</preformat>
  600   <p>As should this:</p>
  601   <preformat>&lt;div&gt;foo&lt;/div&gt;</preformat>
  602   <p>Now, nested:</p>
  603   <boxed-text>
  604     <boxed-text>
  605       <boxed-text>
  606         <p>foo</p>
  607       </boxed-text>
  608     </boxed-text>
  609   </boxed-text>
  610   <p>This should just be an HTML comment:</p>
  611   <p>Multiline:</p>
  612   <p>Code block:</p>
  613   <preformat>&lt;!-- Comment --&gt;</preformat>
  614   <p>Just plain comment, with trailing spaces on the line:</p>
  615   <p>Code:</p>
  616   <preformat>&lt;hr /&gt;</preformat>
  617   <p>Hr’s:</p>
  618 </sec>
  619 <sec id="inline-markup">
  620   <title>Inline Markup</title>
  621   <p>This is <italic>emphasized</italic>, and so <italic>is this</italic>.</p>
  622   <p>This is <bold>strong</bold>, and so <bold>is this</bold>.</p>
  623   <p>An <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
  624   link</ext-link></italic>.</p>
  625   <p><bold><italic>This is strong and em.</italic></bold></p>
  626   <p>So is <bold><italic>this</italic></bold> word.</p>
  627   <p><bold><italic>This is strong and em.</italic></bold></p>
  628   <p>So is <bold><italic>this</italic></bold> word.</p>
  629   <p>This is code: <monospace>&gt;</monospace>, <monospace>$</monospace>,
  630   <monospace>\</monospace>, <monospace>\$</monospace>,
  631   <monospace>&lt;html&gt;</monospace>.</p>
  632   <p><strike>This is <italic>strikeout</italic>.</strike></p>
  633   <p>Superscripts: a<sup>bc</sup>d a<sup><italic>hello</italic></sup>
  634   a<sup>hello there</sup>.</p>
  635   <p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O,
  636   H<sub>many of them</sub>O.</p>
  637   <p>These should not be superscripts or subscripts, because of the unescaped
  638   spaces: a^b c^d, a~b c~d.</p>
  639 </sec>
  640 <sec id="smart-quotes-ellipses-dashes">
  641   <title>Smart quotes, ellipses, dashes</title>
  642   <p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
  643   <p>‘A’, ‘B’, and ‘C’ are letters.</p>
  644   <p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
  645   <p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
  646   <p>Here is some quoted ‘<monospace>code</monospace>’ and a
  647   “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&amp;bar=2">quoted
  648   link</ext-link>”.</p>
  649   <p>Some dashes: one—two — three—four — five.</p>
  650   <p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
  651   <p>Ellipses…and…and….</p>
  652 </sec>
  653 <sec id="latex">
  654   <title>LaTeX</title>
  655   <list list-type="bullet">
  656     <list-item>
  657       <p></p>
  658     </list-item>
  659     <list-item>
  660       <p><inline-formula><alternatives>
  661       <tex-math><![CDATA[2+2=4]]></tex-math>
  662       <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mn>2</mml:mn><mml:mo>+</mml:mo><mml:mn>2</mml:mn><mml:mo>=</mml:mo><mml:mn>4</mml:mn></mml:mrow></mml:math></alternatives></inline-formula></p>
  663     </list-item>
  664     <list-item>
  665       <p><inline-formula><alternatives>
  666       <tex-math><![CDATA[x \in y]]></tex-math>
  667       <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>∈</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:math></alternatives></inline-formula></p>
  668     </list-item>
  669     <list-item>
  670       <p><inline-formula><alternatives>
  671       <tex-math><![CDATA[\alpha \wedge \omega]]></tex-math>
  672       <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>α</mml:mi><mml:mo>∧</mml:mo><mml:mi>ω</mml:mi></mml:mrow></mml:math></alternatives></inline-formula></p>
  673     </list-item>
  674     <list-item>
  675       <p><inline-formula><alternatives>
  676       <tex-math><![CDATA[223]]></tex-math>
  677       <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>223</mml:mn></mml:math></alternatives></inline-formula></p>
  678     </list-item>
  679     <list-item>
  680       <p><inline-formula><alternatives>
  681       <tex-math><![CDATA[p]]></tex-math>
  682       <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>p</mml:mi></mml:math></alternatives></inline-formula>-Tree</p>
  683     </list-item>
  684     <list-item>
  685       <p>Here’s some display math: <disp-formula><alternatives>
  686       <tex-math><![CDATA[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}]]></tex-math>
  687       <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mfrac><mml:mi>d</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:mfrac><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:munder><mml:mo>lim</mml:mo><mml:mrow><mml:mi>h</mml:mi><mml:mo>→</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:munder><mml:mfrac><mml:mrow><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:mi>h</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>−</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow><mml:mi>h</mml:mi></mml:mfrac></mml:mrow></mml:math></alternatives></disp-formula></p>
  688     </list-item>
  689     <list-item>
  690       <p>Here’s one that has a line break in it:
  691       <inline-formula><alternatives>
  692       <tex-math><![CDATA[\alpha + \omega \times x^2]]></tex-math>
  693       <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>α</mml:mi><mml:mo>+</mml:mo><mml:mi>ω</mml:mi><mml:mo>×</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>.</p>
  694     </list-item>
  695   </list>
  696   <p>These shouldn’t be math:</p>
  697   <list list-type="bullet">
  698     <list-item>
  699       <p>To get the famous equation, write
  700       <monospace>$e = mc^2$</monospace>.</p>
  701     </list-item>
  702     <list-item>
  703       <p>$22,000 is a <italic>lot</italic> of money. So is $34,000. (It worked
  704       if “lot” is emphasized.)</p>
  705     </list-item>
  706     <list-item>
  707       <p>Shoes ($20) and socks ($5).</p>
  708     </list-item>
  709     <list-item>
  710       <p>Escaped <monospace>$</monospace>: $73 <italic>this should be
  711       emphasized</italic> 23$.</p>
  712     </list-item>
  713   </list>
  714   <p>Here’s a LaTeX table:</p>
  715 </sec>
  716 <sec id="special-characters">
  717   <title>Special Characters</title>
  718   <p>Here is some unicode:</p>
  719   <list list-type="bullet">
  720     <list-item>
  721       <p>I hat: Î</p>
  722     </list-item>
  723     <list-item>
  724       <p>o umlaut: ö</p>
  725     </list-item>
  726     <list-item>
  727       <p>section: §</p>
  728     </list-item>
  729     <list-item>
  730       <p>set membership: ∈</p>
  731     </list-item>
  732     <list-item>
  733       <p>copyright: ©</p>
  734     </list-item>
  735   </list>
  736   <p>AT&amp;T has an ampersand in their name.</p>
  737   <p>AT&amp;T is another way to write it.</p>
  738   <p>This &amp; that.</p>
  739   <p>4 &lt; 5.</p>
  740   <p>6 &gt; 5.</p>
  741   <p>Backslash: \</p>
  742   <p>Backtick: `</p>
  743   <p>Asterisk: *</p>
  744   <p>Underscore: _</p>
  745   <p>Left brace: {</p>
  746   <p>Right brace: }</p>
  747   <p>Left bracket: [</p>
  748   <p>Right bracket: ]</p>
  749   <p>Left paren: (</p>
  750   <p>Right paren: )</p>
  751   <p>Greater-than: &gt;</p>
  752   <p>Hash: #</p>
  753   <p>Period: .</p>
  754   <p>Bang: !</p>
  755   <p>Plus: +</p>
  756   <p>Minus: -</p>
  757 </sec>
  758 <sec id="links">
  759   <title>Links</title>
  760   <sec id="explicit">
  761     <title>Explicit</title>
  762     <p>Just a
  763     <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.</p>
  764     <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
  765     and title</ext-link>.</p>
  766     <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by two spaces">URL
  767     and title</ext-link>.</p>
  768     <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by a tab">URL
  769     and title</ext-link>.</p>
  770     <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with &quot;quotes&quot; in it">URL
  771     and title</ext-link></p>
  772     <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
  773     and title</ext-link></p>
  774     <p><ext-link ext-link-type="uri" xlink:href="/url/with_underscore">with_underscore</ext-link></p>
  775     <p><ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
  776     link</ext-link></p>
  777     <p><ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.</p>
  778   </sec>
  779   <sec id="reference">
  780     <title>Reference</title>
  781     <p>Foo
  782     <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
  783     <p>With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
  784     [brackets]</ext-link>.</p>
  785     <p><ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by itself
  786     should be a link.</p>
  787     <p>Indented
  788     <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.</p>
  789     <p>Indented
  790     <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.</p>
  791     <p>Indented
  792     <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.</p>
  793     <p>This should [not][] be a link.</p>
  794     <preformat>[not]: /url</preformat>
  795     <p>Foo
  796     <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with &quot;quotes&quot; inside">bar</ext-link>.</p>
  797     <p>Foo
  798     <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with &quot;quote&quot; inside">biz</ext-link>.</p>
  799   </sec>
  800   <sec id="with-ampersands">
  801     <title>With ampersands</title>
  802     <p>Here’s a
  803     <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&amp;bar=2">link
  804     with an ampersand in the URL</ext-link>.</p>
  805     <p>Here’s a link with an amersand in the link text:
  806     <ext-link ext-link-type="uri" xlink:href="http://att.com/" xlink:title="AT&amp;T">AT&amp;T</ext-link>.</p>
  807     <p>Here’s an
  808     <ext-link ext-link-type="uri" xlink:href="/script?foo=1&amp;bar=2">inline
  809     link</ext-link>.</p>
  810     <p>Here’s an
  811     <ext-link ext-link-type="uri" xlink:href="/script?foo=1&amp;bar=2">inline
  812     link in pointy braces</ext-link>.</p>
  813   </sec>
  814   <sec id="autolinks">
  815     <title>Autolinks</title>
  816     <p>With an ampersand:
  817     <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</ext-link></p>
  818     <list list-type="bullet">
  819       <list-item>
  820         <p>In a list?</p>
  821       </list-item>
  822       <list-item>
  823         <p><ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
  824       </list-item>
  825       <list-item>
  826         <p>It should.</p>
  827       </list-item>
  828     </list>
  829     <p>An e-mail address: <email>nobody@nowhere.net</email></p>
  830     <disp-quote>
  831       <p>Blockquoted:
  832       <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
  833     </disp-quote>
  834     <p>Auto-links should not occur here:
  835     <monospace>&lt;http://example.com/&gt;</monospace></p>
  836     <preformat>or here: &lt;http://example.com/&gt;</preformat>
  837   </sec>
  838 </sec>
  839 <sec id="images">
  840   <title>Images</title>
  841   <p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
  842   <fig>
  843     <caption><p>lalune</p></caption>
  844     <graphic mimetype="image" mime-subtype="jpeg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" />
  845   </fig>
  846   <p>Here is a movie
  847   <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
  848   icon.</p>
  849 </sec>
  850 <sec id="footnotes">
  851   <title>Footnotes</title>
  852   <p>Here is a footnote reference,<xref ref-type="fn" rid="fn1">1</xref> and
  853   another.<xref ref-type="fn" rid="fn2">2</xref> This should
  854   <italic>not</italic> be a footnote reference, because it contains a
  855   space.[^my note] Here is an inline
  856   note.<xref ref-type="fn" rid="fn3">3</xref></p>
  857   <disp-quote>
  858     <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
  859   </disp-quote>
  860   <list list-type="order">
  861     <list-item>
  862       <p>And in list items.<xref ref-type="fn" rid="fn5">5</xref></p>
  863     </list-item>
  864   </list>
  865   <p>This paragraph should not be part of the note, as it is not indented.</p>
  866 </sec>
  867 </body>
  868 <back>
  869 <fn-group>
  870   <fn id="fn1">
  871     <p>Here is the footnote. It can go anywhere after the footnote reference.
  872     It need not be placed at the end of the document.</p>
  873   </fn>
  874   <fn id="fn2">
  875     <p>Here’s the long note. This one contains multiple blocks.</p>
  876     <p>Subsequent blocks are indented to show that they belong to the footnote
  877     (as with list items).</p>
  878     <p specific-use="wrapper">
  879       <preformat>  { &lt;code&gt; }</preformat>
  880     </p>
  881     <p>If you want, you can indent every line, but you can also be lazy and
  882     just indent the first line of each block.</p>
  883   </fn>
  884   <fn id="fn3">
  885     <p>This is <italic>easier</italic> to type. Inline notes may contain
  886     <ext-link ext-link-type="uri" xlink:href="http://google.com">links</ext-link>
  887     and <monospace>]</monospace> verbatim characters, as well as [bracketed
  888     text].</p>
  889   </fn>
  890   <fn id="fn4">
  891     <p>In quote.</p>
  892   </fn>
  893   <fn id="fn5">
  894     <p>In list.</p>
  895   </fn>
  896 </fn-group>
  897 </back>
  898 </article>