ようやく jqMath が Android Studio で動作するようになりましたが、\text と \table が正しくフォーマットされていないことに気付きました! https://mathscribe.com/author/jqmath.html 上記の jqMath ホームページでは、\text と \table の使用例が示されています。
私のプロジェクトでは、この文字列を使用します。
$$\text"Molarity" = \text"moles of solute" / \text"liters of solution"$$
そして、jqMath のこのコード。
WebView webView = new WebView(context);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
String path="file:///android_asset/";
String js = "<html><head>"
+ "<link rel='stylesheet' href='"+path+"jqmath-0.4.3.css'>"
+ "<script src='"+path+"jquery-1.4.3.min.js'></script>"
+ "<script src='"+path+"jqmath-etc-0.4.6.min.js'></script>"
+ "</head><body>"
+ "<script>var s = '"+formulaText+"';jqMath.parseMath(s);document.write(s);</script></body>";
webView.loadDataWithBaseURL( "file:///android_asset/", js, "text/html", "utf-8", null );
そして、これが結果です。
ホームページで同じことを入力すると、これが表示されました。
助けてください - 数式の書式設定が機能している理由がわかりませんが、\text と \table およびすべての \ コマンドが正しく書式設定されていません!?!?