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