* exporting a math figure in both latex and html: missing caption and label
@ 2016-02-17 15:30 Alan Schmitt
0 siblings, 0 replies; only message in thread
From: Alan Schmitt @ 2016-02-17 15:30 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]
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 \,+\,
\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
<div class="figure">
<p>
\[
\omega^{(\omega^\omega\,+\, \omega^2 \times 8 \,+\, \omega)}+ \omega^\omega + \omega^4+ 6
\]
</p>
</div>
#+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
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-17 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 15:30 exporting a math figure in both latex and html: missing caption and label Alan Schmitt
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).