simpleclub / math_keyboard

Math expression editing using an on-screen software keyboard or physical keyboard input in a typeset input field in Flutter.
https://simpleclub.github.io/math_keyboard
BSD 3-Clause "New" or "Revised" License
133 stars 49 forks source link

How can i convert 10{cm}^{2} with TeXParser??? #63

Open flexboni opened 8 months ago

flexboni commented 8 months ago

Bug description

I wanna covert 10{cm}^{2} to Latex. but When i use _mathController.updateValue(TeXParser('10{cm}^{2}').parse());, UI show like this

IMG_0004

To Reproduce

Steps to reproduce the behavior:

  1. Use '...'
  2. Run on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

github-actions[bot] commented 8 months ago

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.

flexboni commented 8 months ago
Latex: x^{2}+y
TeXParser onChange: (({x}^{2})+{y})
Keyboard input onChange: {x}^{2}+{y}

I test one data. But diffrent outputs. TeXParser output is wired...