On 25 June 2012 06:11, Stan Marée <[email protected]> wrote:
> Two basic asciidoc files (main1.asc and main2.asc) include a third
> (./extra/equation.asc) with a latex block equation.
> The only difference between main1.asc and main2.asc is that main1.asc starts
> with 'title\n-----\n'.
>
> asciidoc -v -a data-uri -b xhtml11 main1.asc: FAILS TO INCLUDE PIC
> CORRESPONDING TO EQUATION.
> asciidoc -v -a data-uri -b xhtml11 main2.asc: WORKS FINE.
>

Hi,

Failing is the "correct" behaviour, the latex filter doesn't properly
support being executed in the context of files included in
subdirectories, it always puts its output png file in the base
document dir, but the image block that tries to import the png expects
it to be in the subdirectory.

I suspect it works in the second case because it is in the preamble
which is processed in a slightly different context to normal sections,
this is just a side effect, not the expected behaviour.

I don't understand the latex toolchain, so I am not sure if the filter
can be changed to support subdirs properly, in the meantime you can
put the included files in the base directory and it should work ok.

Cheers
Lex



> why?
>
> thanks.
>
> SM
>
> --
> 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/-/6UGRI-bp7QcJ.
> 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.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
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.

Reply via email to