From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Captioning arbitrarily on HTML export? Date: Sun, 18 Sep 2016 20:13:29 -0700 Message-ID: <0ef3691d-327f-89e0-e4df-97664bd94400@dagertech.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------AB95145FA71FB8B8B4C562A8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blpIi-0000VG-MI for emacs-orgmode@gnu.org; Sun, 18 Sep 2016 23:31:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blpIf-0007yq-Ez for emacs-orgmode@gnu.org; Sun, 18 Sep 2016 23:31:24 -0400 Received: from dagertech.net ([64.183.98.170]:46810 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blpIf-0007y9-4t for emacs-orgmode@gnu.org; Sun, 18 Sep 2016 23:31:21 -0400 Received: from [192.168.133.106] (unknown [192.168.176.200]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.dagertech.net (Postfix) with ESMTPSA id 51678A01D3 for ; Sun, 18 Sep 2016 20:13:26 -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-orgmode@gnu.org This is a multi-part message in MIME format. --------------AB95145FA71FB8B8B4C562A8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I have an HTML block: #+Caption: Diagram Caption #+Label: fig:diacap #+begin_html
#+end_html and was wondering if there was a way to get an Org Export caption generated? According to the manual: =20 "12.9.10 Labels and captions in ODT export You can label and caption various category of objects=E2=80=94an in= line image, a table, a LATEX fragment or a Math formula=E2=80=94using #+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 --------------AB95145FA71FB8B8B4C562A8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,

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

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

=C2=A0=C2=A0=C2=A0 #+Caption: A pretty picture
=C2=A0=C2=A0=C2=A0 #+Label: fig:ppic
=C2=A0=C2=A0=C2=A0 [[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.=C2=A0 I could alw= ays 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


--------------AB95145FA71FB8B8B4C562A8--