On 9/14/10 9:01 AM, Aidan Gauland wrote:
Is it possible to set the alt attribute of an image for HTML export?

Yes, like so:

: #+attr_html: alt="Picture of a foo"
: [[./foo.png]]

See the manual section on exporting to HTML.

Cheers,
CM


If I insert an inline image into an Org buffer like so...

[[./foo.png]]

...and export it to HTML, I get something like this...

<img src="foo.png" alt="foo.png" />

But I want the alt attribute to be "foo" (or something else), not the
filename.

I know this is an HTML-specific setting, but I still want the image be
exported to other formats, so inserting literal HTML (see below) isn't
really suitable.

#+HTML:<img src="foo.png" alt="foo" />

If there is no way to do this, should I file a feature request?

--Aidan



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.com


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to