emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "David A. Gershman" <dagershman@dagertech.net>
To: emacs-orgmode@gnu.org
Subject: Captioning arbitrarily on HTML export?
Date: Sun, 18 Sep 2016 20:13:29 -0700	[thread overview]
Message-ID: <0ef3691d-327f-89e0-e4df-97664bd94400@dagertech.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 1902 bytes --]

                 reply	other threads:[~2016-09-19  3:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0ef3691d-327f-89e0-e4df-97664bd94400@dagertech.net \
    --to=dagershman@dagertech.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).