To make a numbered equation in Pandoc, I defer to using pure LaTeX:
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
In PDF form, it gives a nice numbered equation, however, this equation doesn't show up at all in the HTML output because the equation is within the \begin
environment and is ignored. I would like to keep the numbering in the PDF, but would like the equation to show up in the HTML, with or without the numbering.
Best Answer
An extension exists on github: pandoc-crossref
install it with
or in archlinux using ArchHaskell
you can use it by doing
and compiling with
for more information see the documentation
Alternatively, as described in https://github.com/jgm/pandoc/issues/1938#issuecomment-74011358 you can use
--mathjax
for HTML renderingif your equations are in
math.txt
create a file
header
and compile with