On Thu, 04 Jun 2015 12:52:57 +0200, Lex Trotman <[email protected]> wrote:
On 4 June 2015 at 20:38, jvdh <[email protected]> wrote:
On Thursday, 4 June 2015 00:01:53 UTC+2, Dan Allen wrote:
When the file comes from stdin, you have to set the base path manually
using the docdir attribute. Otherwise, AsciiDoc doesn't know where the
root
is. You might have to play around with different attributes.
thanks for the reply. I was not aware of this different behaviour... I
tried
this (setting :docdir:) but simply setting it does not lead to correct
resolution of the relative path "subdir/image.png" only by using
"{docdir}/subdir/image.png" it works -- but this seems to indicate that
docdir is not treated special and I could use an arbitrary attribute to
get
this information into the path declaration, no?
I think its :imagesdir: that is used as the base for images, not
docdir, see http://asciidoc.org/userguide.html#X88
bingo! that's it. problem solved. thanks a lot!
joerg
Cheers
Lex
In Asciidoctor, you'd use the -B option for this purpose.
actually, asciidoctor handles the stdin case just fine without any
further
ado, i.e. "subdir/image.png" is correctly resolved irrespective of
whether
the input comes from stdin or a file. this is of course nice...
-Dan
On Wed, Jun 3, 2015 at 3:46 PM, j. van den hoff
<[email protected]>
wrote:
I see the following behaviour. a block macro such as
image::subdir/somefile.png[]
gets correctly resolved/included if input comes from a file. if,
instead,
the same input comes from standard in, `asciidoc' prepends the given
relative path by the install path of the asciidoc.
what am I missing?
thanks
joerg
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--
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/d/optout.
--
Dan Allen | http://google.com/profiles/dan.j.allen
--
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/d/optout.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--
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/d/optout.