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