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