-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
LaTeX formula cannot wrap #4102
Comments
Hi @Silfra-glacier, I checked your LaTeX code with an online editor and got a very similar result like with NiceGUI. What caught my eye though is the following note:
So I assume your input isn't valid LaTeX. If in doubt, you should check the latex2mathml package, which NiceGUI uses behind the scenes. |
Thank you for your answer. I tried using: \begin{array}{llll}
aa \\
bb \\
cc \\
dd \\
\end{array} It can be rendered normally in the browser, but when using: from nicegui import ui
ui.markdown(r'''
$$
\begin{array}{llll}
Proj_{V_{1}}b&=\frac{(b,a_1)}{(a_1,a_1)}a_1\\
&=(a_1^Hb)(a_1^Ha_1)^{-1}a_1\\
&=a_1(a_1^Ha_1)^{-1}a_1^Hb\\
&\triangleq E_{1}b
\end{array}
$$
''', extras=['latex'])
ui.run() It seems that the position of the equal sign cannot be aligned, but the overall equation is displayed in the center on the right, but this can be rendered normally in the [LaTeX Editor](https://arachnoid.com/latex/): Browser display: Perhaps it's still a problem with LaTeX syntax, I will conduct a duplicate check. thank you. |
Description
When dealing with LaTeX mathematical formulas, it seems impossible to wrap the multi line formulas included in $$.
Problem reproduction:
The browser page displays:
Preview in the MD file editor as follows:
Can this problem be solved? Thanks.
The text was updated successfully, but these errors were encountered: