Skip to content
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

Error when I want to convert a math problem to an expression #39

Open
musiolmarco opened this issue Aug 16, 2022 · 1 comment
Open

Error when I want to convert a math problem to an expression #39

musiolmarco opened this issue Aug 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@musiolmarco
Copy link

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:
Code_Pbf3y60e7d

Code_Kr4Wn0SeOP

Code_UY4ab2n0IQ

Code_uA9rspSxjP

Code_KjWr6FUvBp

Code_qdmSoacKuN

@musiolmarco musiolmarco added the bug Something isn't working label Aug 16, 2022
@github-actions
Copy link
Contributor

Hi 👋🏽 Thank you for opening your first issue with simpleclub/math_keyboard ❤

You can expect triage from us soon 🙂
In the meantime, you can try to search for similar issues in our issue database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant