Debian Codegraph @

docs/manpage/dblatex.1.xml

raw
1 <?xml version='1.0'?>
2 <!DOCTYPE refentry
3 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
4 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
5 [<!ENTITY debian "<productname>Debian</productname>">
6 <!ENTITY gnu "<acronym>GNU</acronym>">]>
7 <refentry id="ref-dblatex">
8
9 <refentryinfo>
10 <address>
11 <email>[email protected]</email>
12 </address>
13 <author>
14 <firstname>Benoit</firstname>
15 <surname>Guillon</surname>
16 <contrib>Upstream maintainer</contrib>
17 </author>
18 <author>
19 <firstname>Andreas</firstname>
20 <surname>Hoenen</surname>
21 <email>[email protected]</email>
22 <contrib>Debian maintainer</contrib>
23 </author>
24 <copyright>
25 <year>2005</year>
26 <year>2006</year>
27 <year>2007</year>
28 <year>2008</year>
29 <year>2009</year>
30 <year>2010</year>
31 <year>2011</year>
32 <year>2012</year>
33 <year>2013</year>
34 <year>2014</year>
35 <year>2015</year>
36 <holder>Andreas Hoenen</holder>
37 </copyright>
38 <legalnotice>
39 <para>
40 This manual page was written for the &debian; system (but it may be used
41 by others).
42 </para>
43 <para>
44 Permission is granted to copy, distribute and/or modify this document
45 under the terms of the &gnu; General Public License, Version 2 or any
46 later version published by the Free Software Foundation.
47 </para>
48 <para>
49 On &debian; systems, the complete text of the &gnu; General Public
50 License can be found in
51 <filename>/usr/share/common-licenses/GPL</filename>.
52 </para>
53 </legalnotice>
54 <date>March 6, 2015</date>
55 </refentryinfo>
56
57 <refmeta>
58 <refentrytitle>dblatex</refentrytitle>
59 <manvolnum>1</manvolnum>
60 <refmiscinfo class="manual">Dblatex Manual Page</refmiscinfo>
61 <refmiscinfo class="source">dblatex <xi:include href="../version.xml"
62 xmlns:xi="http://www.w3.org/2001/XInclude"/></refmiscinfo>
63 </refmeta>
64
65 <refnamediv>
66 <refname>dblatex</refname>
67 <refpurpose>
68 convert <application>DocBook</application> to
69 <application>LaTeX</application>, <application>DVI</application>,
70 <application>PostScript</application>, and <application>PDF</application>
71 </refpurpose>
72 </refnamediv>
73
74 <refsynopsisdiv>
75 <cmdsynopsis>
76 <command>dblatex</command>
77 <arg choice="opt"><option>options</option></arg>
78 <arg choice="plain">{<replaceable>file</replaceable> | -}</arg>
79 </cmdsynopsis>
80 </refsynopsisdiv>
81
82 <refsection>
83 <title>Description</title>
84
85 <para output="manpage">
86 This manual page briefly documents the <command>dblatex</command>
87 command. For more details read the <application>PDF</application> manual;
88 see below.
89 </para>
90
91 <para>
92 <command>dblatex</command> is a program that transforms your
93 <application>SGML</application>/<application>XML</application>
94 <application>DocBook</application> documents to
95 <application>DVI</application>, <application>PostScript</application> or
96 <application>PDF</application> by translating them into pure
97 <application>LaTeX</application> as a first process.
98 <application>MathML 2.0</application> markups are supported, too.
99 <phrase output="manpage">It started as a clone of
100 <application>DB2LaTeX</application>.</phrase>
101 </para>
102 </refsection>
103
104 <refsection>
105 <title>Options</title>
106
107 <para>
108 A summary of options is included below. <phrase output="manpage">For a
109 complete description, see the <application>PDF</application>
110 manual.</phrase>
111 </para>
112
113 <variablelist>
114 <varlistentry>
115 <term><option>-h</option></term>
116 <term><option>--help</option></term>
117 <listitem><simpara>Show a help message and exit.</simpara></listitem>
118 </varlistentry>
119 <varlistentry>
120 <term><option>-b <replaceable>backend</replaceable></option></term>
121 <term>
122 <option>--backend=<replaceable>backend</replaceable></option>
123 </term>
124 <listitem>
125 <simpara>
126 Backend driver to use: <parameter>pdftex</parameter> (default),
127 <parameter>dvips</parameter>, or <parameter>xetex</parameter>.
128 <phrase output="manual">
129 See also <xref linkend="sec-process"/>.</phrase>
130 </simpara>
131 </listitem>
132 </varlistentry>
133 <varlistentry>
134 <term><option>-B</option></term>
135 <term><option>--no-batch</option></term>
136 <listitem><simpara>All the tex output is printed.</simpara></listitem>
137 </varlistentry>
138 <varlistentry>
139 <term><option>-c <replaceable>config</replaceable></option></term>
140 <term><option>-S <replaceable>config</replaceable></option></term>
141 <term><option>--config=<replaceable>config</replaceable></option></term>
142 <listitem>
143 <simpara>Configuration file. A configuration file can be used to group
144 all the options and customizations to apply. <phrase output="manual">See
145 <xref linkend="sec-specs"/>.</phrase>
146 </simpara>
147 </listitem>
148 </varlistentry>
149 <varlistentry>
150 <term><option>-d</option></term>
151 <term><option>--debug</option></term>
152 <listitem>
153 <simpara>
154 Debug mode: Keep the temporary directory in which dblatex actually
155 works. <phrase output="manual"><xref linkend="sec-debug"/> explains how
156 you can use it.</phrase>
157 </simpara>
158 </listitem>
159 </varlistentry>
160 <varlistentry>
161 <term><option>-D</option></term>
162 <term><option>--dump</option></term>
163 <listitem>
164 <simpara>
165 Dump the error stack when an error occurs (debug purpose).
166 </simpara>
167 </listitem>
168 </varlistentry>
169 <varlistentry>
170 <term><option>-e <replaceable>indexstyle</replaceable></option></term>
171 <term><option>--indexstyle <replaceable>indexstyle</replaceable></option></term>
172 <listitem>
173 <simpara>
174 Index style file to pass to <command>makeindex</command> instead of
175 the dblatex default index style.
176 </simpara>
177 </listitem>
178 </varlistentry>
179 <varlistentry>
180 <term><option>-f <replaceable>figure_format</replaceable></option></term>
181 <term>
182 <option>--fig-format=<replaceable>figure_format</replaceable></option>
183 </term>
184 <listitem>
185 <simpara>
186 Input figure format: <parameter>fig</parameter>,
187 <parameter>eps</parameter>. Used when not deduced from figure file
188 extension. <phrase output="manual">See also
189 <xref linkend="sec-figconv"/>.</phrase>
190 </simpara>
191 </listitem>
192 </varlistentry>
193 <varlistentry>
194 <term><option>-F <replaceable>input_format</replaceable></option></term>
195 <term>
196 <option>--input-format=<replaceable>input_format</replaceable></option>
197 </term>
198 <listitem>
199 <simpara>
200 Input file format: <parameter>sgml</parameter>,
201 <parameter>xml</parameter> (default).
202 </simpara>
203 </listitem>
204 </varlistentry>
205 <varlistentry>
206 <term><option>-i <replaceable>texinputs</replaceable></option></term>
207 <term>
208 <option>--texinputs <replaceable>texinputs</replaceable></option>
209 </term>
210 <listitem>
211 <simpara>Path added to <envar>TEXINPUTS</envar></simpara>
212 </listitem>
213 </varlistentry>
214 <varlistentry>
215 <term><option>-I <replaceable>figure_path</replaceable></option></term>
216 <term>
217 <option>--fig-path=<replaceable>figure_path</replaceable></option>
218 </term>
219 <listitem>
220 <simpara>Additional lookup path of the figures. <phrase
221 output="manual">See <xref linkend="sec-lookup"/>.</phrase></simpara>
222 </listitem>
223 </varlistentry>
224 <varlistentry>
225 <term><option>-l <replaceable>bst_path</replaceable></option></term>
226 <term>
227 <option>--bst-path=<replaceable>bst_path</replaceable></option>
228 </term>
229 <listitem>
230 <simpara>Additional lookup path of the BibTeX styles. <phrase
231 output="manual">See <xref linkend="sec-bibtex"/>.</phrase></simpara>
232 </listitem>
233 </varlistentry>
234 <varlistentry>
235 <term><option>-L <replaceable>bib_path</replaceable></option></term>
236 <term>
237 <option>--bib-path=<replaceable>bib_path</replaceable></option>
238 </term>
239 <listitem>
240 <simpara>Additional lookup path of the BibTeX databases. <phrase
241 output="manual">See <xref linkend="sec-bibtex"/>.</phrase></simpara>
242 </listitem>
243 </varlistentry>
244 <varlistentry>
245 <term><option>-m <replaceable>xslt</replaceable></option></term>
246 <term>
247 <option>--xslt=<replaceable>xslt</replaceable></option>
248 </term>
249 <listitem>
250 <simpara>XSLT engine to use. The available engines are:
251 xsltproc (default), 4xslt, saxon.</simpara>
252 </listitem>
253 </varlistentry>
254 <varlistentry>
255 <term><option>-o <replaceable>output</replaceable></option></term>
256 <term><option>--output=<replaceable>output</replaceable></option></term>
257 <listitem>
258 <simpara>
259 Output filename. When not specified, the input filename is used, with
260 the suffix of the output format. The option is ignored if several
261 books are chunked from a set. In this case the <option>-O</option>
262 option is applied instead.
263 </simpara>
264 </listitem>
265 </varlistentry>
266 <varlistentry>
267 <term><option>-O <replaceable>output_dir</replaceable></option></term>
268 <term><option>--output-dir=<replaceable>output_dir</replaceable></option></term>
269 <listitem>
270 <simpara>
271 Output directory of the books built from a set. When not specified,
272 the current working directory is used instead. The option is ignored
273 if a single document is outputed, and the <option>-o</option> is
274 taken into account.
275 </simpara>
276 </listitem>
277 </varlistentry>
278 <varlistentry>
279 <term><option>-p <replaceable>xsl_user</replaceable></option></term>
280 <term>
281 <option>--xsl-user=<replaceable>xsl_user</replaceable></option>
282 </term>
283 <listitem>
284 <simpara>
285 An <application>XSL</application> user stylesheet to use. Several
286 user stylesheets can be specified, but the option order is meaningful: a user stylesheet takes precedence over previously defined user stylesheets.
287 <phrase output="manual">See <xref linkend="sec-param"/>.</phrase>
288 </simpara>
289 </listitem>
290 </varlistentry>
291 <varlistentry>
292 <term><option>-P <replaceable>param</replaceable>=<replaceable>value</replaceable></option>
293 </term>
294 <term>
295 <option>--param=<replaceable>param</replaceable>=<replaceable>value</replaceable></option>
296 </term>
297 <listitem>
298 <simpara>
299 Set an <application>XSL</application> parameter from command line.
300 <phrase output="manual">See <xref linkend="sec-param-value"/>.</phrase>
301 </simpara>
302 </listitem>
303 </varlistentry>
304 <varlistentry>
305 <term><option>-q</option></term>
306 <term><option>--quiet</option></term>
307 <listitem>
308 <simpara>
309 Less verbose, showing only TeX output messages and error messages.
310 </simpara>
311 </listitem>
312 </varlistentry>
313 <varlistentry>
314 <term><option>-r <optional>plugin:</optional><replaceable>script</replaceable></option></term>
315 <term>
316 <option>--texpost=<optional>plugin:</optional><replaceable>script</replaceable></option>
317 </term>
318 <listitem>
319 <simpara>
320 Script called at the very end of the tex compilation. Its role is to
321 modify the tex file or one of the compilation files before the last
322 round. The <replaceable>script</replaceable> can be a python plugin.
323 In this case add the prefix term '<literal>plugin:</literal>'.
324 <phrase output="manual">See <xref linkend="sec-texpost"/>.</phrase>
325 </simpara>
326 </listitem>
327 </varlistentry>
328 <varlistentry>
329 <term><option>-s <replaceable>latex_style</replaceable></option></term>
330 <term>
331 <option>--texstyle=<replaceable>latex_style</replaceable></option>
332 </term>
333 <listitem>
334 <simpara>
335 Latex style to apply. It can be a package name, or directly a latex
336 package path. A package name must be without a directory
337 path and without the '.sty' extension. On the contrary,
338 a full latex package path can contain a directory path, but must ends with
339 the '.sty' extension.
340 <phrase output="manual">See <xref linkend="sec-custom-latex"/>.</phrase>
341 </simpara>
342 </listitem>
343 </varlistentry>
344 <varlistentry>
345 <term><option>-t <replaceable>format</replaceable></option></term>
346 <term><option>--type=<replaceable>format</replaceable></option></term>
347 <listitem>
348 <simpara>
349 Output format. Available formats: <parameter>tex</parameter>,
350 <parameter>dvi</parameter>, <parameter>ps</parameter>,
351 <parameter>pdf</parameter> (default).
352 </simpara>
353 </listitem>
354 </varlistentry>
355 <varlistentry>
356 <term><option>--dvi</option></term>
357 <listitem>
358 <simpara>DVI output. Equivalent to <option>-tdvi</option>.</simpara>
359 </listitem>
360 </varlistentry>
361 <varlistentry>
362 <term><option>--pdf</option></term>
363 <listitem>
364 <simpara>PDF output. Equivalent to <option>-tpdf</option>.</simpara>
365 </listitem>
366 </varlistentry>
367 <varlistentry>
368 <term><option>--ps</option></term>
369 <listitem>
370 <simpara>
371 PostScript output. Equivalent to <option>-tps</option>.
372 </simpara>
373 </listitem>
374 </varlistentry>
375 <varlistentry>
376 <term><option>-T <replaceable>style</replaceable></option></term>
377 <term><option>--style=<replaceable>style</replaceable></option></term>
378 <listitem>
379 <simpara>
380 Output style, predefined are: <parameter>db2latex</parameter>,
381 <parameter>simple</parameter>, <parameter>native</parameter>
382 (default). <phrase output="manual">See <xref linkend="sec-style"/>.
383 </phrase>
384 </simpara>
385 </listitem>
386 </varlistentry>
387 <varlistentry>
388 <term><option>-v</option></term>
389 <term><option>--version</option></term>
390 <listitem><simpara>Display the dblatex version.</simpara></listitem>
391 </varlistentry>
392 <varlistentry>
393 <term><option>-V</option></term>
394 <term><option>--verbose</option></term>
395 <listitem>
396 <simpara>Verbose mode, showing the running commands</simpara>
397 </listitem>
398 </varlistentry>
399 <varlistentry>
400 <term><option>-x <replaceable>xslt_options</replaceable></option></term>
401 <term>
402 <option>--xslt-opts=<replaceable>xslt_options</replaceable></option>
403 </term>
404 <listitem>
405 <simpara>
406 Arguments directly passed to the <application>XSLT
407 engine</application>
408 </simpara>
409 </listitem>
410 </varlistentry>
411 <varlistentry>
412 <term><option>-X</option></term>
413 <term><option>--no-external</option></term>
414 <listitem>
415 <simpara>
416 Disable the external text file support. This support is needed for
417 callouts on external files referenced by <sgmltag>textdata</sgmltag>
418 or <sgmltag>imagedata</sgmltag>, but it can be disabled if the document
419 does not contain such callouts. Disabling this support can improve the
420 processing performance for big documents.
421 </simpara>
422 </listitem>
423 </varlistentry>
424 </variablelist>
425 </refsection>
426
427 <refsection>
428 <title>Files and Directories</title>
429 <variablelist>
430 <varlistentry>
431 <term><filename>$HOME/.dblatex/</filename></term>
432 <listitem>
433 <simpara>
434 User configuration directory.
435 </simpara>
436 </listitem>
437 </varlistentry>
438 <varlistentry>
439 <term><filename>/etc/dblatex/</filename></term>
440 <listitem>
441 <simpara>
442 System-wide configuration directory.
443 </simpara>
444 </listitem>
445 </varlistentry>
446 </variablelist>
447 <para>The predefined output styles are located in the installed package
448 directory.</para>
449 </refsection>
450
451 <refsection>
452 <title>Environment Variables</title>
453 <variablelist>
454 <varlistentry>
455 <term><envar>DBLATEX_CONFIG_FILES</envar></term>
456 <listitem>
457 <simpara>
458 Extra configuration directories that may contain some dblatex
459 configuration files.
460 </simpara>
461 </listitem>
462 </varlistentry>
463 </variablelist>
464 </refsection>
465
466 <refsection>
467 <title>Examples</title>
468
469 <para>
470 To produce <filename>myfile.pdf</filename> from
471 <filename>myfile.xml</filename>:
472 <screen>dblatex myfile.xml</screen>
473 </para>
474 <para>
475 To set some XSL parameters from the command line:
476 <screen>dblatex -P latex.babel.language=de myfile.xml</screen>
477 </para>
478 <para>
479 To use your XSL stylesheet:
480 <screen>dblatex -p myconfig.xsl myfile.xml</screen>
481 </para>
482 <para>
483 To use the db2latex output style:
484 <screen>dblatex -T db2latex myfile.xml</screen>
485 </para>
486 <para>
487 To apply your own latex style:
488 <screen>dblatex -s mystyle myfile.xml
489 dblatex -s /path/to/mystyle.sty myfile.xml</screen>
490 </para>
491 <para>
492 To pass extra arguments to the XSLT engine:
493 <screen>dblatex -x "--path /path/to/load/entity" myfile.xml</screen>
494 </para>
495 <para>
496 To use <command>dblatex</command> and profiling:
497 <screen>
498 xsltproc --param profile.attribute "'output'" \
499 --param profile.value "'pdf'" \
500 /path/to/profiling/profile.xsl \
501 myfile.xml | dblatex -o myfile.pdf -
502 </screen>
503 </para>
504 <para>
505 To build a set of books:
506 <screen>dblatex -O /path/to/chunk/dir -Pset.book.num=all myfile.xml</screen>
507 </para>
508 </refsection>
509
510 <refsection output="manpage">
511 <title>See also</title>
512
513 <para>
514 The program is documented fully by <citetitle>"DocBook to LaTeX Publishing
515 - User Manual"</citetitle> available in the package's documentation
516 directory.
517 </para>
518 </refsection>
519
520 </refentry>