emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Captioning arbitrarily on HTML export?


From: David A. Gershman
Subject: [O] Captioning arbitrarily on HTML export?
Date: Sun, 18 Sep 2016 20:13:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

Hello,

I have an HTML block:
   #+Caption: Diagram Caption
   #+Label: fig:diacap
   #+begin_html
     <canvas id="mybox" width="200" height="200"></canvas>
      <br>
       <script>
       function drawme() {
          // code to draw on canvas object
       }
       </script>
   #+end_html
and was wondering if there was a way to get an Org Export caption generated?  According to the manual:
   
    "12.9.10  Labels and captions in ODT export
      You can label and caption various category of objects—an inline image, a table, a LATEX fragment
      or a Math formula—using #+LABEL and #+CAPTION lines."

While this is for ODT export, I've seen example online with people putting captions on in-line images:

    #+Caption: A pretty picture
    #+Label: fig:ppic
    [[file:path/to/image.jpg]]

But as you can see, I'm using JS to draw on a canvas and was wondering if OrgExport could generate the captions.  I could always generate the images via some other language and generate the file to do the [[file:path/to/image.jpg]] method, but just thought I'd inquire first.

Thanks!

--dag



reply via email to

[Prev in Thread] Current Thread [Next in Thread]