emacs-orgmode
[Top][All Lists]
Advanced

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

[O] exporting a math figure in both latex and html: missing caption and


From: Alan Schmitt
Subject: [O] exporting a math figure in both latex and html: missing caption and label
Date: Wed, 17 Feb 2016 16:30:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

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: signature.asc
Description: PGP signature


reply via email to

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