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