]> git.lyx.org Git - lyx.git/blob - autotests/export/docbook/basic.xml
DocBook: simplify code to handle abstracts.
[lyx.git] / autotests / export / docbook / basic.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This DocBook file was created by LyX 2.4.0dev
3   See http://www.lyx.org/ for more information -->
4 <article xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.1">
5
6 <info><title>I am a title</title>
7 <author><personname>I am an author</personname></author>
8 <date>I am a date</date>
9
10 <abstract><para>I am an abstract</para>
11 <para>I am also an abstract</para>
12 </abstract>
13 </info>
14 <para>I am a standard paragraph. </para>
15 <section xml:id="sec.Sec-1-0">
16 <title>I am the first section </title>
17 <para>I am the first paragraph of the first section. </para>
18
19 <para>I am the second paragraph of the first section. </para>
20
21 <blockquote><para>I am a quote
22  <inlineequation>
23   <m:math>
24   <m:alt role='tex'>\,with\,a\,formula</m:alt>
25  <m:mrow>
26   <m:mrow>
27   <m:mspace width="6px"/><m:mi>w</m:mi><m:mi>i</m:mi><m:mi>t</m:mi><m:mi>h</m:mi>
28   <m:mspace width="6px"/><m:mi>a</m:mi>
29   <m:mspace width="6px"/><m:mi>f</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi>
30   </m:mrow>
31  </m:mrow>
32   </m:math>
33  </inlineequation>. </para>
34 </blockquote>
35 <para>
36  <informalequation>
37   <m:math>
38   <m:alt role='tex'>Formula!</m:alt>
39  <m:mrow>
40   <m:mrow><m:mi>F</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi><m:mo>!</m:mo>
41   </m:mrow>
42  </m:mrow>
43   </m:math>
44  </informalequation>
45  <informalequation xml:id='eq.EQ.-1'>
46   <m:math>
47   <m:alt role='tex'>\text{I am a formula with a ref.}\label{eq:EQ.}</m:alt>
48  <m:mrow>
49   <m:mstyle mathvariant='normal'>
50    <m:mrow><m:mi>I</m:mi>&#0160;<m:mi>a</m:mi><m:mi>m</m:mi>&#0160;<m:mi>a</m:mi>&#0160;<m:mi>f</m:mi><m:mi>o</m:mi><m:mi>r</m:mi><m:mi>m</m:mi><m:mi>u</m:mi><m:mi>l</m:mi><m:mi>a</m:mi>&#0160;<m:mi>w</m:mi><m:mi>i</m:mi><m:mi>t</m:mi><m:mi>h</m:mi>&#0160;<m:mi>a</m:mi>&#0160;<m:mi>r</m:mi><m:mi>e</m:mi><m:mi>f</m:mi><m:mn>.</m:mn>
51    </m:mrow>
52   </m:mstyle>
53  </m:mrow>
54   </m:math>
55  </informalequation></para>
56
57 <para>See <xref linkend="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz-2" />.</para>
58
59 <para>Also, a formula with an user-defined macro that outputs well in LaTeX but cannot in MathML (hence replaced by picture): 
60  <inlineequation>
61   <m:math>
62   <m:alt role='tex'>\testmacro</m:alt>
63   </m:math>
64  </inlineequation>. </para>
65
66 <!-- \latexCommandThatShouldBeCommented --><section>
67 <title>I am the first subsection</title>
68 <para>I am the only paragraph of the first subsection. </para>
69 </section>
70 <section>
71 <title>I am the second subsection</title>
72 <para>I am the only paragraph of the second subsection. </para>
73 </section>
74 </section>
75 <section xml:id="sec.Sec-2kqgsdiflhqsdlifgjuzer-povtuizmvnuer-t-vmsrmfli--uh--a--rtpfuo----rtpc.m-ca-rgifzapeu-tvgz-2">
76 <title>I am the second section </title>
77 <para>I am the only paragraph of the second section. <link xlink:href="http://example.org">Hyperlink.</link> &#8220;Text between quotes.&#8221;</para>
78
79 <para>See <xref linkend="sec.Sec-1-0" />.</para>
80 </section>
81 <section>
82 <title>I am the third section and I have fun with lists</title>
83
84
85 <orderedlist><listitem><para>First item. </para>
86 <para>Second line of the first item, after a line break. </para>
87 </listitem>
88
89 <listitem><para>Second item. </para>
90 </listitem>
91 </orderedlist>
92
93
94 <itemizedlist><listitem><para>Item has no order (1). </para>
95 </listitem>
96
97 <listitem><para>Item has no order (2). </para>
98 </listitem>
99 </itemizedlist>
100
101 <variablelist><varlistentry><term>Word</term>
102
103
104 <listitem><para> description</para>
105 </listitem></varlistentry>
106 <varlistentry><term>Sentence</term>
107
108
109 <listitem><para> meaning</para>
110 </listitem></varlistentry>
111 </variablelist>
112 </section>
113 <section>
114 <title>I am the fourth section and I deal with formatting. </title>
115 <para>The following paragraph should be code. </para>
116
117 <para><programlisting>I am some code. 
118 I am a second line of code. </programlisting>I am no more code. </para>
119
120 <para>This line has inline code. <code>This has typewriter font</code><footnote><para>I repeat that in a footnote.</para>
121 </footnote>. </para>
122
123 <para>On the other hand, <footnote><para>this footnote</para>
124
125 <para>has multiple </para>
126
127 <para>paragraphs.</para>
128 </footnote>. </para>
129 </section>
130 <section>
131 <title>I am the fifth section and I deal with floats</title>
132 <para>Now, three tables: </para>
133
134
135 <table><caption>I am a table caption below the table.</caption>
136
137
138 <tbody><tr><td align='center' valign='top'>Table 1</td>
139 <td align='center' valign='top'>Table 2</td>
140 <td align='center' valign='top'>Table 3</td>
141 </tr>
142 <tr><td align='center' valign='top'>Row 1</td>
143 <td align='center' valign='top'></td>
144 <td align='center' valign='top'>Col 3, row 1</td>
145 </tr>
146 <tr><td align='center' valign='top'>Row 2</td>
147 <td align='center' valign='top'></td>
148 <td align='center' valign='top'>Col 3, row 2</td>
149 </tr></tbody>
150
151 </table>
152
153
154 <table><caption>I am a table caption above the table.</caption>
155
156
157
158 <tbody><tr><td align='center' valign='top'>Table 1</td>
159 <td align='center' valign='top'>Table 2</td>
160 <td align='center' valign='top'>Table 3</td>
161 </tr>
162 <tr><td align='center' valign='top'>Row 1</td>
163 <td align='center' valign='top'></td>
164 <td align='center' valign='top'>Col 3, row 1</td>
165 </tr>
166 <tr><td align='center' valign='top'>Row 2</td>
167 <td align='center' valign='top'></td>
168 <td align='center' valign='top'>Col 3, row 2</td>
169 </tr></tbody>
170 </table>
171
172
173
174
175 <informaltable><tbody><tr><td align='center' valign='top'>Table that has no caption 1</td>
176 <td align='center' valign='top'>Table that has no caption 2</td>
177 <td align='center' valign='top'>Table that has no caption 3</td>
178 </tr>
179 <tr><td align='center' valign='top'>Row 1</td>
180 <td align='center' valign='top'></td>
181 <td align='center' valign='top'>Col 3, row 1</td>
182 </tr>
183 <tr><td align='center' valign='top'>Row 2</td>
184 <td align='center' valign='top'></td>
185 <td align='center' valign='top'>Col 3, row 2</td>
186 </tr></tbody>
187 </informaltable>
188
189 <para>Then, one figure: </para>
190
191
192 <figure><title>Caption.</title>
193
194
195 <mediaobject><imageobject><imagedata fileref="0_mnt_d_Thibaut_LyX_autotests_export_docbook_lyx-logo.png"  />
196 </imageobject>
197 </mediaobject>
198
199 </figure>
200 </section>
201 <section>
202 <title>I am the sixth section and I really like bibliographies</title>
203 <para>This text has references. First reference: <biblioref endterm="big" />. Second reference: <biblioref endterm="small" />. Both at the same time: <biblioref endterm="big" />, <biblioref endterm="small" />. A book: <biblioref endterm="Gro60" />. </para>
204
205 <para>Many things, just testing for completeness: <biblioref endterm="article" />, <biblioref endterm="book" />, <biblioref endterm="booklet" />, <biblioref endterm="conference" />, <biblioref endterm="inbook" />, <biblioref endterm="incollection" />. </para>
206 </section>
207 <section>
208 <title>I am the seventh section and I deal with indices</title>
209 <para>First, a term to index: <indexterm type="idx"><primary>Term to index</primary></indexterm>. Then a term to add to the second index: <indexterm type="oth"><primary>Term to add to the second index</primary></indexterm>. </para>
210
211 <para>Then several terms for the first index: <indexterm type="idx"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. </para>
212
213 <para>With a see: <indexterm type="idx"><primary>Term</primary><see>index</see></indexterm>. With a see also: <indexterm type="idx"><primary>Term</primary><seealso>index</seealso></indexterm>. </para>
214
215 <para>Several terms with a see: <indexterm type="idx"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary><see>index</see></indexterm>. Several terms with a see also: <indexterm type="idx"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary><seealso>index</seealso></indexterm>. </para>
216
217 <para>A start of range: <indexterm type="idx" class="startofrange" xml:id="Term-to-index-3"><primary>Term to index</primary></indexterm>. The corresponding end of range: <indexterm type="idx" class="endofrange" startref="Term-to-index-3"><primary>Term to index</primary></indexterm>.</para>
218
219 <para>Several terms with a start of range: <indexterm type="idx" class="startofrange" xml:id="Term.to.index-4"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. The corresponding end of range: <indexterm type="idx" class="endofrange" startref="Term.to.index-4"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>.</para>
220
221 <para>These terms already appeared before! Start of range: <indexterm type="idx" class="startofrange" xml:id="Term.to.index-0-5"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>. The corresponding end of range: <indexterm type="idx" class="endofrange" startref="Term.to.index-0-5"><primary>Term</primary><secondary>to</secondary><tertiary>index</tertiary></indexterm>.</para>
222 </section>
223 <section>
224 <title>I am the eight section and I deal with star sections</title>
225 <bridgehead renderas="part">Star part</bridgehead>
226 <bridgehead renderas="sect1">Star section (sect1)</bridgehead>
227 <bridgehead renderas="sect2">Star subsection (sect2)</bridgehead>
228 <bridgehead renderas="sect3">Star subsubsection (sect3)</bridgehead>
229 <bridgehead renderas="sect4">Star paragraph (sect4)</bridgehead>
230 <bridgehead renderas="sect5">Star subparagraph (sect5)</bridgehead>
231 </section>
232
233 <bibliography><title>References</title>
234
235 <biblioentry xml:id="article"><title>The title of the work</title><volumenum>4</volumenum><artpagenums>201-213</artpagenums><bibliomisc role="type">article</bibliomisc>
236 <pubdate>1993</pubdate>
237
238 <biblioset relation="journal"><title>The name of the journal</title>
239 </biblioset>
240
241
242 <authorgroup><author><personname><firstname>Peter</firstname>
243 <surname>Adams</surname>
244 </personname>
245 </author>
246 </authorgroup>
247 <biblioid class="pubsnumber">2</biblioid>
248 <bibliomisc role="note">An optional note</bibliomisc>
249 </biblioentry>
250
251 <biblioentry xml:id="book"><title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><bibliomisc role="type">book</bibliomisc>
252
253 <publisher><publishername>The name of the publisher</publishername>
254 <address>The address</address></publisher>
255 <pubdate>1993</pubdate>
256
257
258 <authorgroup><author><personname><firstname>Peter</firstname>
259 <surname>Babington</surname>
260 </personname>
261 </author>
262 </authorgroup>
263 <bibliomisc role="note">An optional note</bibliomisc>
264 </biblioentry>
265
266 <biblioentry xml:id="booklet"><title>The title of the work</title><bibliomisc role="type">booklet</bibliomisc>
267 <pubdate>1993</pubdate>
268
269
270 <authorgroup><author><personname><firstname>Peter</firstname>
271 <surname>Caxton</surname>
272 </personname>
273 </author>
274 </authorgroup>
275 </biblioentry>
276
277 <biblioentry xml:id="conference"><title>The title of the work</title><artpagenums>213</artpagenums><bibliomisc role="type">conference</bibliomisc>
278
279 <publisher><publishername>The publisher</publishername>
280 </publisher>
281 <pubdate>1993</pubdate>
282
283
284 <authorgroup><author><personname><firstname>Peter</firstname>
285 <surname>Draper</surname>
286 </personname>
287 </author>
288 </authorgroup>
289 </biblioentry>
290
291 <biblioentry xml:id="inbook"><title>The title of the work</title><artpagenums>201-213</artpagenums><bibliomisc role="type">inbook</bibliomisc>
292
293 <publisher><publishername>The name of the publisher</publishername>
294 </publisher>
295 <pubdate>1993</pubdate>
296
297
298 <authorgroup><author><personname><firstname>Peter</firstname>
299 <surname>Eston</surname>
300 </personname>
301 </author>
302 </authorgroup>
303 </biblioentry>
304
305 <biblioentry xml:id="incollection"><title>The title of the work</title><volumenum>4</volumenum><edition>3</edition><artpagenums>201-213</artpagenums><bibliomisc role="type">incollection</bibliomisc>
306
307 <publisher><publishername>The name of the publisher</publishername>
308 <address>The address of the publisher</address></publisher>
309 <pubdate>1993</pubdate>
310
311 <biblioset relation="book"><title>The title of the book</title>
312 </biblioset>
313
314
315 <authorgroup><author><personname><firstname>Peter</firstname>
316 <surname>Farindon</surname>
317 </personname>
318 </author>
319 </authorgroup>
320 <bibliomisc role="note">An optional note</bibliomisc>
321 </biblioentry>
322
323 <biblioentry xml:id="small"><title>A small paper</title><volumenum>-1</volumenum><bibliomisc role="type">article</bibliomisc>
324 <pubdate>1997</pubdate>
325
326 <biblioset relation="journal"><title>The journal of small papers</title>
327 </biblioset>
328
329
330 <authorgroup><author><personname><surname>Freely</surname>
331 <othername role="suffix">I. P.</othername>
332 </personname>
333 </author>
334
335
336 <author><personname><firstname>Ditto</firstname>
337 <surname>Johannes</surname>
338 </personname>
339 </author>
340 </authorgroup>
341 <bibliomisc role="note">to appear</bibliomisc>
342 </biblioentry>
343
344 <biblioentry xml:id="Gro60."><title>Éléments de géométrie algébrique</title><bibliomisc role="type">book</bibliomisc>
345 <pubdate>1960</pubdate>
346
347
348 <authorgroup><author><personname><firstname>Alexander</firstname>
349 <surname>Grothendieck</surname>
350 </personname>
351 </author>
352 </authorgroup>
353 </biblioentry>
354
355 <biblioentry xml:id="big"><title>A big paper</title><volumenum>MCMXCVII</volumenum><bibliomisc role="type">article</bibliomisc>
356 <pubdate>7991</pubdate>
357
358 <biblioset relation="journal"><title>The journal of big papers</title>
359 </biblioset>
360
361
362 <authorgroup><author><personname><firstname>Hugh</firstname>
363 <surname>Jass</surname>
364 </personname>
365 </author>
366 </authorgroup>
367 </biblioentry>
368 </bibliography>
369 </article>