From mboxrd@z Thu Jan 1 00:00:00 1970 From: "L. Larrabee Strow" Subject: Add attributes to figure in html5 Date: Sat, 09 Sep 2017 11:25:29 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqhda-0007Rb-7g for emacs-orgmode@gnu.org; Sat, 09 Sep 2017 11:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqhdZ-0007TF-2B for emacs-orgmode@gnu.org; Sat, 09 Sep 2017 11:25:38 -0400 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:35567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqhdY-0007RN-O1 for emacs-orgmode@gnu.org; Sat, 09 Sep 2017 11:25:36 -0400 Received: by mail-qk0-x230.google.com with SMTP id r141so11894663qke.2 for ; Sat, 09 Sep 2017 08:25:34 -0700 (PDT) Received: from cress.local ([2600:1016:b02a:a8c8:3549:4e77:7f5f:5cad]) by smtp.gmail.com with ESMTPSA id m29sm2089385qtk.58.2017.09.09.08.25.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Sep 2017 08:25:31 -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: Emacs Org-Mode Help I am using (setq org-html-html5-fancy t org-html-doctype "html5") for html exporting, as I would like to use the figure environment for image exports. Is there any way to pass an attribute to the html? (I am afraid I might not be using all the correct terms here for html5.) Here is what I would like to get in the html export: Getting the width is no problem. My question is how to get the first two lines w/o using #+BEGIN_EXPORT HTML. If I could get this to work, then I can use the fancybox image routines with org and retain compabtitility with latex exporting. I tried #+ATTR_HTML: :data-fancybox gallery but that puts the attributes in the href, not before href. Thanks, Larrabee -- L. Larrabee Strow UMBC Physics Department Email: strow@umbc.edu Cell: 724-288-6933