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:49:03 -0400 Message-ID: References: <87bmzg2rgr.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c05bfc6c72d81053d1ecacc Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnAva-0008N6-6a for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 16:49:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnAvY-0005Dc-TJ for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 16:49:06 -0400 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:35805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnAvY-0005DS-Nf for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 16:49:04 -0400 Received: by mail-it0-x22c.google.com with SMTP id r192so169057832ita.0 for ; Thu, 22 Sep 2016 13:49:04 -0700 (PDT) In-Reply-To: <87bmzg2rgr.fsf@ericabrahamsen.net> 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" Cc: Org Mode --94eb2c05bfc6c72d81053d1ecacc Content-Type: text/plain; charset=UTF-8 On Thu, Sep 22, 2016 at 5:50 AM, Eric Abrahamsen wrote: > Matt Price writes: > > > 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). > > It looks like `org-html--wrap-image' should be responsible for using a > proper "figure" element, maybe try edebugging it and see what it's > doing? This may be obvious, but the document has to be exported as html5 > before html5-fancy has any effect! > It should have been obvious, but it wasn't to me! setting org-html-doctype to "html5" fixed the problem. Thank you! Matt > > Eric > > > --94eb2c05bfc6c72d81053d1ecacc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Sep 22, 2016 at 5:50 AM, Eric Abrahamsen <= eric@ericabrah= amsen.net> wrote:
Matt Price <moptop99@gmai= l.com> writes:

> When exporting images with captions, ox-html currently creates a
> strucuture like this:
>
> <div class=3D"figure">
> <p><img src=3D"./images/hlevel.png" alt=3D"hle= vel.png">
> </p>
> <p><span class=3D"figure-number">Figure 1:</s= pan> "test"</p>
> </div>
>
> (I've tried setting org-html-html5-fancy" to t, but for whate= ver
> reason this doesn't result in the useo f the <figure> tag. I= tried
> with emacs -q with no luck).

It looks like `org-html--wrap-image' should be responsible for u= sing a
proper "figure" element, maybe try edebugging it and see what it&= #39;s
doing? This may be obvious, but the document has to be exported as html5 before html5-fancy has any effect!

It s= hould have been obvious, but it wasn't to me! setting org-html-doctype = to "html5" fixed the problem. Thank you!
Matt
<= /div>

Eric



--94eb2c05bfc6c72d81053d1ecacc--