it seems there is no way to set the external command options in
a2x.conf. Basically I'd like a way to set DBLATEX_OPTS in
.asciidoc/a2x.conf but the only way to pass options is to use
--dblatex-opts directly to command line. Trying to fool it using
DBLATEX='dblatex --foo' doesn't work either.
Basically it'd be nice if all command line option could be set from a
config file too.
Good idea, I've added ASCIIDOC_OPTS, DBLATEX_OPTS, FOP_OPTS, XSLTPROC_OPTS
options to the conf file:
Hmhm, I thought I had reported this sooner, but it seems not.
DBLATEX_OPTS and --dblatex-opts work fine, but passing the style option
won't work because -p and -s are passed *before* and unconditionnaly. So
it's not possible to use a custom style with a custome stylesheet when
using a2x, afaict.
So the problem is not the the patch it's the baked in -s and -p dblatex options
for the asciidoc custom xsl and stylesheets, correct?
Does dblatex ignore multiple -p and -s options? If no then why don't subsequent
options work? Could you please post an example.
It might be an issue in dblatex yes. Basically:
a2x --dblatex-opts='--style mystyle' test.txt
won't use “mystyle” styles (you can check that by using
simple/db2latex/native styles, it won't change). But it's not only the
order, it seems that if -p/-s is present, -T/--style will be ignored.
(which is consistent, -p/-s override stuff in a style).