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