I haven't seen any way to describe "clickable images" using
the .. image directive that would allow to create such
images. For now, only raw HTML can be used like this:
.. raw:: html
<a href="http://validator.w3.org/check/referer">
<img src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" />
</a>
which doesn't translate into LaTeX/PDF... but something like
the following would be more convenient (note the proposed
"link" attribute):
.. image:: http://www.w3.org/Icons/valid-xhtml10
:height: 31
:width: 88
:alt: Valid XHTML 1.0!
:link: http://validator.w3.org/check/referer
(This was first submitted, probably erroneously, as a tech
support issue.)
Logged In: YES
user_id=7733
> I haven't seen any way to describe "clickable images"
> using the .. image directive that would allow to create
> such images.
It can be done for inline images using substitution-links::
Use the |W3.org XML Validator|_ to check your XML.
.. |W3.org XML Validator| image::
http://www.w3.org/Icons/valid-xhtml10
:height: 31
:width: 88
:alt: Valid XHTML 1.0!
.. _W3.org XML Validator:
http://validator.w3.org/check/referer
It'd be a hack to use this for standalone images though.
> something like the following would be more convenient
> (note the proposed "link" attribute):
>
> .. image:: http://www.w3.org/Icons/valid-xhtml10
...
> :link: http://validator.w3.org/check/referer
I agree. In fact, it's already in the to-do list, awaiting
implementation:
<http://docutils.sf.net/spec/notes.html#images-image>. Want
to try? Here's how:
<http://docutils.sf.net/spec/howto/rst-directives.html>.
I'd be happy to make you a Docutils developer.
> (This was first submitted, probably erroneously, as a tech
> support issue.)
Not to worry; we're not stuck on formalities. There are so
few issues raised that it doesn't really matter where they
go.
Logged In: YES
user_id=7733
This was implemented a while back, partly in response to a
patch submission
(https://sf.net/tracker/?func=detail&atid=422032&aid=822390&group_id=38414).
A "target" option on the "image" directive has been added.