asciidoctor-mathematical icon indicating copy to clipboard operation
asciidoctor-mathematical copied to clipboard

Newline break latexmath render

Open peter-jerry-ye opened this issue 4 years ago • 3 comments

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.

peter-jerry-ye avatar Oct 14 '21 10:10 peter-jerry-ye

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

ProgramFan avatar Oct 14 '21 14:10 ProgramFan

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.

jstma avatar Jan 25 '24 01:01 jstma

OK. I will investigate it.

ProgramFan avatar Jan 25 '24 03:01 ProgramFan