jianzhongli / MathView

A library for displaying math formula in Android apps.
Apache License 2.0
1.01k stars 189 forks source link

"Math Processing error" #71

Open ramanareddy463 opened 4 years ago

ramanareddy463 commented 4 years ago

Hi,

i am able to display latex formula using this library, but problem is, after sometime i can see "Math Processing Error" in place of formula. It is happening in Samsung Galaxy A9(2018) device only.

Thanks Ramana.

ikrimaamanda commented 2 years ago

I got this error too and do this :

after w.loadDataWithBaseURL(...) added this : w.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); if (!url.startsWith("http://bar")) return; w.loadUrl("javascript:document.getElementById('math').innerHTML='\\["

You can read more at this => https://stackoverflow.com/questions/17029780/display-good-looking-math-formula-in-android

Hope it will help anyone else :)