Hi Lex,
Am Mittwoch, 10. Oktober 2012 00:49:06 UTC+2 schrieb Lex Trotman:
>
>
>
> On 10 October 2012 04:34, Jens Getreu <[email protected] <javascript:>>wrote:
>
>> I observed the following behavior:
>>
>> 1. Without :data-uri: directive: Paths in subdocuments to images are
>> relative to the location of the main document.
>> 2. With :data-uri: Paths in subdocuments to images are relative to
>> the location of the subdocument.
>>
>> I usually use the 2. because my subdocuments are independent projects
>> with separate resources. Unfortunately not all backends implement the 2.
>> correctly yet.
>> For example the html4 and odt backends do not therefore my projects do
>> not compile with these backends.
>>
>
> They should all follow type two, but there is a bug(s).
>
>
Is there a bug tracker to report?
> @Stuart, documentation says images are relative to the referring document.
> Data-uri correctly uses {indir}/{imagesdir}/{target} but non data-uri uses
> {imagesdir}/{target} which makes them relative to the *working* directory
> (if {imagesdir} is not absolute), not the document directory. It is
> therefore wrong if for example the document is an included document from
> another directory, or asciidoc wasn't run in the document directory.
>
> Documentation doesn't mention absolute being accepted, but I'll bet there
> are lots of documents that depend on that :( so it isn't just as simple as
> sticking an {indir={outdir}} on the front for non-datauri I don't think.
>
I'd prefer this solution because I never use absolute paths. Maybe a switch
could be added for those who need it?
Cheers
Jens
--
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/-/RIK7af-a7VsJ.
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.