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