asciidoctor / asciidoctor-mathematical

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

Newline break latexmath render #109

Open peter-jerry-ye opened 2 years ago

peter-jerry-ye commented 2 years ago

Hi, I'm not sure if this is relevant to asciidoctor-mathematical or asciidoctor-pdf.

What I'm experiencing is that if I have

latexmath:[
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6
\end{matrix}
]

instead of

latexmath:[\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6
\end{matrix}]

the image file generated is:

$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6
\end{matrix}$

instead of a valid image file. I'm not sure if this is expected? Thanks.

ProgramFan commented 2 years ago

Sorry, inline macro can not span multiple lines. You can use block macro for this. The example contains one example.

jstma commented 7 months ago

Where is the example for a multiple line block macro? I didn't see anything in the sample.adoc from this repository.

[stem]
++++
a = b + c \\
d = e + f
++++

There are no errors, but both equations come out on the same line and without any space between them.

ProgramFan commented 7 months ago

OK. I will investigate it.