From: Christian Moe <mail@christianmoe.com>
To: emacs-orgmode@gnu.org
Subject: Re: image alt text for HTML export
Date: Tue, 14 Sep 2010 09:45:06 +0200 [thread overview]
Message-ID: <4C8F2802.2070305@christianmoe.com> (raw)
In-Reply-To: <20100914070111.GA8823@dimension8.tehua.net>
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: mail@christianmoe.com
Website: http://christianmoe.com
next prev parent reply other threads:[~2010-09-14 7:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 7:01 image alt text for HTML export Aidan Gauland
2010-09-14 7:45 ` Christian Moe [this message]
2010-09-14 8:58 ` Aidan Gauland
2010-09-20 8:42 ` Bastien
2010-09-14 7:48 ` Eric S Fraga
2011-01-04 16:26 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C8F2802.2070305@christianmoe.com \
--to=mail@christianmoe.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).