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