Hi,
I am trying to use the {indir} attribute as part as a path when including
images, e.g.
*image::{indir}/images/myimage.png[]*
The document is converted via a2x and dblatex backend on *Windows*.
LaTeX fails, because it chokes when discovering a path containing
backslashes like 'C:\docdir\asciidoc/images/myimage.png[]'.
As a workaround, I am currently using {docdir} instead of {indir} and
converting the backslashes in the docdir path into a LaTeX-friendly
format:
*:docdir: {eval:r"{docdir}".replace("\\","/")}*
This is done at the beginning of my toplevel document. Doing the same with
{indir} would mean that I would have to do it at the beginning of each of
my (included) documents, which is a bit painful.
Would it be possible for asciidoc to convert all backslashes in path names
into forward slashes by default? This obviously works for all operating
systems. Or my problem actually related to dblatex, which should perform
this conversion instead?
Greetings
Thomas
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/asciidoc/-/EAvTLt7nCHAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.