-
Notifications
You must be signed in to change notification settings - Fork 239
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
TeXmacs fixes #3627
TeXmacs fixes #3627
Conversation
Thanks to Massimiliano Gubinelli for the fix: http://forum.texmacs.cn/t/macaulay-does-not-advance/1942/12
We were only trying to format the first row of the matrix and not the entire thing.
I will apply the changes to the stable version and do testing. |
Also respect the interpreter depth when printing output variables.
In particular, this gives us a correct AfterPrint for matrices in TeXmath mode.
I do not know Macauly2, so I trust you :) the output seems correct. What about the matrix which includes symbolic entries and is in the TeXmacs' help for the M2 Plugin? (Help->Plugin->Macauly2). |
I gave a look at the web app. Since TeXmacs can read plugin output in HTML format, one could reuse the code written for the web app to produce HTML output to send to texmacs. Most of the features of the web app could be emulated in TeXmacs. |
The webapp mode outputs html, but the math is mostly i2 : 2:0matrix {{1, 2}, {3, 4}}
o2 = $\left(\!\begin{array}{cc}
1&2\\
3&4
\end{array}\!\right)$
o2 : <span><samp class="token class-name">Matrix</samp> ${\mathbb Z}^{2}\,\longleftarrow \,{\mathbb Z}^{2}$</span> Is that something that TeXmacs would support? Otherwise, I think the current MathML-based implementation mostly works. |
IIRC TeXmacs imports correctly Wikipedia pages with math (which should be MathJax). Alternatively one needs to switch to "latex" input in those pieces. TeXmacs supports "html", "latex" and some others. |
In my local tests M2 already works in TeXmacs. |
Great! I'll go ahead and merge this |
This includes @mgubi's proposed fix for #2534 and also fixes the reported matrix display issue. This was a small bug in
mathML(MatrixExpression)
where we were trying to just display the first row.Before
After
@mgubi, @bztd: Thoughts?