-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
In LaTeX, I have an expression [d,\delta]=0
that I've placed in an equation*
environment. Upon converting to HTML, all I see is "=0" (see screenshot below), even if we were to get rid of MathJax. When placed in the \[ \]
environment, however, the expression converts correctly.
The following is a working example:
\documentclass{article}
\begin{document}
\noindent With the arguments
\begin{verbatim}
pandoc test.tex -f latex -t html --mathjax -s -o out.html
\end{verbatim}
the code
\begin{verbatim}
\begin{equation*}
[d,\delta]=0.
\end{equation*}
\end{verbatim}
results in
\begin{equation*}
[d,\delta]=0.
\end{equation*}
but the code
\begin{verbatim}
\[ [d,\delta] = 0\]
\end{verbatim}
results in
\[ [d,\delta]=0.\]
\end{document}
Interestingly, throwing a character a[d,\delta]=0
in front of the opening square bracket in the equation*
environment solves the problem. Is this a bug or a feature that I should work around? Thanks!
Version: I'm running pandoc version 2.14.1 on macOS Big Sur 11.4 on a Macbook Air (M1 2020).