1

I want to give users the option to write down technical equations in my app. How can I do this?

I'm OK with having a simple edittext and forcing the user to write out actual LaTeX (or whatever) code, but if there's an easier way to let people input equations I'd love to know.

halfer
  • 19,824
  • 17
  • 99
  • 186
JDS
  • 16,388
  • 47
  • 161
  • 224

2 Answers2

0
  • For the output of math formulas you could use MathJax or JqMath. For those you will have extra WebView since those libs work with javaScript.
  • For the input you could make user follow their input syntax, or create your own wrapper around it. As advanced input feature you could implement image recognition for some math elements, like these guys did.
kiruwka
  • 9,250
  • 4
  • 30
  • 41
0

Have a look at projects around MathML (http://en.wikipedia.org/wiki/MathML)

WebKit supports MathML in recent versions, so if you can get that you can display your equations. However, since the question is about entering equations, maybe the best place to start looking is shorthand formats that can be converted to MathML. For example: http://en.wikipedia.org/wiki/ASCIIMathML

It may also be worth looking at WYSIWIG MathML editors. Most are pretty heavy, likely not suitable to be embedded into an app, but look around.

Alex I
  • 19,689
  • 9
  • 86
  • 158