From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: apply attr_html to a whole figure? Date: Thu, 22 Sep 2016 16:46:25 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113f241c5864b4053d1ec134 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnAt3-0006IK-0H for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 16:46:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnAt0-0004Uo-Cu for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 16:46:27 -0400 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:35772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnAt0-0004Uk-82 for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 16:46:26 -0400 Received: by mail-io0-x231.google.com with SMTP id m186so98404438ioa.2 for ; Thu, 22 Sep 2016 13:46:26 -0700 (PDT) In-Reply-To: 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: Christian Moe Cc: Org Mode --001a113f241c5864b4053d1ec134 Content-Type: text/plain; charset=UTF-8 On Thu, Sep 22, 2016 at 3:09 AM, Christian Moe wrote: > > I don't think Org syntax provides any way to do this at present, but > ignore the rest of this message if anyone knows better. > > Possible workarounds: > > 1. Wrap your figure in a #+BEGIN_ADDITIONALCLASS...#+END_ADDITIONALCLASS > block, to wrap the div.figure in a div.additionalclass. Not exactly what > you wanted, and a pain in the neck if you have many such figures, but > gives you enough to work with in CSS. > This does it for me, and actually makes it easier to delimit css classes appropriately, so it's great, thank you. > > 2. Add javascript to move the extra class attribute from the img to > the containing div. > Yeah I thought about it but haven't gotten around to it. > > 3. Write an export filter. > THis feels like what I should learn to do, but, well, now that you've given me a workaround it's hard to get up the motivation to learn... Thank you!! --001a113f241c5864b4053d1ec134 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Sep 22, 2016 at 3:09 AM, Christian Moe <mail@christianmoe.= com> wrote:

I don't think Org syntax provides any way to do this at present, but ignore the rest of this message if anyone knows better.

Possible workarounds:

1. Wrap your figure in a #+BEGIN_ADDITIONALCLASS...#+END_ADDITIONALCLA= SS
block, to wrap the div.figure in a div.additionalclass. Not exactly what you wanted, and a pain in the neck if you have many such figures, but
gives you enough to work with in CSS.

T= his does it for me, and actually makes it easier to delimit css classes app= ropriately, so it's great, thank you.

2. Add javascript to move the extra class attribute from the img to
the containing div.

Yeah I thought abou= t it but haven't gotten around to it.=C2=A0

3. Write an export filter.

THis feels l= ike what I should learn to do, but, well, now that you've given me a wo= rkaround it's hard to get up the motivation to learn...

<= div>Thank you!!
=C2=A0

--001a113f241c5864b4053d1ec134--