[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] latex equation and html export
From: |
Thomas S. Dye |
Subject: |
Re: [O] latex equation and html export |
Date: |
Mon, 30 Dec 2013 06:25:15 -1000 |
Aloha Joseph,
Joseph Vidal-Rosset <address@hidden> writes:
> With numbered equation, I do not succeed to get a code working both for
> LateX export AND html export .
>
> For example this code:
>
> #+BEGIN_LaTeX
> \begin{equation}
> \label{eq:2}
> A \to \neg B
> \end{equation}
> #+END_LaTeX
>
> works fine in org-mode : latex syntax is highleted and the export to pdf
> works. But it does not work with html export: the formula does not appear.
>
Your code is targeted to the LaTeX back-end and should be ignored by
other back-ends (as you've discovered).
Something like this might do what you want:
#+NAME: eq:2
#+BEGIN_EQUATION
A \to \neg B
#+END_EQUATION
See Section 11.8 of the manual, Special Blocks.
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com