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