On 11 February 2014 17:46, Jens Getreu <[email protected]> wrote: > = :leveloffset: does not reset imagesdir > > I use the +:leveloffset:+ attribute to include independent subdocuments > which can be processed individually. > > > Please consider the following tree: > > ---- > ./master.asciidoc > ./project1/doc1.asciidoc > ./project1/image1.png > ./project2/doc2.asciidoc > ./project2/image2.png > ---- > > > > The master document includes the two subdocuments each in its own > folder: > > > .master.asciidoc > [source,asciidoc] > ---- > = Master > > :numbered: > :leveloffset: 1 > \include::project1/doc1.asciidoc[] > \include::project2/doc2.asciidoc[] > ---- > > > .project1/doc1.asciidoc > [source,asciidoc] > ---- > = Doc1 > > image::image1.png[] > ---- > > > > .project2/doc2.asciidoc > [source,asciidoc] > ---- > = Doc2 > > image::image2.png[] > ---- > > > Every project can be processed individually. But once included in the master > document the images are not found any more, because the imagedir path is > still relative to the position of the master document.
Hi Jens, The solution is to set imagedir in the master document before each include. = Master :numbered: :leveloffset: 1 :imagesdir: project1 include::project1/doc1.asciidoc[] :imagesdir: project2 include::project2/doc2.asciidoc[] Usage of leveloffset or include does not mean that the images are in subdirectories, another common approach is a single imagedir for the whole project, or some other specific layout. So there can be no automatic solution that addresses all use-cases. A human who understands the layout has to set the imagesdir appropriately. Cheers Lex > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/groups/opt_out.
