liffiton / dokuwiki-plugin-mathjax

MathJax plugin for DokuWiki
https://www.dokuwiki.org/plugin:mathjax
12 stars 11 forks source link

Using ampersand cause error #40

Closed logongas closed 3 years ago

logongas commented 3 years ago

The formula with a ampersand:

$$ a &= 1 \\ b &=1 $$

cause a error.

Version Dokuwiki: Release 2020-07-29 "Hogfather" Plugin version: 2021-05-23

liffiton commented 3 years ago

I don't think that's valid TeX inside the $$ environment. You can use the AMSMath align environment, though:

\begin{align}
a &= 1 \\ b &=1
\end{align}

That should work.

logongas commented 3 years ago

Thank you very much, that's how it worked.