From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: image alt text for HTML export Date: Tue, 14 Sep 2010 08:48:19 +0100 Message-ID: <87sk1cdav0.wl%ucecesf@ucl.ac.uk> References: <20100914070111.GA8823@dimension8.tehua.net> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Sep_14_08:48:19_2010-1" Return-path: Received: from [140.186.70.92] (port=48914 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvQHP-0001sl-Kr for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 03:50:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvQHL-0000Nv-MQ for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 03:50:14 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:49849) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvQHL-0000Nc-Hb for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 03:50:11 -0400 Received: from [85.210.134.173] (helo=esf.ucl.ac.uk) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1OvQFa-0001Ds-7s for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 08:48:22 +0100 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 --Multipart_Tue_Sep_14_08:48:19_2010-1 Content-Type: text/plain; charset=US-ASCII 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... > > 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? 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) --Multipart_Tue_Sep_14_08:48:19_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Tue_Sep_14_08:48:19_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Tue_Sep_14_08:48:19_2010-1--