dblatex — convert DocBook to LaTeX, DVI, PostScript, and PDF
dblatex
[options
] {file
| -}
dblatex is a program that transforms your SGML/XML DocBook documents to DVI, PostScript or PDF by translating them into pure LaTeX as a first process. MathML 2.0 markups are supported, too.
A summary of options is included below.
-h
, --help
-b backend
,
--backend=backend
pdftex
(default),
dvips
, or xetex
.
See also the section called “Backend Drivers”.
-B
, --no-batch
-c config
, -S config
, --config=config
-d
, --debug
-D
, --dump
-f figure_format
,
--fig-format=figure_format
fig
,
eps
. Used when not deduced from figure file
extension. See also
the section called “
Converting on the fly
”.
-F input_format
,
--input-format=input_format
sgml
,
xml
(default).
-i texinputs
,
--texinputs texinputs
TEXINPUTS
-I figure_path
,
--fig-path=figure_path
-l bst_path
,
--bst-path=bst_path
-L bib_path
,
--bib-path=bib_path
-m xslt
,
--xslt=xslt
-o output
, --output=output
-O
option is applied instead.
-O output_dir
, --output-dir=output_dir
-o
is
taken into account.
-p xsl_user
,
--xsl-user=xsl_user
-P param
=value
,
--param=param
=value
-r script
,
--texpost=script
-s latex_style
,
--texstyle=latex_style
-t format
, --type=format
tex
,
dvi
, ps
,
pdf
(default).
--dvi
-tdvi
.--pdf
-tpdf
.--ps
-tps
.
-T style
, --style=style
db2latex
,
simple
, native
(default). See the section called “Output Formatting Style”.
-v
, --version
-V
, --verbose
-x xslt_options
,
--xslt-opts=xslt_options
-X
, --no-external
textdata
or imagedata
, but it can be disabled if the document
does not contain such callouts. Disabling this support can improve the
processing performance for big documents.
$HOME/.dblatex/
/etc/dblatex/
The predefined output styles are located in the installed package directory.
DBLATEX_CONFIG_FILES
To produce myfile.pdf
from
myfile.xml
:
dblatex myfile.xml
To set some XSL parameters from the command line:
dblatex -P latex.babel.language=de myfile.xml
To use the db2latex output style:
dblatex -T db2latex myfile.xml
To apply your own latex style:
dblatex -s mystyle myfile.xml dblatex -s /path/to/mystyle.sty myfile.xml
To use dblatex and profiling:
xsltproc --param profile.attribute "'output'" \ --param profile.value "'pdf'" /path/to/profiling/profile.xsl \ myfile.xml | dblatex -o myfile.pdf -
To build a set of books:
dblatex -O /path/to/chunk/dir -Pset.book.num=all myfile.xml