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