Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline break latexmath render #109

Open
peter-jerry-ye opened this issue Oct 14, 2021 · 3 comments
Open

Newline break latexmath render #109

peter-jerry-ye opened this issue Oct 14, 2021 · 3 comments

Comments

@peter-jerry-ye
Copy link

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
Copy link
Contributor

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

@jstma
Copy link

jstma commented Jan 25, 2024

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
Copy link
Contributor

OK. I will investigate it.

@ProgramFan ProgramFan reopened this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants