2 <!DOCTYPE chapter SYSTEM "../doc.dtd">
3 <?xml-stylesheet type="text/xsl" href="../html.xsl"?>
6 XML documentation system
7 Original author : Arjen Baart - arjen@andromeda.nl
8 Version : $Revision: 1.1 $
12 <heading><label name='block'/>Block-level content</heading>
14 The actual content of your document is organized in <emph>block-level</emph>
15 elements, such a paragraphs, lists or tables.
19 <heading>Paragraphs</heading>
21 The most basic type of content block is an ordinary paragraph, contained
22 in a <strong>para</strong> element.
23 To make several separate paragraphs, you must enclose each paragraph
24 in a <strong>para</strong> open tag and a <strong>para</strong> close tag.
25 Here is an example of two small paragraphs:
29 This is an example of a small paragraph.
32 And here is another paragraph.
40 A second type of paragraph is a <strong>quote</strong>.
41 You can make a quote by using the <code>quote</code> element:
45 This is an example of a quote.
46 The text within a quoted paragraph is usually slightly indented on both
47 the left and the right margin.
54 This is an example of a quote.
55 The text within a quoted paragraph is usually slightly indented on both
56 the left and the right margin.
61 A special kind of paragraph is the <strong>verbatim</strong> environment.
62 Just as in LaTeX, this is used to include literal text output with spaces,
63 indentation and line breaks preserved.
64 The practical use for the <strong>verbatim</strong> element is to
65 include coding examples, such as:
77 Which comes out like this:
90 <heading>Footnotes</heading>
92 Footnotes are created with the <strong>footnote</strong> element:
93 <footnote>This is an example of a footnote</footnote>
96 <footnote>This is an example of a footnote</footnote>
99 Within a footnote, you can use <emph>inline</emph> content <footnote>described in the
100 next chapter</footnote> to format the type
101 styles of the text in the footnote.
102 It is not possible to use the block content described in this chapter within
107 Footnotes appear at the bottom of the page, with a small number in the
108 running text referring to that footnote.
114 <heading>Lists</heading>
116 Two types of lists<footnote>A description list is not implemented yet</footnote> are supported:
118 <item><code>itemize</code> for bulleted lists such as this one.</item>
119 <item><code>enumerate</code> for numbered lists.</item>
122 Each item in such a list must be in an <strong>item</strong> element.
123 In fact, an <strong>item</strong> is the only element allowed in an
124 <strong>itemize</strong> or <strong>enumerate</strong> element.
125 You should not put ordinary text or any other element in a list without
126 enclosing them in <code><item></code> and <code></item></code>.
127 Here is an example of a numbered list:
132 <item>First you need an enumerate or itemize tag.</item>
133 <item>Second, include one or more item elements.</item>
134 <item>Finally, put the content inside the items.</item>
139 And this is what the list turns into:
142 <item>First you need an enumerate or itemize tag.</item>
143 <item>Second, include one or more item elements.</item>
144 <item>Finally, put the content inside the items.</item>
151 <heading>Including graphics</heading>
153 The empty element <strong>picture</strong> is used to include
154 graphics in your document, like this:
157 <picture src='diagram.png' eps='diagram' scale='0.5'/>
160 The two attributes are used in either HTML or LaTeX.
165 <heading>Tables</heading>
167 Creating tables in XMLDoc is much like creating tables in HTML.
168 First, there is the <strong>table</strong> element.
169 The <strong>table</strong> element may contain any number of
170 <strong>row</strong> elements, which may in turn contain any number
171 of <strong>col</strong> elements.
172 The <strong>col</strong> elements hold the actual content of
173 the table, which must be inline content (see next chapter).
174 To use the tables in LaTeX, you must supply a <strong>cpos</strong>
175 attribute in the <strong>table</strong> tag.
177 <emph>...tune in next week for a table example...</emph>