asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.91k stars 299 forks source link

Tex math output problem in version 1.7.1 (Windows) #450

Closed 3rady closed 3 years ago

3rady commented 5 years ago

Tex math formulas do not output correctly as of version 1.7.1.

For instance, this example on the AsciidocFX home page

[math,file="tex-formula.png"]
--
\begin{align}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xyp
\end{align}
--

renders to this:

tex-formula

My environment is Windows 10 64-bit.

jliuold commented 4 years ago

I also met.

ggessner commented 4 years ago

I also encountered the problem! For some reason the math keyword is not accepted anymore. I assume commit cd8c64c4cca0e6f09fe9911334b4b575af4ea2f3 changed the behaviour. Simply change keyword math -> latexmath or mathml and it will work again;

[latexmath,file="tex-formula.png"]
--
\begin{align}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xyp
\end{align}
--
rahmanusta commented 3 years ago

Hi, could you please reinstall https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4 and check?

ggessner commented 3 years ago

Hey, I can confirm that with the newest version, the math identifier works as expected and returns the same result as with latexmath.

rahmanusta commented 3 years ago

Thanks for testing 👍 I'm closing the issue.