LaTeX environments within displaymath get mangled
What is wrong?
Here's a split environment inside of displaymath:
\[
\operatorname{predict}(q) :=
\{
B\rightarrow\cdot\nu~(\tau) \mid
\begin{split}
A\rightarrow\alpha\cdot\beta~(\rho)
\Downarrow^+
B\rightarrow\cdot\nu~(\tau)
\\
\textrm{ for } A\rightarrow\alpha\cdot\beta~(\rho)\in q \}
\end{split}
\]
This becomes:
<p>
\[
\operatorname{predict}(q) :=
\{
B→⋅ν~(τ) \mid
</p>
<div>
\begin{split}
A\rightarrow\alpha\cdot\beta~(\rho)
\Downarrow^+
B\rightarrow\cdot\nu~(\tau)
\\
\textrm{ for } A\rightarrow\alpha\cdot\beta~(\rho)\in q \}
\end{split}
</div>
The <div>
confuses MathJax, and it renders wrong.
I see that org-re-reveal-latex-environment
doing this, but I can't see how to make it figure out it's inside displaymath.
What versions do you use?
- Emacs (
M-x emacs-version
): 29.1 - Org mode (
M-x org-version
): 9.6.6 - Org-re-reveal (
M-x org-re-reveal-version
): 3.25.1