Comments (2)
I found issues here while testing:
- Your latex string are missing "\" in-between matrix rows.
- Even MathJax cannot render it correctly. (see image below)
- The correct string should be
r"\left[\begin{matrix}1 & 0 & 0 & 0\\0 & 1 & 0 & 0\\0 & 0 & 1 & 0\\0 & 0 & 0 & 1\end{matrix}\right]"
latex2mathml
can correctly generate the corresponding MathML as seen below:
<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mrow><mo fence="true" form="prefix" stretchy="true">[</mo><mrow><mtable><mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd><mtd><mn>0</mn></mtd><mtd><mn>1</mn></mtd></mtr></mtable></mrow><mo fence="true" form="postfix" stretchy="true">]</mo></mrow></mrow></math>
Rendering
Trying to view it on MathJax viewer correctly renders it:
It is possible that you are missing the right styling for these:
<mo fence="true" form="prefix" stretchy="true">[</mo>
<mo fence="true" form="postfix" stretchy="true">]</mo>
from latex2mathml.
Thank you for your help.
But, the string is this r"\left[\begin{matrix}1 & 0 & 0 & 0\0 & 1 & 0 & 0\0 & 0 & 1 & 0\0 & 0 & 0 & 1\end{matrix}\right]", and this was created by SymPy. When I type it into textbox, it was somehow converted to \. And the string which I tested is r"\left[\begin{matrix}1 & 0 & 0 & 0\0 & 1 & 0 & 0\0 & 0 & 1 & 0\0 & 0 & 0 & 1\end{matrix}\right]".
The problem is I need a big "[", not just a "[".
Then I find the problem is Word, not latex2mathml or SymPy.
from latex2mathml.
Related Issues (20)
- \overline and \underline is not corrected HOT 4
- \overrightarrow and \overleftarrow is wrong HOT 1
- bmatrix/Bmatrix/vmatrix/Vmatrix/cases render short symbol HOT 10
- {split} is treatas invalid HOT 2
- shoud \frac \dfrac \cfrac be in different size? HOT 1
- \xleftarrow and \xrightarrow can't be recognizied HOT 2
- {smallmatrix} can not be recognized HOT 1
- Bug on \limits
- \overbrace and \underbrace are not converted correctly
- \rightharpoonup and \rightleftharpoons can't be recognized HOT 1
- \sideset is not translated correctly
- Implement \begin{align}
- \not mis-places the line HOT 4
- [suggestion] add space for \bmod and \pmod{m} HOT 1
- \frac without curly braces inconsistent with Mathjax HOT 2
- Issue with \{cases} HOT 3
- Prime ' combined with other sub/superscripts
- Add __version__ | pep 396 HOT 3
- `DoubleSuperscriptsError` on entering 3 tick marks `'''`
- Certain characters incorrectly encoded with ISO-8859-1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latex2mathml.