Hello and thank you first of all that you have put so much effort into the package and make it available to us.
Actually everything works very well, I only have a single problem. To help you understand the problem, maybe I should briefly describe my situation:
I am currently working on a math app and get a LaTeX string result, which I would like to edit with your package. So as soon as a MathField is created, I want to give it a MathFieldEditingController and change the value with mathFieldEditingController.updateValue('...'); with my LaTeX value when initializing the class. This all works very well, if I take the examples from your or the math_expressions package.
But if I want to take the LaTeX string from me and convert it to an expression I always get an error. I tried it with the TeXParser('...').parse();, as well as the Expression expression = parser.parse('...'); method. I also tried several times to transform the string somehow so that the expression can be created, however it did not work.
Of course it could be that I don't understand the method somehow, but can someone help me and tell me how to put the LaTeX string from me into your MathField?
Here you also have a few examples with the values and the exceptions that occurred, so that you understand even better what exactly I mean:
Hello and thank you first of all that you have put so much effort into the package and make it available to us.
Actually everything works very well, I only have a single problem. To help you understand the problem, maybe I should briefly describe my situation: I am currently working on a math app and get a LaTeX string result, which I would like to edit with your package. So as soon as a
MathField
is created, I want to give it aMathFieldEditingController
and change the value withmathFieldEditingController.updateValue('...');
with my LaTeX value when initializing the class. This all works very well, if I take the examples from your or themath_expressions
package.But if I want to take the LaTeX string from me and convert it to an
expression
I always get an error. I tried it with theTeXParser('...').parse();
, as well as theExpression expression = parser.parse('...');
method. I also tried several times to transform the string somehow so that the expression can be created, however it did not work.Of course it could be that I don't understand the method somehow, but can someone help me and tell me how to put the LaTeX string from me into your
MathField
?Here you also have a few examples with the values and the exceptions that occurred, so that you understand even better what exactly I mean: