File: manual.xml

package info (click to toggle)
dblatex 0.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,340 kB
  • ctags: 306
  • sloc: xml: 40,983; python: 2,314; makefile: 118; sh: 91
file content (427 lines) | stat: -rw-r--r-- 13,497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
                      "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
[
<!ENTITY edition "14">
]>

<book lang="en" xmlns:xi="http://www.w3.org/2001/XInclude">
 <bookinfo>
  <title>
  DocBook to LaTeX Publishing 
 </title>
 <author>
  <firstname>Benot</firstname><surname>Guillon</surname>
 </author>
 <date>
  27 Sep 2006
 </date>
<subtitle>User Manual</subtitle>
<pubsnumber>Ref A0</pubsnumber>
<address>Toulon</address>
<edition>&edition;</edition>
<releaseinfo>Working Paper</releaseinfo>
<othercredit>
<firstname>Jean-Yves</firstname><surname>Le Ruyet</surname>
<contrib>REVIEWED BY</contrib>
</othercredit>
<othercredit>
<firstname></firstname><surname></surname>
<contrib>APPROVED BY</contrib>
</othercredit>
<revhistory>
<revision>
<revnumber>1</revnumber>
<date>20/01/03</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  First release of the package.
 </para>
</revdescription></revision>
<revision>
<revnumber>2</revnumber><date>30/04/03</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes:
 </para>
 <itemizedlist>
  <listitem>
  <para>
  The script <filename>configure</filename> now checks the latex package dependencies, i.e. it checks that the packages used by the default DocBook latex style are available.
  </para>
 </listitem>
  <listitem>
  <para>
  The tool can be heavily customized thanks to a specification file and/or new extra options (cf. <xref linkend="sec-custom"/>).
  </para>
 </listitem>
 </itemizedlist>
</revdescription>
</revision>
<revision>
<revnumber>3</revnumber><date>11/06/03</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes:
 </para>
 <itemizedlist>
  <listitem>
  <para>
  The <ulink url="http://xsltml.sourceforge.net">xsltml</ulink> library is included in the package to have a strong and consistent support of the MathML 2.0 specification.
  </para>
 </listitem>
  <listitem>
  <para>
  A large excerpt fo the MathML Test Suite 2.0 is now available to validate the MathML stylesheets.
  </para>
 </listitem>
 </itemizedlist>
</revdescription>
</revision> 
<revision>
<revnumber>4</revnumber><date>03/07/03</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes:
 </para>
 <itemizedlist>
  <listitem>
  <para>
  Dutch language is supported by the default latex stylesheets.
  </para>
 </listitem>
  <listitem>
  <para>
  The <sgmltag>subtitle</sgmltag> element is displayed on the cover page.
  </para>
 </listitem>
  <listitem>
  <para>
  Tables can be displayed in landscape, through the <sgmltag>orient</sgmltag> attribute. In addition, the table text size can be specified to be smaller by using the <sgmltag>role</sgmltag> attribute.
  </para>
 </listitem>
  <listitem>
  <para>
  Hyphenation is forced in tables, so that no words can cover several cells.
  </para>
 </listitem>
 </itemizedlist>
</revdescription>
</revision>
<revision>
<revnumber>5</revnumber><date>03/05/04</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-014"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>6</revnumber><date>15/06/04</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-0141"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>7</revnumber><date>15/07/05</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-015"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>8</revnumber><date>25/09/05</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-016"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>9</revnumber><date>20/10/05</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-017"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>10</revnumber><date>28/11/05</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-018"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>11</revnumber><date>28/04/06</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-019"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>12</revnumber><date>21/07/06</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-0110"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>13</revnumber><date>27/09/06</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-02pre"/>
 </para>
</revdescription>
</revision>
<revision>
<revnumber>&edition;</revnumber><date>27/10/06</date>
<authorinitials>B. Guillon</authorinitials>
<revdescription>
 <para>
  Changes: see <xref linkend="sec-changes-020"/>
 </para>
</revdescription>
</revision>
</revhistory>
</bookinfo>
<bibliography><title>Documentation</title>
<bibliodiv><title>Reference</title>
<biblioentry> 
<abbrev>TDG</abbrev> 
<title>DocBook: The Definitive Guide</title> 
<authorgroup><author><firstname>Norman</firstname><surname>Walsh</surname></author>
<author><firstname>Leonard</firstname><surname>Muellner</surname></author></authorgroup> 
<copyright><year>1999, 2000, 2001</year> <holder>O'Reilly &amp; Associates, Inc.</holder></copyright> 
<isbn>156592-580-7</isbn> 
<publisher><publishername>O'Reilly</publishername> </publisher> 
</biblioentry>
</bibliodiv>
</bibliography>
<xi:include href="introduction.xml"/>
<xi:include href="install.xml"/>
 <chapter>
  <title>
  Using dblatex
 </title>
<xi:include href="manpage/dblatex-doc.xml"/>
<xi:include href="custom/style.xml"/>
<xi:include href="figure.xml"/>
<xi:include href="tables/table.xml"/>
  <sect1>
   <title>
   Writing LaTeX mathematical equations
  </title>
   <sect2>
    <title>
    Presentation
   </title>
   <para>
    DocBook doesn't define elements for writing mathematical equations. Only few elements exist that tell how equation should be displayed (inlined, block):
   </para>
   <itemizedlist>
    <listitem>
    <para>
    <sgmltag>inlineequation</sgmltag> tells that the equation is inlined,
    </para>
   </listitem>
    <listitem>
    <para>
    <sgmltag>informalequation</sgmltag> tells that the equation is displayed as a block, without a title.
    </para>
   </listitem>
    <listitem>
    <para>
    <sgmltag>equation</sgmltag> tells that the equation is displayed as a block, with or without a title.
    </para>
   </listitem>
   </itemizedlist>
   <para>
    These tags include a graphic (<sgmltag>graphic</sgmltag> or <sgmltag>mediaobject</sgmltag>) or an alternative text equation, as shown by the example.
   </para>
<example><title>Equation taken from TDG</title>
   <programlisting>
<![CDATA[<equation><title>Last Theorem of Fermat</title> 
]]><![CDATA[  <alt>x^n + y^n &ne; z^n &forall; n &ne; 2</alt>
]]><![CDATA[  <graphic fileref="figures/fermat"></graphic>
]]><![CDATA[</equation>
]]>   </programlisting>
</example>
   </sect2>
   <sect2>
    <title>
    Implementation choice
   </title>
   <para>
    The principle is to use only the <sgmltag>alt</sgmltag> element. If initially <sgmltag>alt</sgmltag> contains actually the text to print, it is chosen to use this element to embed LaTeX mathematical equations. This choice has the following advantages:
   </para>
   <itemizedlist>
    <listitem>
    <para>
    The translation done by dblatex is really easy, since the equation is already written in LaTeX.
    </para>
   </listitem>
    <listitem>
    <para>
    LaTeX is one of the best word processor to render mathematical formulas.
    </para>
   </listitem>
    <listitem>
    <para>
    One doesn't need to write the equations in MathML.
    </para>
   </listitem>
    <listitem>
    <para>
    This method isn't specific to this tool (see the following section).
    </para>
   </listitem>
   </itemizedlist>
   <para>
    Besides, the implementation is as light as possible. This is why it is up to the writer to properly use the mathematical delimiters (&dollar;, &bsol;(, &bsol;), &bsol;&lsqb;, &bsol;&rsqb;). By this way the writer fully controls how he writes equations.
   </para>
   </sect2>
   <sect2>
    <title>
    Compatibility
   </title>
   <para>
    This implementation is not contradictory nor specific. In partticular, the <ulink url="http://ricardo.ecn.wfu.edu/~cottrell/dbtexmath/">DBTeXMath</ulink> proposal to extend the DSSSL stylesheets used by jade follows the same approach, and is integrated in the Norman Walsh XSL stylesheets.
   </para>
   </sect2>
   <sect2>
    <title>
    Examples
   </title>
   <para>
    The following examples show how to write the equations.
   </para>
<example><title>Inlined Equation</title>
<xi:include href="math/equation-eg1.xml"/>
<programlisting><textobject><textdata fileref="math/equation-eg1.xml"/></textobject>
</programlisting>
</example>
<example><title>Equation in a block</title>
<xi:include href="math/equation-eg2.xml"/>
<programlisting><textobject><textdata fileref="math/equation-eg2.xml"/></textobject>
</programlisting>
</example>
<example><title>Equation in a float</title>
<xi:include href="math/equation-eg3.xml"/>
<programlisting><textobject><textdata fileref="math/equation-eg3.xml"/></textobject>
</programlisting>
</example>
<example><title>Equation without a title</title>
<xi:include href="math/equation-eg4.xml"/>
<programlisting><textobject><textdata fileref="math/equation-eg4.xml"/></textobject>
</programlisting>
</example>
   </sect2>
  </sect1>
<xi:include href="math/mathml.xml"/>
  <sect1>
   <title>
   Creating an Index
  </title>
  <para>
   An index is automatically generated if some index entries (<sgmltag>indexterm</sgmltag>), telling the terms to put in the index, are written in the document. The <sgmltag>keyword</sgmltag> elements are not printed but are also added to the index.
  </para>
<example><title>Index Entry</title>
  <programlisting>
<![CDATA[<para>In this paragraph is described the function 
]]><![CDATA[<function>strcpy</function><indexterm><primary>strcpy</primary></indexterm>.
]]><![CDATA[</para>
]]>  </programlisting>
</example>
  <para>
   The index is put at the end of the document. It is not possible to put it somewhere else.
  </para>
  </sect1>
  <sect1>
   <title>
   Writing a Bibliography
  </title>
  <para>
   A bibliography (<sgmltag>bibliography</sgmltag>) can be written and put anywhere in the document. It appears as a chapter or a section and is composed by several divisions (<sgmltag>bibliodiv</sgmltag>) displayed as sections or subsections.
  </para>
  <para>
   The writer selects information that describes each bibliography entry (<sgmltag>biblioentry</sgmltag>), and chooses the presentation order. The titles and authors are displayed first.
  </para>
<example><title>A Bibliography</title>
  <programlisting>
<![CDATA[<bibliography><title>Bibliography Example</title> 
  <bibliodiv><title>References</title>
    <biblioentry>
      <title>Document title</title>
      <author><firstname>J.</firstname><surname>Duval</surname></author>
      <pubsnumber>DEX000567325</pubsnumber>
    </biblioentry>
  </bibliodiv>
  <bibliodiv><title>White papers</title>
    <biblioentry>
      <title>Technical notes</title>
      <authorgroup>
        <author><firstname>J.</firstname><surname>Duval</surname></author>
        <author><firstname>R.</firstname><surname>Marion</surname></author>
      </authorgroup>
      <pubsnumber>DEX000704520</pubsnumber>
    </biblioentry>
  </bibliodiv>
</bibliography>
]]>  </programlisting>
</example>
  </sect1>
  <sect1>
   <title>
   Document Revisions
  </title>
  <para>
   The attribute <sgmltag>revisionflag</sgmltag> is usefull to identify the changes between two revisions of a document. This information is managed by dblatex, that adds revision bars in the margin of the paragraphs changed, such like in this <phrase revisionflag="changed">paragraph</phrase>.
  </para>
  <para>
   Adding the revision flags can be manual, but its is tedious and error prone. The perl script <ulink url="http://www.sun.com/xml/developers/diffmk/">diffmk</ulink> by Norman Walsh can do the work for you. It works fine, but it depends on several Perl modules.
  </para>
<note><para>
The revision bars only appear when using the "dvips" driver. It seems to be a limitation of the LaTeX macros defined by the changebar package.
</para></note>
  </sect1>
 </chapter>
<xi:include href="custom/custom.xml"/>
<xi:include href="faq.xml"/>
 <chapter>
  <title>
  Thanks
 </title>
 <para>
  Thanks to the people who contributed to the project at its early age: Jean-Yves Le
  Ruyet, precursory and hard-working user, Julien Ducourthial for his precious help,
  Vincent Hottier who asked for the embedded LaTeX equations support.</para>
  <para>Thanks also to the current contributors: David Hedley (newtbl
  implementor), Andreas Hoenen (Debian maintainer), and Nicolas Pernetty
  (Windows port).</para>
  <para>Special thanks to the KDE documentation team, especially Philip Rodrigues,
  Michael Smith from the DocBook Project, and Kai Brommann, for their
  feedbacks, encouragements, and advice.
 </para>
 </chapter>

</book>