* Add attributes to figure in html5
@ 2017-09-09 15:25 L. Larrabee Strow
0 siblings, 0 replies; only message in thread
From: L. Larrabee Strow @ 2017-09-09 15:25 UTC (permalink / raw)
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:
<a data-fancybox="gallery"
data-caption="My caption"
href="https://site.com/desert_rtp.png">
<img width=700px src="https://site.com/desert_rtp.png">
</a>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-09 15:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-09 15:25 Add attributes to figure in html5 L. Larrabee Strow
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.