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