Hi,
I want to share with you one method to display math equations and formulas with a very good result without internet connection.I'm using it in one of my apps(in developing) and works fine with all the devices of probe(Galaxys(Mini2,S4),Nexus(7,5),Xperias,Tablets)(Since Android 2.3).
Step 1.-Add the File latexit.js to the Files Folder of the proyect
Step 2.-Create a WebView where you want to display the formula
Step 3.-Loads the webView with the next HTML code:
That's all, the script do all the work for us... where \int3x is the formula in latex and tags <span lang="latex"></span> put the formula in a pretty form
Notes:
1.-This java script of latex has a good support to make paragraphs, so it's a good idea(by experience) to show all the information in the same web view
2.-I haven't probe all the functions of the script, play with it to discover all
3.-To finish..Latex has a very good docs so it's very easy to learn it.(1 day or 2)
I attach a little example,it contains the script ,have fun...
I want to share with you one method to display math equations and formulas with a very good result without internet connection.I'm using it in one of my apps(in developing) and works fine with all the devices of probe(Galaxys(Mini2,S4),Nexus(7,5),Xperias,Tablets)(Since Android 2.3).
Step 1.-Add the File latexit.js to the Files Folder of the proyect
Step 2.-Create a WebView where you want to display the formula
Step 3.-Loads the webView with the next HTML code:
HTML:
"<html><head><script Type='text/javascript' src='file:///android_asset/latexit.js'></script></head><body><span lang="latex">\int3x</span></body></html>"
That's all, the script do all the work for us... where \int3x is the formula in latex and tags <span lang="latex"></span> put the formula in a pretty form
Notes:
1.-This java script of latex has a good support to make paragraphs, so it's a good idea(by experience) to show all the information in the same web view
2.-I haven't probe all the functions of the script, play with it to discover all
3.-To finish..Latex has a very good docs so it's very easy to learn it.(1 day or 2)
I attach a little example,it contains the script ,have fun...
Attachments
Last edited: