From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: image alt text for HTML export Date: Tue, 14 Sep 2010 09:45:06 +0200 Message-ID: <4C8F2802.2070305@christianmoe.com> References: <20100914070111.GA8823@dimension8.tehua.net> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33378 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvQBe-0007Zw-51 for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 03:44:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvQBc-0008EH-Ts for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 03:44:18 -0400 Received: from mars.hitrost.net ([91.185.193.39]:22299) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvQBc-0008AA-ON for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 03:44:16 -0400 Received: from lk.92.63.17.213.dc.cable.static.lj-kabel.net ([92.63.17.213] helo=Celebrian.local) by mars.hitrost.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1OvQAz-0007n5-8x for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 09:43:37 +0200 In-Reply-To: <20100914070111.GA8823@dimension8.tehua.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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... > > 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: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