From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: exporting a math figure in both latex and html: missing caption and label Date: Wed, 17 Feb 2016 16:30:27 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW43w-0008N2-6l for emacs-orgmode@gnu.org; Wed, 17 Feb 2016 10:30:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW43s-0008WI-Vg for emacs-orgmode@gnu.org; Wed, 17 Feb 2016 10:30:44 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:1210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW43s-0008Vm-Nw for emacs-orgmode@gnu.org; Wed, 17 Feb 2016 10:30:40 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I'm trying to replicate the following latex code to orgmode so that it exports correctly in latex and orgmode: #+begin_src latex \begin{figure}[h] \[\scalebox{2}{\color{ blue}$\omega^{(\omega^\omega\,+\, \omega^2 \times 8 \,+\,=20 \omega) }+ \omega^\omega + \omega^4+ 6$}\] \caption{An ordinal in Cantor normal form \label{fig:cnf-example}} \end{figure} #+end_src I'm currently using this: #+begin_src org ,#+caption: An ordinal in Cantor normal form ,#+name: fig:cnf-example ,#+begin_figure \[ \omega^{(\omega^\omega\,+\, \omega^2 \times 8 \,+\, \omega)}+ \omega^\omega= + \omega^4+ 6 \] ,#+end_figure #+end_src (I'm not too worried about the scaling and color, I can deal with them using a custom environment in latex and a CSS in html). The html code that is generated forgets both the caption and the label: #+begin_src html

\[ \omega^{(\omega^\omega\,+\, \omega^2 \times 8 \,+\, \omega)}+ \omega^\omega= + \omega^4+ 6 \]

#+end_src I see that captions are correctly generated for images in html export. Is there something special I need to do for other kinds of figures? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82 (2016-01, Mauna Loa Obs.): 402.52 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWxJITAAoJEAQNCjtO0uXHYHkH/0DddSjFCAbJaBl46cYKqf8n sPc3a/hCB82v/g3AcD7rV1zviEloscoYGk5EEDH2GKcuCmzUv0Os1a9addvq1XiP OjdGFMnn3/rqRjRyKAq7hMOR2SKsQ6BDtXTPCFHwYt2+XZfTOmByTaQjvu1YLsUh ejHR/UWpSrUGYWfvq3ETdKjmzQnlQwtTmTP8DEsUPaileJJufC47nkteWyQ/zJA0 1raWN8JYj4ZXGT7vos8/jVbDJbCQOZ3cDMNP/pt6yP3Kr5rsf/sotKpPK8owdQ4n VSAl+WJGDCWx0a8UT/5u0W5Ai3bswzzUUG06K5GAi7ezMr+GPBPzz67ntv0jSjg= =qSHN -----END PGP SIGNATURE----- --=-=-=--