From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: image alt text for HTML export
Date: Tue, 14 Sep 2010 08:48:19 +0100 [thread overview]
Message-ID: <87sk1cdav0.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <20100914070111.GA8823@dimension8.tehua.net>
[-- Attachment #1: Type: text/plain, Size: 979 bytes --]
On Tue, 14 Sep 2010 19:01:12 +1200, Aidan Gauland <aidalgol@no8wireless.co.nz> wrote:
>
> [1 <multipart/signed (7bit)>]
> [1.1 <text/plain; us-ascii (7bit)>]
> 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...
>
> <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?
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)
[-- Attachment #2: Type: text/plain, Size: 75 bytes --]
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2010-09-14 7:50 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
2010-09-14 8:58 ` Aidan Gauland
2010-09-20 8:42 ` Bastien
2010-09-14 7:48 ` Eric S Fraga [this message]
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=87sk1cdav0.wl%ucecesf@ucl.ac.uk \
--to=ucecesf@ucl.ac.uk \
--cc=e.fraga@ucl.ac.uk \
--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).