git.iko.soy/typeable/pandoc
on 1.3 help sign in
typeable/pandoc/tests/writer.docbook
1470 lines 33 kB history raw
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
5<article>
6 <articleinfo>
7 <title>Pandoc Test Suite</title>
8 <author>
9 <firstname>John</firstname>
10 <surname>MacFarlane</surname>
11 </author>
12 <author>
13 <firstname></firstname>
14 <surname>Anonymous</surname>
15 </author>
16 <date>July 17, 2006</date>
17 </articleinfo>
18 <para>
19 This is a set of tests for pandoc. Most of them are adapted from
20 John Gruber's markdown test suite.
21 </para>
22 <section id="headers">
23 <title>Headers</title>
24 <section id="level-2-with-an-embedded-link">
25 <title>Level 2 with an
26 <ulink url="/url">embedded link</ulink></title>
27 <section id="level-3-with-emphasis">
28 <title>Level 3 with <emphasis>emphasis</emphasis></title>
29 <section id="level-4">
30 <title>Level 4</title>
31 <section id="level-5">
32 <title>Level 5</title>
33 <para>
34 </para>
35 </section>
36 </section>
37 </section>
38 </section>
39 </section>
40 <section id="level-1">
41 <title>Level 1</title>
42 <section id="level-2-with-emphasis">
43 <title>Level 2 with <emphasis>emphasis</emphasis></title>
44 <section id="level-3">
45 <title>Level 3</title>
46 <para>
47 with no blank line
48 </para>
49 </section>
50 </section>
51 <section id="level-2">
52 <title>Level 2</title>
53 <para>
54 with no blank line
55 </para>
56 </section>
57 </section>
58 <section 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
65 list item. Because a hard-wrapped line in the middle of a paragraph
66 looked like a list item.
67 </para>
68 <para>
69 Here's one with a bullet. * criminey.
70 </para>
71 <para>
72 There should be a hard line
73 break<literallayout></literallayout>here.
74 </para>
75 </section>
76 <section 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 <screen>
91sub status {
92 print &quot;working&quot;;
94</screen>
95 <para>
96 A list:
97 </para>
98 <orderedlist numeration="arabic">
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 id="code-blocks">
132 <title>Code Blocks</title>
133 <para>
134 Code:
135 </para>
136 <screen>
137---- (should be four hyphens)
139sub status {
140 print &quot;working&quot;;
143this code block is indented by one tab
144</screen>
145 <para>
146 And:
147 </para>
148 <screen>
149 this code block is indented by two tabs
151These should not be escaped: \$ \\ \&gt; \[ \{
152</screen>
153 </section>
154 <section id="lists">
155 <title>Lists</title>
156 <section id="unordered">
157 <title>Unordered</title>
158 <para>
159 Asterisks tight:
160 </para>
161 <itemizedlist>
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>
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>
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 id="ordered">
280 <title>Ordered</title>
281 <para>
282 Tight:
283 </para>
284 <orderedlist numeration="arabic">
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">
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 id="nested">
387 <title>Nested</title>
388 <itemizedlist>
389 <listitem>
390 <para>
391 Tab
392 </para>
393 <itemizedlist>
394 <listitem>
395 <para>
396 Tab
397 </para>
398 <itemizedlist>
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">
413 <listitem>
414 <para>
415 First
416 </para>
417 </listitem>
418 <listitem>
419 <para>
420 Second:
421 </para>
422 <itemizedlist>
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>
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 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 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">
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">
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">
556 <listitem>
557 <para>
558 Upper Alpha
559 </para>
560 <orderedlist numeration="upperroman">
561 <listitem>
562 <para>
563 Upper Roman.
564 </para>
565 <orderedlist numeration="arabic">
566 <listitem override="6">
567 <para>
568 Decimal start with 6
569 </para>
570 <orderedlist numeration="loweralpha">
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>
587 <listitem>
588 <para>
589 Autonumber.
590 </para>
591 </listitem>
592 <listitem>
593 <para>
594 More.
595 </para>
596 <orderedlist>
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.&#160;2007
610 </para>
611 <para>
612 B. Williams
613 </para>
614 </section>
615 </section>
616 <section id="definition-lists">
617 <title>Definition Lists</title>
618 <para>
619 Tight using spaces:
620 </para>
621 <variablelist>
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>
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 <screen>
749{ orange code block }
750</screen>
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>
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">
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 id="html-blocks">
863 <title>HTML Blocks</title>
864 <para>
865 Simple block on one line:
866 </para>
867 <div>
868 foo
869 </div>
871 <para>
872 And nested without indentation:
873 </para>
874 <div>
875<div>
876<div>
877 foo
878 </div>
879</div>
880<div>
881 bar
882 </div>
883</div>
885 <para>
886 Interpreted markdown in a table:
887 </para>
888 <table>
889<tr>
890<td>
891 This is <emphasis>emphasized</emphasis>
892 </td>
893<td>
894 And this is <emphasis role="strong">strong</emphasis>
895 </td>
896</tr>
897</table>
899<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
901 <para>
902 Here's a simple block:
903 </para>
904 <div>
906 foo
907 </div>
909 <para>
910 This should be a code block, though:
911 </para>
912 <screen>
913&lt;div&gt;
914 foo
915&lt;/div&gt;
916</screen>
917 <para>
918 As should this:
919 </para>
920 <screen>
921&lt;div&gt;foo&lt;/div&gt;
922</screen>
923 <para>
924 Now, nested:
925 </para>
926 <div>
927 <div>
928 <div>
930 foo
931 </div>
932 </div>
933</div>
935 <para>
936 This should just be an HTML comment:
937 </para>
938 <!-- Comment -->
940 <para>
941 Multiline:
942 </para>
943 <!--
944Blah
945Blah
946-->
948<!--
949 This is another comment.
950-->
952 <para>
953 Code block:
954 </para>
955 <screen>
956&lt;!-- Comment --&gt;
957</screen>
958 <para>
959 Just plain comment, with trailing spaces on the line:
960 </para>
961 <!-- foo -->
963 <para>
964 Code:
965 </para>
966 <screen>
967&lt;hr /&gt;
968</screen>
969 <para>
970 Hr's:
971 </para>
972 <hr>
974<hr />
976<hr />
978<hr>
980<hr />
982<hr />
984<hr class="foo" id="bar" />
986<hr class="foo" id="bar" />
988<hr class="foo" id="bar">
990 </section>
991 <section id="inline-markup">
992 <title>Inline Markup</title>
993 <para>
994 This is <emphasis>emphasized</emphasis>, and so
995 <emphasis>is this</emphasis>.
996 </para>
997 <para>
998 This is <emphasis role="strong">strong</emphasis>, and so
999 <emphasis role="strong">is this</emphasis>.
1000 </para>
1001 <para>
1002 An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
1003 </para>
1004 <para>
1005 <emphasis role="strong"><emphasis>This is strong and em.</emphasis></emphasis>
1006 </para>
1007 <para>
1008 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis>
1009 word.
1010 </para>
1011 <para>
1012 <emphasis role="strong"><emphasis>This is strong and em.</emphasis></emphasis>
1013 </para>
1014 <para>
1015 So is <emphasis role="strong"><emphasis>this</emphasis></emphasis>
1016 word.
1017 </para>
1018 <para>
1019 This is code: <literal>&gt;</literal>, <literal>$</literal>,
1020 <literal>\</literal>, <literal>\$</literal>,
1021 <literal>&lt;html&gt;</literal>.
1022 </para>
1023 <para>
1024 <emphasis role="strikethrough">This is <emphasis>strikeout</emphasis>.</emphasis>
1025 </para>
1026 <para>
1027 Superscripts: a<superscript>bc</superscript>d
1028 a<superscript><emphasis>hello</emphasis></superscript>
1029 a<superscript>hello&#160;there</superscript>.
1030 </para>
1031 <para>
1032 Subscripts: H<subscript>2</subscript>O,
1033 H<subscript>23</subscript>O,
1034 H<subscript>many&#160;of&#160;them</subscript>O.
1035 </para>
1036 <para>
1037 These should not be superscripts or subscripts, because of the
1038 unescaped spaces: a^b c^d, a~b c~d.
1039 </para>
1040 </section>
1041 <section id="smart-quotes-ellipses-dashes">
1042 <title>Smart quotes, ellipses, dashes</title>
1043 <para>
1044 <quote>Hello,</quote> said the spider.
1045 <quote><quote>Shelob</quote> is my name.</quote>
1046 </para>
1047 <para>
1048 <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are
1049 letters.
1050 </para>
1051 <para>
1052 <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote>
1053 are names of trees. So is <quote>pine.</quote>
1054 </para>
1055 <para>
1056 <quote>He said, <quote>I want to go.</quote></quote> Were you alive
1057 in the 70's?
1058 </para>
1059 <para>
1060 Here is some quoted <quote><literal>code</literal></quote> and a
1061 <quote><ulink url="http://example.com/?foo=1&amp;bar=2">quoted link</ulink></quote>.
1062 </para>
1063 <para>
1064 Some dashes: one&#8212;two &#8212; three&#8212;four &#8212; five.
1065 </para>
1066 <para>
1067 Dashes between numbers: 5&#8211;7, 255&#8211;66, 1987&#8211;1999.
1068 </para>
1069 <para>
1070 Ellipses&#8230;and&#8230;and&#8230;.
1071 </para>
1072 </section>
1073 <section id="latex">
1074 <title>LaTeX</title>
1075 <itemizedlist>
1076 <listitem>
1077 <para>
1078 </para>
1079 </listitem>
1080 <listitem>
1081 <para>
1082 2+2=4
1083 </para>
1084 </listitem>
1085 <listitem>
1086 <para>
1087 <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1088 </para>
1089 </listitem>
1090 <listitem>
1091 <para>
1092 α ∧ ω
1093 </para>
1094 </listitem>
1095 <listitem>
1096 <para>
1097 223
1098 </para>
1099 </listitem>
1100 <listitem>
1101 <para>
1102 <emphasis>p</emphasis>-Tree
1103 </para>
1104 </listitem>
1105 <listitem>
1106 <para>
1107 Here's some display math:
1108 \frac{<emphasis>d</emphasis>}{<emphasis>dx</emphasis>}<emphasis>f</emphasis>(<emphasis>x</emphasis>)=\lim<subscript><emphasis>h</emphasis> → 0</subscript>\frac{<emphasis>f</emphasis>(<emphasis>x</emphasis>+<emphasis>h</emphasis>)-<emphasis>f</emphasis>(<emphasis>x</emphasis>)}{<emphasis>h</emphasis>}
1109 </para>
1110 </listitem>
1111 <listitem>
1112 <para>
1113 Here's one that has a line break in it:
1114 α+ω × <emphasis>x</emphasis><superscript>2</superscript>.
1115 </para>
1116 </listitem>
1117 </itemizedlist>
1118 <para>
1119 These shouldn't be math:
1120 </para>
1121 <itemizedlist>
1122 <listitem>
1123 <para>
1124 To get the famous equation, write <literal>$e = mc^2$</literal>.
1125 </para>
1126 </listitem>
1127 <listitem>
1128 <para>
1129 $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1130 worked if <quote>lot</quote> is emphasized.)
1131 </para>
1132 </listitem>
1133 <listitem>
1134 <para>
1135 Shoes ($20) and socks ($5).
1136 </para>
1137 </listitem>
1138 <listitem>
1139 <para>
1140 Escaped <literal>$</literal>: $73
1141 <emphasis>this should be emphasized</emphasis> 23$.
1142 </para>
1143 </listitem>
1144 </itemizedlist>
1145 <para>
1146 Here's a LaTeX table:
1147 </para>
1148 <para>
1149 </para>
1150 </section>
1151 <section id="special-characters">
1152 <title>Special Characters</title>
1153 <para>
1154 Here is some unicode:
1155 </para>
1156 <itemizedlist>
1157 <listitem>
1158 <para>
1159 I hat: Î
1160 </para>
1161 </listitem>
1162 <listitem>
1163 <para>
1164 o umlaut: ö
1165 </para>
1166 </listitem>
1167 <listitem>
1168 <para>
1169 section: §
1170 </para>
1171 </listitem>
1172 <listitem>
1173 <para>
1174 set membership: ∈
1175 </para>
1176 </listitem>
1177 <listitem>
1178 <para>
1179 copyright: ©
1180 </para>
1181 </listitem>
1182 </itemizedlist>
1183 <para>
1184 AT&amp;T has an ampersand in their name.
1185 </para>
1186 <para>
1187 AT&amp;T is another way to write it.
1188 </para>
1189 <para>
1190 This &amp; that.
1191 </para>
1192 <para>
1193 4 &lt; 5.
1194 </para>
1195 <para>
1196 6 &gt; 5.
1197 </para>
1198 <para>
1199 Backslash: \
1200 </para>
1201 <para>
1202 Backtick: `
1203 </para>
1204 <para>
1205 Asterisk: *
1206 </para>
1207 <para>
1208 Underscore: _
1209 </para>
1210 <para>
1211 Left brace: {
1212 </para>
1213 <para>
1214 Right brace: }
1215 </para>
1216 <para>
1217 Left bracket: [
1218 </para>
1219 <para>
1220 Right bracket: ]
1221 </para>
1222 <para>
1223 Left paren: (
1224 </para>
1225 <para>
1226 Right paren: )
1227 </para>
1228 <para>
1229 Greater-than: &gt;
1230 </para>
1231 <para>
1232 Hash: #
1233 </para>
1234 <para>
1235 Period: .
1236 </para>
1237 <para>
1238 Bang: !
1239 </para>
1240 <para>
1241 Plus: +
1242 </para>
1243 <para>
1244 Minus: -
1245 </para>
1246 </section>
1247 <section id="links">
1248 <title>Links</title>
1249 <section id="explicit">
1250 <title>Explicit</title>
1251 <para>
1252 Just a <ulink url="/url/">URL</ulink>.
1253 </para>
1254 <para>
1255 <ulink url="/url/">URL and title</ulink>.
1256 </para>
1257 <para>
1258 <ulink url="/url/">URL and title</ulink>.
1259 </para>
1260 <para>
1261 <ulink url="/url/">URL and title</ulink>.
1262 </para>
1263 <para>
1264 <ulink url="/url/">URL and title</ulink>
1265 </para>
1266 <para>
1267 <ulink url="/url/">URL and title</ulink>
1268 </para>
1269 <para>
1270 <ulink url="/url/with_underscore">with_underscore</ulink>
1271 </para>
1272 <para>
1273 Email link (<email>nobody@nowhere.net</email>)
1274 </para>
1275 <para>
1276 <ulink url="">Empty</ulink>.
1277 </para>
1278 </section>
1279 <section id="reference">
1280 <title>Reference</title>
1281 <para>
1282 Foo <ulink url="/url/">bar</ulink>.
1283 </para>
1284 <para>
1285 Foo <ulink url="/url/">bar</ulink>.
1286 </para>
1287 <para>
1288 Foo <ulink url="/url/">bar</ulink>.
1289 </para>
1290 <para>
1291 With <ulink url="/url/">embedded [brackets]</ulink>.
1292 </para>
1293 <para>
1294 <ulink url="/url/">b</ulink> by itself should be a link.
1295 </para>
1296 <para>
1297 Indented <ulink url="/url">once</ulink>.
1298 </para>
1299 <para>
1300 Indented <ulink url="/url">twice</ulink>.
1301 </para>
1302 <para>
1303 Indented <ulink url="/url">thrice</ulink>.
1304 </para>
1305 <para>
1306 This should [not][] be a link.
1307 </para>
1308 <screen>
1309[not]: /url
1310</screen>
1311 <para>
1312 Foo <ulink url="/url/">bar</ulink>.
1313 </para>
1314 <para>
1315 Foo <ulink url="/url/">biz</ulink>.
1316 </para>
1317 </section>
1318 <section id="with-ampersands">
1319 <title>With ampersands</title>
1320 <para>
1321 Here's a
1322 <ulink url="http://example.com/?foo=1&amp;bar=2">link with an ampersand in the URL</ulink>.
1323 </para>
1324 <para>
1325 Here's a link with an amersand in the link text:
1326 <ulink url="http://att.com/">AT&amp;T</ulink>.
1327 </para>
1328 <para>
1329 Here's an <ulink url="/script?foo=1&amp;bar=2">inline link</ulink>.
1330 </para>
1331 <para>
1332 Here's an
1333 <ulink url="/script?foo=1&amp;bar=2">inline link in pointy braces</ulink>.
1334 </para>
1335 </section>
1336 <section id="autolinks">
1337 <title>Autolinks</title>
1338 <para>
1339 With an ampersand:
1340 <ulink url="http://example.com/?foo=1&amp;bar=2"><literal>http://example.com/?foo=1&amp;bar=2</literal></ulink>
1341 </para>
1342 <itemizedlist>
1343 <listitem>
1344 <para>
1345 In a list?
1346 </para>
1347 </listitem>
1348 <listitem>
1349 <para>
1350 <ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
1351 </para>
1352 </listitem>
1353 <listitem>
1354 <para>
1355 It should.
1356 </para>
1357 </listitem>
1358 </itemizedlist>
1359 <para>
1360 An e-mail address: <email>nobody@nowhere.net</email>
1361 </para>
1362 <blockquote>
1363 <para>
1364 Blockquoted:
1365 <ulink url="http://example.com/"><literal>http://example.com/</literal></ulink>
1366 </para>
1367 </blockquote>
1368 <para>
1369 Auto-links should not occur here:
1370 <literal>&lt;http://example.com/&gt;</literal>
1371 </para>
1372 <screen>
1373or here: &lt;http://example.com/&gt;
1374</screen>
1375 </section>
1376 </section>
1377 <section id="images">
1378 <title>Images</title>
1379 <para>
1380 From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1381 </para>
1382 <para>
1383 <inlinemediaobject>
1384 <imageobject>
1385 <objectinfo>
1386 <title>
1387 Voyage dans la Lune
1388 </title>
1389 </objectinfo>
1390 <imagedata fileref="lalune.jpg" />
1391 </imageobject>
1392 </inlinemediaobject>
1393 </para>
1394 <para>
1395 Here is a movie
1396 <inlinemediaobject>
1397 <imageobject>
1398 <imagedata fileref="movie.jpg" />
1399 </imageobject>
1400 </inlinemediaobject>
1401 icon.
1402 </para>
1403 </section>
1404 <section id="footnotes">
1405 <title>Footnotes</title>
1406 <para>
1407 Here is a footnote
1408 reference,<footnote>
1409 <para>
1410 Here is the footnote. It can go anywhere after the footnote
1411 reference. It need not be placed at the end of the document.
1412 </para>
1413 </footnote>
1414 and
1415 another.<footnote>
1416 <para>
1417 Here's the long note. This one contains multiple blocks.
1418 </para>
1419 <para>
1420 Subsequent blocks are indented to show that they belong to the
1421 footnote (as with list items).
1422 </para>
1423 <screen>
1424 { &lt;code&gt; }
1425</screen>
1426 <para>
1427 If you want, you can indent every line, but you can also be lazy
1428 and just indent the first line of each block.
1429 </para>
1430 </footnote>
1431 This should <emphasis>not</emphasis> be a footnote reference,
1432 because it contains a space.[^my note] Here is an inline
1433 note.<footnote>
1434 <para>
1435 This is <emphasis>easier</emphasis> to type. Inline notes may
1436 contain <ulink url="http://google.com">links</ulink> and
1437 <literal>]</literal> verbatim characters, as well as [bracketed
1438 text].
1439 </para>
1440 </footnote>
1441 </para>
1442 <blockquote>
1443 <para>
1444 Notes can go in
1445 quotes.<footnote>
1446 <para>
1447 In quote.
1448 </para>
1449 </footnote>
1450 </para>
1451 </blockquote>
1452 <orderedlist numeration="arabic">
1453 <listitem>
1454 <para>
1455 And in list
1456 items.<footnote>
1457 <para>
1458 In list.
1459 </para>
1460 </footnote>
1461 </para>
1462 </listitem>
1463 </orderedlist>
1464 <para>
1465 This paragraph should not be part of the note, as it is not
1466 indented.
1467 </para>
1468 </section>
1469</article>