git.iko.soy/typeable/pandoc
on rc/2.11.3.1 help sign in
typeable/pandoc/test/writer.docbook4
1422 lines 33 kB history raw
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4<article>
5 <articleinfo>
6 <title>Pandoc Test Suite</title>
7 <authorgroup>
8 <author>
9 <personname>
10 <firstname>John</firstname>
11 <surname>MacFarlane</surname>
12 </personname>
13 </author>
14 <author>
15 <personname>
16 <firstname></firstname>
17 <surname>Anonymous</surname>
18 </personname>
19 </author>
20 </authorgroup>
21 <date>July 17, 2006</date>
22 </articleinfo>
23 <para>
24 This is a set of tests for pandoc. Most of them are adapted from John
25 Gruber’s markdown test suite.
26 </para>
27 <sect1 id="headers">
28 <title>Headers</title>
29 <sect2 id="level-2-with-an-embedded-link">
30 <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
31 <sect3 id="level-3-with-emphasis">
32 <title>Level 3 with <emphasis>emphasis</emphasis></title>
33 <sect4 id="level-4">
34 <title>Level 4</title>
35 <sect5 id="level-5">
36 <title>Level 5</title>
37 <para>
38 </para>
39 </sect5>
40 </sect4>
41 </sect3>
42 </sect2>
43 </sect1>
44 <sect1 id="level-1">
45 <title>Level 1</title>
46 <sect2 id="level-2-with-emphasis">
47 <title>Level 2 with <emphasis>emphasis</emphasis></title>
48 <sect3 id="level-3">
49 <title>Level 3</title>
50 <para>
51 with no blank line
52 </para>
53 </sect3>
54 </sect2>
55 <sect2 id="level-2">
56 <title>Level 2</title>
57 <para>
58 with no blank line
59 </para>
60 </sect2>
61 </sect1>
62 <sect1 id="paragraphs">
63 <title>Paragraphs</title>
64 <para>
65 Here’s a regular paragraph.
66 </para>
67 <para>
68 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
69 item. Because a hard-wrapped line in the middle of a paragraph looked
70 like a list item.
71 </para>
72 <para>
73 Here’s one with a bullet. * criminey.
74 </para>
75<literallayout>There should be a hard line break
76here.</literallayout>
77 </sect1>
78 <sect1 id="block-quotes">
79 <title>Block Quotes</title>
80 <para>
81 E-mail style:
82 </para>
83 <blockquote>
84 <para>
85 This is a block quote. It is pretty short.
86 </para>
87 </blockquote>
88 <blockquote>
89 <para>
90 Code in a block quote:
91 </para>
92 <programlisting>
93sub status {
94 print &quot;working&quot;;
96</programlisting>
97 <para>
98 A list:
99 </para>
100 <orderedlist numeration="arabic" spacing="compact">
101 <listitem>
102 <para>
103 item one
104 </para>
105 </listitem>
106 <listitem>
107 <para>
108 item two
109 </para>
110 </listitem>
111 </orderedlist>
112 <para>
113 Nested block quotes:
114 </para>
115 <blockquote>
116 <para>
117 nested
118 </para>
119 </blockquote>
120 <blockquote>
121 <para>
122 nested
123 </para>
124 </blockquote>
125 </blockquote>
126 <para>
127 This should not be a block quote: 2 &gt; 1.
128 </para>
129 <para>
130 And a following paragraph.
131 </para>
132 </sect1>
133 <sect1 id="code-blocks">
134 <title>Code Blocks</title>
135 <para>
136 Code:
137 </para>
138 <programlisting>
139---- (should be four hyphens)
141sub status {
142 print &quot;working&quot;;
145this code block is indented by one tab
146</programlisting>
147 <para>
148 And:
149 </para>
150 <programlisting>
151 this code block is indented by two tabs
153These should not be escaped: \$ \\ \&gt; \[ \{
154</programlisting>
155 </sect1>
156 <sect1 id="lists">
157 <title>Lists</title>
158 <sect2 id="unordered">
159 <title>Unordered</title>
160 <para>
161 Asterisks tight:
162 </para>
163 <itemizedlist spacing="compact">
164 <listitem>
165 <para>
166 asterisk 1
167 </para>
168 </listitem>
169 <listitem>
170 <para>
171 asterisk 2
172 </para>
173 </listitem>
174 <listitem>
175 <para>
176 asterisk 3
177 </para>
178 </listitem>
179 </itemizedlist>
180 <para>
181 Asterisks loose:
182 </para>
183 <itemizedlist>
184 <listitem>
185 <para>
186 asterisk 1
187 </para>
188 </listitem>
189 <listitem>
190 <para>
191 asterisk 2
192 </para>
193 </listitem>
194 <listitem>
195 <para>
196 asterisk 3
197 </para>
198 </listitem>
199 </itemizedlist>
200 <para>
201 Pluses tight:
202 </para>
203 <itemizedlist spacing="compact">
204 <listitem>
205 <para>
206 Plus 1
207 </para>
208 </listitem>
209 <listitem>
210 <para>
211 Plus 2
212 </para>
213 </listitem>
214 <listitem>
215 <para>
216 Plus 3
217 </para>
218 </listitem>
219 </itemizedlist>
220 <para>
221 Pluses loose:
222 </para>
223 <itemizedlist>
224 <listitem>
225 <para>
226 Plus 1
227 </para>
228 </listitem>
229 <listitem>
230 <para>
231 Plus 2
232 </para>
233 </listitem>
234 <listitem>
235 <para>
236 Plus 3
237 </para>
238 </listitem>
239 </itemizedlist>
240 <para>
241 Minuses tight:
242 </para>
243 <itemizedlist spacing="compact">
244 <listitem>
245 <para>
246 Minus 1
247 </para>
248 </listitem>
249 <listitem>
250 <para>
251 Minus 2
252 </para>
253 </listitem>
254 <listitem>
255 <para>
256 Minus 3
257 </para>
258 </listitem>
259 </itemizedlist>
260 <para>
261 Minuses loose:
262 </para>
263 <itemizedlist>
264 <listitem>
265 <para>
266 Minus 1
267 </para>
268 </listitem>
269 <listitem>
270 <para>
271 Minus 2
272 </para>
273 </listitem>
274 <listitem>
275 <para>
276 Minus 3
277 </para>
278 </listitem>
279 </itemizedlist>
280 </sect2>
281 <sect2 id="ordered">
282 <title>Ordered</title>
283 <para>
284 Tight:
285 </para>
286 <orderedlist numeration="arabic" spacing="compact">
287 <listitem>
288 <para>
289 First
290 </para>
291 </listitem>
292 <listitem>
293 <para>
294 Second
295 </para>
296 </listitem>
297 <listitem>
298 <para>
299 Third
300 </para>
301 </listitem>
302 </orderedlist>
303 <para>
304 and:
305 </para>
306 <orderedlist numeration="arabic" spacing="compact">
307 <listitem>
308 <para>
309 One
310 </para>
311 </listitem>
312 <listitem>
313 <para>
314 Two
315 </para>
316 </listitem>
317 <listitem>
318 <para>
319 Three
320 </para>
321 </listitem>
322 </orderedlist>
323 <para>
324 Loose using tabs:
325 </para>
326 <orderedlist numeration="arabic">
327 <listitem>
328 <para>
329 First
330 </para>
331 </listitem>
332 <listitem>
333 <para>
334 Second
335 </para>
336 </listitem>
337 <listitem>
338 <para>
339 Third
340 </para>
341 </listitem>
342 </orderedlist>
343 <para>
344 and using spaces:
345 </para>
346 <orderedlist numeration="arabic">
347 <listitem>
348 <para>
349 One
350 </para>
351 </listitem>
352 <listitem>
353 <para>
354 Two
355 </para>
356 </listitem>
357 <listitem>
358 <para>
359 Three
360 </para>
361 </listitem>
362 </orderedlist>
363 <para>
364 Multiple paragraphs:
365 </para>
366 <orderedlist numeration="arabic">
367 <listitem>
368 <para>
369 Item 1, graf one.
370 </para>
371 <para>
372 Item 1. graf two. The quick brown fox jumped over the lazy dog’s
373 back.
374 </para>
375 </listitem>
376 <listitem>
377 <para>
378 Item 2.
379 </para>
380 </listitem>
381 <listitem>
382 <para>
383 Item 3.
384 </para>
385 </listitem>
386 </orderedlist>
387 </sect2>
388 <sect2 id="nested">
389 <title>Nested</title>
390 <itemizedlist spacing="compact">
391 <listitem>
392 <para>
393 Tab
394 </para>
395 <itemizedlist spacing="compact">
396 <listitem>
397 <para>
398 Tab
399 </para>
400 <itemizedlist spacing="compact">
401 <listitem>
402 <para>
403 Tab
404 </para>
405 </listitem>
406 </itemizedlist>
407 </listitem>
408 </itemizedlist>
409 </listitem>
410 </itemizedlist>
411 <para>
412 Here’s another:
413 </para>
414 <orderedlist numeration="arabic" spacing="compact">
415 <listitem>
416 <para>
417 First
418 </para>
419 </listitem>
420 <listitem>
421 <para>
422 Second:
423 </para>
424 <itemizedlist spacing="compact">
425 <listitem>
426 <para>
427 Fee
428 </para>
429 </listitem>
430 <listitem>
431 <para>
432 Fie
433 </para>
434 </listitem>
435 <listitem>
436 <para>
437 Foe
438 </para>
439 </listitem>
440 </itemizedlist>
441 </listitem>
442 <listitem>
443 <para>
444 Third
445 </para>
446 </listitem>
447 </orderedlist>
448 <para>
449 Same thing but with paragraphs:
450 </para>
451 <orderedlist numeration="arabic">
452 <listitem>
453 <para>
454 First
455 </para>
456 </listitem>
457 <listitem>
458 <para>
459 Second:
460 </para>
461 <itemizedlist spacing="compact">
462 <listitem>
463 <para>
464 Fee
465 </para>
466 </listitem>
467 <listitem>
468 <para>
469 Fie
470 </para>
471 </listitem>
472 <listitem>
473 <para>
474 Foe
475 </para>
476 </listitem>
477 </itemizedlist>
478 </listitem>
479 <listitem>
480 <para>
481 Third
482 </para>
483 </listitem>
484 </orderedlist>
485 </sect2>
486 <sect2 id="tabs-and-spaces">
487 <title>Tabs and spaces</title>
488 <itemizedlist>
489 <listitem>
490 <para>
491 this is a list item indented with tabs
492 </para>
493 </listitem>
494 <listitem>
495 <para>
496 this is a list item indented with spaces
497 </para>
498 <itemizedlist>
499 <listitem>
500 <para>
501 this is an example list item indented with tabs
502 </para>
503 </listitem>
504 <listitem>
505 <para>
506 this is an example list item indented with spaces
507 </para>
508 </listitem>
509 </itemizedlist>
510 </listitem>
511 </itemizedlist>
512 </sect2>
513 <sect2 id="fancy-list-markers">
514 <title>Fancy list markers</title>
515 <orderedlist numeration="arabic">
516 <listitem override="2">
517 <para>
518 begins with 2
519 </para>
520 </listitem>
521 <listitem>
522 <para>
523 and now 3
524 </para>
525 <para>
526 with a continuation
527 </para>
528 <orderedlist numeration="lowerroman" spacing="compact">
529 <listitem override="4">
530 <para>
531 sublist with roman numerals, starting with 4
532 </para>
533 </listitem>
534 <listitem>
535 <para>
536 more items
537 </para>
538 <orderedlist numeration="upperalpha" spacing="compact">
539 <listitem>
540 <para>
541 a subsublist
542 </para>
543 </listitem>
544 <listitem>
545 <para>
546 a subsublist
547 </para>
548 </listitem>
549 </orderedlist>
550 </listitem>
551 </orderedlist>
552 </listitem>
553 </orderedlist>
554 <para>
555 Nesting:
556 </para>
557 <orderedlist numeration="upperalpha" spacing="compact">
558 <listitem>
559 <para>
560 Upper Alpha
561 </para>
562 <orderedlist numeration="upperroman" spacing="compact">
563 <listitem>
564 <para>
565 Upper Roman.
566 </para>
567 <orderedlist numeration="arabic" spacing="compact">
568 <listitem override="6">
569 <para>
570 Decimal start with 6
571 </para>
572 <orderedlist numeration="loweralpha" spacing="compact">
573 <listitem override="3">
574 <para>
575 Lower alpha with paren
576 </para>
577 </listitem>
578 </orderedlist>
579 </listitem>
580 </orderedlist>
581 </listitem>
582 </orderedlist>
583 </listitem>
584 </orderedlist>
585 <para>
586 Autonumbering:
587 </para>
588 <orderedlist spacing="compact">
589 <listitem>
590 <para>
591 Autonumber.
592 </para>
593 </listitem>
594 <listitem>
595 <para>
596 More.
597 </para>
598 <orderedlist spacing="compact">
599 <listitem>
600 <para>
601 Nested.
602 </para>
603 </listitem>
604 </orderedlist>
605 </listitem>
606 </orderedlist>
607 <para>
608 Should not be a list item:
609 </para>
610 <para>
611 M.A. 2007
612 </para>
613 <para>
614 B. Williams
615 </para>
616 </sect2>
617 </sect1>
618 <sect1 id="definition-lists">
619 <title>Definition Lists</title>
620 <para>
621 Tight using spaces:
622 </para>
623 <variablelist spacing="compact">
624 <varlistentry>
625 <term>
626 apple
627 </term>
628 <listitem>
629 <para>
630 red fruit
631 </para>
632 </listitem>
633 </varlistentry>
634 <varlistentry>
635 <term>
636 orange
637 </term>
638 <listitem>
639 <para>
640 orange fruit
641 </para>
642 </listitem>
643 </varlistentry>
644 <varlistentry>
645 <term>
646 banana
647 </term>
648 <listitem>
649 <para>
650 yellow fruit
651 </para>
652 </listitem>
653 </varlistentry>
654 </variablelist>
655 <para>
656 Tight using tabs:
657 </para>
658 <variablelist spacing="compact">
659 <varlistentry>
660 <term>
661 apple
662 </term>
663 <listitem>
664 <para>
665 red fruit
666 </para>
667 </listitem>
668 </varlistentry>
669 <varlistentry>
670 <term>
671 orange
672 </term>
673 <listitem>
674 <para>
675 orange fruit
676 </para>
677 </listitem>
678 </varlistentry>
679 <varlistentry>
680 <term>
681 banana
682 </term>
683 <listitem>
684 <para>
685 yellow fruit
686 </para>
687 </listitem>
688 </varlistentry>
689 </variablelist>
690 <para>
691 Loose:
692 </para>
693 <variablelist>
694 <varlistentry>
695 <term>
696 apple
697 </term>
698 <listitem>
699 <para>
700 red fruit
701 </para>
702 </listitem>
703 </varlistentry>
704 <varlistentry>
705 <term>
706 orange
707 </term>
708 <listitem>
709 <para>
710 orange fruit
711 </para>
712 </listitem>
713 </varlistentry>
714 <varlistentry>
715 <term>
716 banana
717 </term>
718 <listitem>
719 <para>
720 yellow fruit
721 </para>
722 </listitem>
723 </varlistentry>
724 </variablelist>
725 <para>
726 Multiple blocks with italics:
727 </para>
728 <variablelist>
729 <varlistentry>
730 <term>
731 <emphasis>apple</emphasis>
732 </term>
733 <listitem>
734 <para>
735 red fruit
736 </para>
737 <para>
738 contains seeds, crisp, pleasant to taste
739 </para>
740 </listitem>
741 </varlistentry>
742 <varlistentry>
743 <term>
744 <emphasis>orange</emphasis>
745 </term>
746 <listitem>
747 <para>
748 orange fruit
749 </para>
750 <programlisting>
751{ orange code block }
752</programlisting>
753 <blockquote>
754 <para>
755 orange block quote
756 </para>
757 </blockquote>
758 </listitem>
759 </varlistentry>
760 </variablelist>
761 <para>
762 Multiple definitions, tight:
763 </para>
764 <variablelist spacing="compact">
765 <varlistentry>
766 <term>
767 apple
768 </term>
769 <listitem>
770 <para>
771 red fruit
772 </para>
773 <para>
774 computer
775 </para>
776 </listitem>
777 </varlistentry>
778 <varlistentry>
779 <term>
780 orange
781 </term>
782 <listitem>
783 <para>
784 orange fruit
785 </para>
786 <para>
787 bank
788 </para>
789 </listitem>
790 </varlistentry>
791 </variablelist>
792 <para>
793 Multiple definitions, loose:
794 </para>
795 <variablelist>
796 <varlistentry>
797 <term>
798 apple
799 </term>
800 <listitem>
801 <para>
802 red fruit
803 </para>
804 <para>
805 computer
806 </para>
807 </listitem>
808 </varlistentry>
809 <varlistentry>
810 <term>
811 orange
812 </term>
813 <listitem>
814 <para>
815 orange fruit
816 </para>
817 <para>
818 bank
819 </para>
820 </listitem>
821 </varlistentry>
822 </variablelist>
823 <para>
824 Blank line after term, indented marker, alternate markers:
825 </para>
826 <variablelist>
827 <varlistentry>
828 <term>
829 apple
830 </term>
831 <listitem>
832 <para>
833 red fruit
834 </para>
835 <para>
836 computer
837 </para>
838 </listitem>
839 </varlistentry>
840 <varlistentry>
841 <term>
842 orange
843 </term>
844 <listitem>
845 <para>
846 orange fruit
847 </para>
848 <orderedlist numeration="arabic" spacing="compact">
849 <listitem>
850 <para>
851 sublist
852 </para>
853 </listitem>
854 <listitem>
855 <para>
856 sublist
857 </para>
858 </listitem>
859 </orderedlist>
860 </listitem>
861 </varlistentry>
862 </variablelist>
863 </sect1>
864 <sect1 id="html-blocks">
865 <title>HTML Blocks</title>
866 <para>
867 Simple block on one line:
868 </para>
869 <para>
870 foo
871 </para>
872 <para>
873 And nested without indentation:
874 </para>
875 <para>
876 foo
877 </para>
878 <para>
879 bar
880 </para>
881 <para>
882 Interpreted markdown in a table:
883 </para>
884 <table>
885 <tr>
886 <td>
887 This is <emphasis>emphasized</emphasis>
888 </td>
889 <td>
890 And this is <emphasis role="strong">strong</emphasis>
891 </td>
892 </tr>
893 </table>
894 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
895 <para>
896 Here’s a simple block:
897 </para>
898 <para>
899 foo
900 </para>
901 <para>
902 This should be a code block, though:
903 </para>
904 <programlisting>
905&lt;div&gt;
906 foo
907&lt;/div&gt;
908</programlisting>
909 <para>
910 As should this:
911 </para>
912 <programlisting>
913&lt;div&gt;foo&lt;/div&gt;
914</programlisting>
915 <para>
916 Now, nested:
917 </para>
918 <para>
919 foo
920 </para>
921 <para>
922 This should just be an HTML comment:
923 </para>
924 <!-- Comment -->
925 <para>
926 Multiline:
927 </para>
928 <!--
929 Blah
930 Blah
931 -->
932 <!--
933 This is another comment.
934 -->
935 <para>
936 Code block:
937 </para>
938 <programlisting>
939&lt;!-- Comment --&gt;
940</programlisting>
941 <para>
942 Just plain comment, with trailing spaces on the line:
943 </para>
944 <!-- foo -->
945 <para>
946 Code:
947 </para>
948 <programlisting>
949&lt;hr /&gt;
950</programlisting>
951 <para>
952 Hr’s:
953 </para>
954 <hr>
955 <hr />
956 <hr />
957 <hr>
958 <hr />
959 <hr />
960 <hr class="foo" id="bar" />
961 <hr class="foo" id="bar" />
962 <hr class="foo" id="bar">
963 </sect1>
964 <sect1 id="inline-markup">
965 <title>Inline Markup</title>
966 <para>
967 This is <emphasis>emphasized</emphasis>, and so <emphasis>is
968 this</emphasis>.
969 </para>
970 <para>
971 This is <emphasis role="strong">strong</emphasis>, and so
972 <emphasis role="strong">is this</emphasis>.
973 </para>
974 <para>
975 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
976 </para>
977 <para>
978 <emphasis role="strong"><emphasis>This is strong and
979 em.</emphasis></emphasis>
980 </para>
981 <para>
982 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
983 </para>
984 <para>
985 <emphasis role="strong"><emphasis>This is strong and
986 em.</emphasis></emphasis>
987 </para>
988 <para>
989 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
990 </para>
991 <para>
992 This is code: <literal>&gt;</literal>, <literal>$</literal>,
993 <literal>\</literal>, <literal>\$</literal>,
994 <literal>&lt;html&gt;</literal>.
995 </para>
996 <para>
997 <emphasis role="strikethrough">This is
998 <emphasis>strikeout</emphasis>.</emphasis>
999 </para>
1000 <para>
1001 Superscripts: a<superscript>bc</superscript>d
1002 a<superscript><emphasis>hello</emphasis></superscript>
1003 a<superscript>hello there</superscript>.
1004 </para>
1005 <para>
1006 Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
1007 H<subscript>many of them</subscript>O.
1008 </para>
1009 <para>
1010 These should not be superscripts or subscripts, because of the unescaped
1011 spaces: a^b c^d, a~b c~d.
1012 </para>
1013 </sect1>
1014 <sect1 id="smart-quotes-ellipses-dashes">
1015 <title>Smart quotes, ellipses, dashes</title>
1016 <para>
1017 <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is
1018 my name.</quote>
1019 </para>
1020 <para>
1021 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
1022 </para>
1023 <para>
1024 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are
1025 names of trees. So is <quote>pine.</quote>
1026 </para>
1027 <para>
1028 <quote>He said, <quote>I want to go.</quote></quote> Were you alive in
1029 the 70’s?
1030 </para>
1031 <para>
1032 Here is some quoted <quote><literal>code</literal></quote> and a
1033 <quote><ulink url="http://example.com/?foo=1&amp;bar=2">quoted
1034 link</ulink></quote>.
1035 </para>
1036 <para>
1037 Some dashes: one—two — three—four — five.
1038 </para>
1039 <para>
1040 Dashes between numbers: 5–7, 255–66, 1987–1999.
1041 </para>
1042 <para>
1043 Ellipses…and…and….
1044 </para>
1045 </sect1>
1046 <sect1 id="latex">
1047 <title>LaTeX</title>
1048 <itemizedlist spacing="compact">
1049 <listitem>
1050 <para>
1051 </para>
1052 </listitem>
1053 <listitem>
1054 <para>
1055 2 + 2 = 4
1056 </para>
1057 </listitem>
1058 <listitem>
1059 <para>
1060 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1061 </para>
1062 </listitem>
1063 <listitem>
1064 <para>
1065 <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1066 </para>
1067 </listitem>
1068 <listitem>
1069 <para>
1070 223
1071 </para>
1072 </listitem>
1073 <listitem>
1074 <para>
1075 <emphasis>p</emphasis>-Tree
1076 </para>
1077 </listitem>
1078 <listitem>
1079 <para>
1080 Here’s some display math:
1081 $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1082 </para>
1083 </listitem>
1084 <listitem>
1085 <para>
1086 Here’s one that has a line break in it:
1087 <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1088 </para>
1089 </listitem>
1090 </itemizedlist>
1091 <para>
1092 These shouldn’t be math:
1093 </para>
1094 <itemizedlist spacing="compact">
1095 <listitem>
1096 <para>
1097 To get the famous equation, write <literal>$e = mc^2$</literal>.
1098 </para>
1099 </listitem>
1100 <listitem>
1101 <para>
1102 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1103 worked if <quote>lot</quote> is emphasized.)
1104 </para>
1105 </listitem>
1106 <listitem>
1107 <para>
1108 Shoes ($20) and socks ($5).
1109 </para>
1110 </listitem>
1111 <listitem>
1112 <para>
1113 Escaped <literal>$</literal>: $73 <emphasis>this should be
1114 emphasized</emphasis> 23$.
1115 </para>
1116 </listitem>
1117 </itemizedlist>
1118 <para>
1119 Here’s a LaTeX table:
1120 </para>
1121 </sect1>
1122 <sect1 id="special-characters">
1123 <title>Special Characters</title>
1124 <para>
1125 Here is some unicode:
1126 </para>
1127 <itemizedlist spacing="compact">
1128 <listitem>
1129 <para>
1130 I hat: Î
1131 </para>
1132 </listitem>
1133 <listitem>
1134 <para>
1135 o umlaut: ö
1136 </para>
1137 </listitem>
1138 <listitem>
1139 <para>
1140 section: §
1141 </para>
1142 </listitem>
1143 <listitem>
1144 <para>
1145 set membership: ∈
1146 </para>
1147 </listitem>
1148 <listitem>
1149 <para>
1150 copyright: ©
1151 </para>
1152 </listitem>
1153 </itemizedlist>
1154 <para>
1155 AT&amp;T has an ampersand in their name.
1156 </para>
1157 <para>
1158 AT&amp;T is another way to write it.
1159 </para>
1160 <para>
1161 This &amp; that.
1162 </para>
1163 <para>
1164 4 &lt; 5.
1165 </para>
1166 <para>
1167 6 &gt; 5.
1168 </para>
1169 <para>
1170 Backslash: \
1171 </para>
1172 <para>
1173 Backtick: `
1174 </para>
1175 <para>
1176 Asterisk: *
1177 </para>
1178 <para>
1179 Underscore: _
1180 </para>
1181 <para>
1182 Left brace: {
1183 </para>
1184 <para>
1185 Right brace: }
1186 </para>
1187 <para>
1188 Left bracket: [
1189 </para>
1190 <para>
1191 Right bracket: ]
1192 </para>
1193 <para>
1194 Left paren: (
1195 </para>
1196 <para>
1197 Right paren: )
1198 </para>
1199 <para>
1200 Greater-than: &gt;
1201 </para>
1202 <para>
1203 Hash: #
1204 </para>
1205 <para>
1206 Period: .
1207 </para>
1208 <para>
1209 Bang: !
1210 </para>
1211 <para>
1212 Plus: +
1213 </para>
1214 <para>
1215 Minus: -
1216 </para>
1217 </sect1>
1218 <sect1 id="links">
1219 <title>Links</title>
1220 <sect2 id="explicit">
1221 <title>Explicit</title>
1222 <para>
1223 Just a <ulink url="/url/">URL</ulink>.
1224 </para>
1225 <para>
1226 <ulink url="/url/">URL and title</ulink>.
1227 </para>
1228 <para>
1229 <ulink url="/url/">URL and title</ulink>.
1230 </para>
1231 <para>
1232 <ulink url="/url/">URL and title</ulink>.
1233 </para>
1234 <para>
1235 <ulink url="/url/">URL and title</ulink>
1236 </para>
1237 <para>
1238 <ulink url="/url/">URL and title</ulink>
1239 </para>
1240 <para>
1241 <ulink url="/url/with_underscore">with_underscore</ulink>
1242 </para>
1243 <para>
1244 Email link (<email>nobody@nowhere.net</email>)
1245 </para>
1246 <para>
1247 <ulink url="">Empty</ulink>.
1248 </para>
1249 </sect2>
1250 <sect2 id="reference">
1251 <title>Reference</title>
1252 <para>
1253 Foo <ulink url="/url/">bar</ulink>.
1254 </para>
1255 <para>
1256 With <ulink url="/url/">embedded [brackets]</ulink>.
1257 </para>
1258 <para>
1259 <ulink url="/url/">b</ulink> by itself should be a link.
1260 </para>
1261 <para>
1262 Indented <ulink url="/url">once</ulink>.
1263 </para>
1264 <para>
1265 Indented <ulink url="/url">twice</ulink>.
1266 </para>
1267 <para>
1268 Indented <ulink url="/url">thrice</ulink>.
1269 </para>
1270 <para>
1271 This should [not][] be a link.
1272 </para>
1273 <programlisting>
1274[not]: /url
1275</programlisting>
1276 <para>
1277 Foo <ulink url="/url/">bar</ulink>.
1278 </para>
1279 <para>
1280 Foo <ulink url="/url/">biz</ulink>.
1281 </para>
1282 </sect2>
1283 <sect2 id="with-ampersands">
1284 <title>With ampersands</title>
1285 <para>
1286 Here’s a <ulink url="http://example.com/?foo=1&amp;bar=2">link with an
1287 ampersand in the URL</ulink>.
1288 </para>
1289 <para>
1290 Here’s a link with an amersand in the link text:
1291 <ulink url="http://att.com/">AT&amp;T</ulink>.
1292 </para>
1293 <para>
1294 Here’s an <ulink url="/script?foo=1&amp;bar=2">inline link</ulink>.
1295 </para>
1296 <para>
1297 Here’s an <ulink url="/script?foo=1&amp;bar=2">inline link in pointy
1298 braces</ulink>.
1299 </para>
1300 </sect2>
1301 <sect2 id="autolinks">
1302 <title>Autolinks</title>
1303 <para>
1304 With an ampersand:
1305 <ulink url="http://example.com/?foo=1&amp;bar=2" role="uri">http://example.com/?foo=1&amp;bar=2</ulink>
1306 </para>
1307 <itemizedlist spacing="compact">
1308 <listitem>
1309 <para>
1310 In a list?
1311 </para>
1312 </listitem>
1313 <listitem>
1314 <para>
1315 <ulink url="http://example.com/" role="uri">http://example.com/</ulink>
1316 </para>
1317 </listitem>
1318 <listitem>
1319 <para>
1320 It should.
1321 </para>
1322 </listitem>
1323 </itemizedlist>
1324 <para>
1325 An e-mail address: <email>nobody@nowhere.net</email>
1326 </para>
1327 <blockquote>
1328 <para>
1329 Blockquoted:
1330 <ulink url="http://example.com/" role="uri">http://example.com/</ulink>
1331 </para>
1332 </blockquote>
1333 <para>
1334 Auto-links should not occur here:
1335 <literal>&lt;http://example.com/&gt;</literal>
1336 </para>
1337 <programlisting>
1338or here: &lt;http://example.com/&gt;
1339</programlisting>
1340 </sect2>
1341 </sect1>
1342 <sect1 id="images">
1343 <title>Images</title>
1344 <para>
1345 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1346 </para>
1347 <figure>
1348 <title>lalune</title>
1349 <mediaobject>
1350 <imageobject>
1351 <imagedata fileref="lalune.jpg" />
1352 </imageobject>
1353 <textobject><phrase>lalune</phrase></textobject>
1354 </mediaobject>
1355 </figure>
1356 <para>
1357 Here is a movie <inlinemediaobject>
1358 <imageobject>
1359 <imagedata fileref="movie.jpg" />
1360 </imageobject>
1361 </inlinemediaobject> icon.
1362 </para>
1363 </sect1>
1364 <sect1 id="footnotes">
1365 <title>Footnotes</title>
1366 <para>
1367 Here is a footnote reference,<footnote>
1368 <para>
1369 Here is the footnote. It can go anywhere after the footnote
1370 reference. It need not be placed at the end of the document.
1371 </para>
1372 </footnote> and another.<footnote>
1373 <para>
1374 Here’s the long note. This one contains multiple blocks.
1375 </para>
1376 <para>
1377 Subsequent blocks are indented to show that they belong to the
1378 footnote (as with list items).
1379 </para>
1380 <programlisting>
1381 { &lt;code&gt; }
1382</programlisting>
1383 <para>
1384 If you want, you can indent every line, but you can also be lazy and
1385 just indent the first line of each block.
1386 </para>
1387 </footnote> This should <emphasis>not</emphasis> be a footnote
1388 reference, because it contains a space.[^my note] Here is an inline
1389 note.<footnote>
1390 <para>
1391 This is <emphasis>easier</emphasis> to type. Inline notes may
1392 contain <ulink url="http://google.com">links</ulink> and
1393 <literal>]</literal> verbatim characters, as well as [bracketed
1394 text].
1395 </para>
1396 </footnote>
1397 </para>
1398 <blockquote>
1399 <para>
1400 Notes can go in quotes.<footnote>
1401 <para>
1402 In quote.
1403 </para>
1404 </footnote>
1405 </para>
1406 </blockquote>
1407 <orderedlist numeration="arabic" spacing="compact">
1408 <listitem>
1409 <para>
1410 And in list items.<footnote>
1411 <para>
1412 In list.
1413 </para>
1414 </footnote>
1415 </para>
1416 </listitem>
1417 </orderedlist>
1418 <para>
1419 This paragraph should not be part of the note, as it is not indented.
1420 </para>
1421 </sect1>
1422</article>