From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: apply attr_html to a whole figure? Date: Wed, 21 Sep 2016 21:11:34 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c05c610c33626053d0e57a9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmsYR-00038S-11 for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 21:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmsYP-0001xM-43 for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 21:11:57 -0400 Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:34403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmsYO-0001u5-St for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 21:11:57 -0400 Received: by mail-io0-x22f.google.com with SMTP id q92so71040033ioi.1 for ; Wed, 21 Sep 2016 18:11:35 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --94eb2c05c610c33626053d0e57a9 Content-Type: text/plain; charset=UTF-8 When exporting images with captions, ox-html currently creates a strucuture like this:

hlevel.png

Figure 1: "test"

(I've tried setting org-html-html5-fancy" to t, but for whatever reason this doesn't result in the useo f the
tag. I tried with emacs -q with no luck). I would like to be able to give an additional class to the enclosing
. Any idea how i might be able to do that? As far as I can see, org-html--wrap-image does not have access to the org link element and so can't query for attributes. I really appreciate any ideas! Thanks, Matt --94eb2c05c610c33626053d0e57a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When exportin= g images with captions, ox-html currently creates a strucuture like this:

<div class=3D"figure"&= gt;
<p><img src=3D"./images/hlevel.png" alt=3D"h= level.png">
</p>
<p><span class=3D"figure= -number">Figure 1:</span> "test"</p>
</= div>

(I've tried setting org-html-html5-fancy" to = t, but for whatever reason this doesn't result in the useo f the <fi= gure> tag. I tried with emacs -q with no luck).

I would lik= e to be able to give an additional class to the enclosing <div class=3D&= quot;figure">.=C2=A0 Any idea how i might be able to do that? As fa= r as I can see, org-html--wrap-image does not have access to the org link e= lement and so can't query for attributes.

I really apprec= iate any ideas! Thanks,
Matt

--94eb2c05c610c33626053d0e57a9--