asciidoctor / asciidoctor-fopub

A portable DocBook-to-PDF build command that wraps DocBook XSL and Apache FOP
MIT License
113 stars 37 forks source link

admon and callout graphic paths are hardcoded #71

Open elburro1887 opened 8 years ago

elburro1887 commented 8 years ago

Im running fopub with my own custom docbook-xsl like this

fopub -t custom-docbook-xsl doc.xml

I want to specify my own path for the admon and callout graphics, which are set via admon.graphics.path in common.xsl in my custom xsl config.

However, it seems that these are hardcoded in the fopub script at line 137 and are not overridden by the XML value.

Is there a way I can enable this?

apnadkarni commented 7 years ago

You should be able to just append the additional param and have it override the hardcoded one in fopub. For example

fopub -t custom-docbook-xsl doc.xml -param admon.graphics.path /path/to/my/graphics/

Note the trailing / on the path. This works for me on Windows using latest HEAD. I'm not sure about Unix usage.

/Ashok