asciidoctor / asciidoctor-mathematical

An extension for Asciidoctor that converts the content of STEM blocks and inline macros using Mathematical.
MIT License
49 stars 44 forks source link

Can't add tag to equations #57

Closed Nathan-Furnal closed 5 years ago

Nathan-Furnal commented 5 years ago

Hi, I'm having an issue with adding tags to equations :

So I'm adding, :stem: latexmath

then,

[stem]
++++
\begin{align*}

\dot{x} = \dfrac{dx}{dt} \\

\dot{y} = \dfrac{dy}{dt} \tag{1.a}

\end{align*}
++++

This works in mathjax but does not when I use asciidoctor-mathematical. How can I fix it ?

Thanks

ProgramFan commented 5 years ago

I suspect that the \tag command is not a valid latex macro.

Nathan-Furnal commented 5 years ago

@ProgramFan

It is part of amsmath but it should be working

ProgramFan commented 5 years ago

That is the problem. asciidoctor-mathemmatical uses mathematical, which in turn uses mtex2mml for latex support, and mtex2mml does not recognize the \tag macro and simply drops it. See https://github.com/gjtorikian/mtex2MML/blob/master/SUPPORTED.md#t for more details.

ProgramFan commented 5 years ago

I will close this issue since it shall be reported upstream to mtex2MML.