Thanks Lex for clarifying. Putting those include files in the same directory is not really an option for me unfortunately. Those files that include are automatically generated by a script and reside in a folder without normal user permissions. Then many users are intended to write those include files, necessarily, on a separate folder. This project is a big collaborative project so I really do not have that option. I guess I will wait until the latex filter supports this, it can't be that hard I'd suppose...
ACS On Monday, June 25, 2012 2:00:07 AM UTC+1, Lex Trotman wrote: > > On 25 June 2012 06:11, <[email protected] <[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. > > > > > > > > -- > > 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 view this discussion on the web visit https://groups.google.com/d/msg/asciidoc/-/-6xtvbooYtsJ. 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.
