Am Freitag, 11. Januar 2013 12:42:42 UTC+1 schrieb Lex Trotman: > > On 11 January 2013 18:50, Stuart Rackham <[email protected] <javascript:>> > wrote: > To quote Jens: > > 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. > > So the same source tree cannot be used for both embedded and linked > output since images for the subdocuments need to be in different > places. (Ok, on *ix you can use links, but its kinda messy, and won't > work on Windows). > > Yes.
Or maybe just make the required document *source* locations the same > in both cases. I suggest always relative to the *including* document > so subdocuments can be processed independently as well as when > included. Good idea! In bigger projects it would be really useful if subdocuments could be processed individually. We could also plainly profit of :leveloffset: For this reason relative paths in a processed (sub)document should always start from the location of that (sub)document. This also harmonizes the different inconstant behaviours (with and without :data-uri: ). 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/-/ewWNac7EOWsJ. 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.
