djade007 / latext

A flutter package to efficiently display scientific LaTeX equations using the flutter_math library, without relying on WebView or JavaScript.
European Union Public License 1.2
12 stars 5 forks source link

Unable to display matrix in mathematics #15

Closed greatsam4sure closed 4 months ago

greatsam4sure commented 5 months ago

I am trying to use this package to display mathematics equations in my app but could not display a matrix of any kind either 2 by 2 or 3 by 3. I would appreciate any help

greatsam4sure commented 4 months ago

This code works for me

A = \left|\begin{matrix} 1 & 3 & 5\cr -4 & 5 & 0\cr 10 & -3 & -1   \end{matrix} \right|

The problem is \. use \cr instead The output of the above code in Latext 0.3.0 using flutter 3.16 and Dart 3.2 is output

greatsam4sure commented 4 months ago

you can also use

$A = \begin{bmatrix}3 & 4 & 5 \cr8 & 10&7 \cr 2 & 1&7 \end{bmatrix}$

the output is output2

greatsam4sure commented 4 months ago

$A = \begin{bmatrix}3 & 4 & 5 \cr8 & 10&7 \cr 2 & 1&7 \end{bmatrix}$ \\ $B = \begin{vmatrix}3 & 4 & 5 \cr8 & 10&7 \cr 2 & 1&7 \end{vmatrix}$

output output3