emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ATTR_HTML for a clickable image, howto?
@ 2012-04-01 21:27 François Pinard
  2012-04-02  8:14 ` Bastien
  0 siblings, 1 reply; 28+ messages in thread
From: François Pinard @ 2012-04-01 21:27 UTC (permalink / raw)
  To: emacs-orgmode

Hello, Org mode friends.

I just got a slight difficulty for which some of you may have an
advice.  My source looks like this:

--8<---------------cut here---------------start------------->8---
#+ATTR_HTML: align="right"
[[file:2011-06-04-gazou-passeport.png][file:2011-06-04-gazou-passeport-petit.jpg]]
--8<---------------cut here---------------end--------------->8---

and once converted to HTML, yields (reformatted for legibility):

--8<---------------cut here---------------start------------->8---
<a href="2011-06-04-gazou-passeport.png"
   align="right">
  <img src="2011-06-04-gazou-passeport-petit.jpg"
       alt="2011-06-04-gazou-passeport-petit.jpg"/>
</a>
--8<---------------cut here---------------end--------------->8---

The ATTR_HTML details got applied to the <a> tag while I wanted them to
be on the <img> tag.  If I hand-edit the result so it is:

--8<---------------cut here---------------start------------->8---
<a href="2011-06-04-gazou-passeport.png">
  <img src="2011-06-04-gazou-passeport-petit.jpg"
       alt="2011-06-04-gazou-passeport-petit.jpg"
       align="right"/>
</a>
--8<---------------cut here---------------end--------------->8---

then I get the display I wanted.  Is there a way for having #+ATTR_HTML
to be applied to the inner tag instead of the outer one?

François

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2012-08-05  9:19 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-01 21:27 ATTR_HTML for a clickable image, howto? François Pinard
2012-04-02  8:14 ` Bastien
2012-04-02 10:34   ` Christian Moe
2012-04-02 15:06     ` Bastien
2012-04-02 21:30       ` Samuel Wales
2012-04-03  5:42         ` Bastien
2012-04-05 23:34           ` Samuel Wales
2012-04-05 15:02   ` François Pinard
2012-04-06  8:52     ` Christian Moe
2012-04-06  9:29       ` Christian Moe
2012-04-06 18:41       ` Samuel Wales
2012-04-06 18:45         ` Samuel Wales
2012-04-07 13:15         ` Christian Moe
2012-04-10 23:53           ` Samuel Wales
2012-04-11  8:11             ` Christian Moe
2012-05-12  0:43               ` Samuel Wales
2012-05-20  1:00               ` Macros [was: Re: ATTR_HTML for a clickable image, howto?] François Pinard
2012-05-20  8:02                 ` Nicolas Goaziou
2012-05-20  8:34                   ` Yagnesh Raghava Yakkala
2012-05-20 10:24                     ` Nicolas Goaziou
2012-05-22 23:23                 ` Bastien
2012-07-05 14:40                 ` Bastien
2012-07-05 15:09                   ` Nicolas Goaziou
2012-07-05 15:51                     ` Sebastien Vauban
2012-07-05 20:44                       ` Nicolas Goaziou
2012-08-05  9:19                     ` Bastien
2012-05-20  0:39           ` ATTR_HTML for a clickable image, howto? François Pinard
2012-04-06  9:02     ` Bastien

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