Re: [Orgmode] image alt text for HTML export

2011-01-04 Thread Bastien
Aidan Gauland  writes:

> #+HTML: 
>
> If there is no way to do this, should I file a feature request?

I think you're looking for this:

  #+ATTR_HTML: alt="My image description"
  [[file:~/image.jpg][My Image]]

HTH,

-- 
 Bastien

___
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


Re: [Orgmode] image alt text for HTML export

2010-09-14 Thread Christian Moe

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...



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:

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


Re: [Orgmode] image alt text for HTML export

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 19:01:12 +1200, Aidan Gauland  
wrote:
> 
> [1  ]
> [1.1  ]
> Is it possible to set the alt attribute of an image for HTML export?
> If I insert an inline image into an Org buffer like so...
> 
> [[./foo.png]]
> 
> ...and export it to HTML, I get something like this...
> 
> 
> 
> 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: 
> 
> If there is no way to do this, should I file a feature request?

The following works for me:

: #+attr_html: width="50%" alt="This is a test image"
: [[file:image.png]]

(without the : obviously) and with

: Org-mode version 7.01trans (release_7.01h.501.gc19a0)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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


Re: [Orgmode] image alt text for HTML export

2010-09-20 Thread Bastien
Christian Moe  writes:

>> 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.

I added a FAQ about this in org-faq.org.

Thanks,

-- 
 Bastien

___
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