Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display text combined with mathematical formulas in android?

I'm developing an android app in which we're going to display some mathematics and physics question with multiple-choice answers. The text of the questions are ready on a Microsoft Office Word .docx format.

The text of the questions usually contains formulas and equations and we want to save them in a SQLite database and access to it on android app.

The real problem is how to manage the displaying part, since to the best of my knowledge, we should manage such complex text with html tags. There are actually about at least 2000 of these questions and we're after an optimized solutions for the problem.

and I'm a tough guy ! :) just give me some keywords and I'll go get it done.

So, please share your experiences and suggestions.

like image 542
Farhad Faghihi Avatar asked Nov 02 '22 00:11

Farhad Faghihi


1 Answers

An easy solution, mentioned in the comments, would be to use MathJAX.

An alternative, if you only have about 2000 formulas, would be to set up TeX on your local machine, generate the formulas, and convert into individual png images.

You could also use HTML+Unicode directly if the formulas are simple.

like image 106
Charles Avatar answered Nov 14 '22 08:11

Charles