d^3p
w.loadDataWithBaseURL("http://bar", "<script type='text/x-mathjax-config'>" + "MathJax.Hub.Config({ "
+ "showMathMenu: true, " + "jax: ['input/MathML','output/HTML-CSS'], "
+ "extensions: ['toMathML.js'], " + "TeX: { extensions: ['AMSmath.js','AMSsymbols.js',"
+ "'noErrors.js','noUndefined.js'] } " + "});</script>" + "<script type='text/javascript' "
+ "src='file:///android_asset/MathJax/MathJax.js'" + "></script><span id='math'></span>", "text/html",
"utf-8", "");
setContentView(R.layout.activity_main);
WebView w = (WebView) findViewById(R.id.webView);
w.getSettings().setJavaScriptEnabled(true);
w.loadDataWithBaseURL("Loading of MathJax");
w.loadUrl("javascript:document.getElementById('math').innerHTML='" + mathMLData + "';");
if (v == findViewById(R.id.button2)) {
WebView w = (WebView) findViewById(R.id.webView);
w.loadUrl("javascript:document.getElementById('math').innerHTML='" + mathMLData1 + "';");
w.loadUrl("javascript:MathJax.Hub.Queue(['Typeset',MathJax.Hub]);");
}
WebView w = (WebView) findViewById(R.id.webView);
w.loadUrl("javascript:document.getElementById('math').innerHTML='" + mathMLData2 + "';");
w.loadUrl("javascript:MathJax.Hub.Queue(['Typeset',MathJax.Hub]);");
}
final Handler handler = new Handler();
Timer t = new Timer();
t.schedule(new TimerTask() {
@Override
public void run() {
handler.post(new Runnable() {
@Override
public void run() {
w.loadUrl("javascript:document.getElementById('math').innerHTML='" + MathMLData + "';");
w.loadUrl("javascript:MathJax.Hub.Queue(['Typeset',MathJax.Hub]);");
}
});
}
}, 800);
<script type="text/x-mathjax-config">MathJax.Hub.Config({extensions: ["tex2jax.js"],jax: ["input/TeX","output/HTML-CSS"],tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}});</script><script type="text/javascript" src="mathjax/MathJax.js"></script>
Bla bla here comes the math expression \\(\\frac{1}{2} \\rho = 0,125\\) bla bla my text goes on and on and on...
I want to point out that I used inlineMath expressions, so for example I have something like that.Bla bla here comes the math expression \\(\\frac{1}{2} \\rho = 0,125\\) bla bla my text goes on and on and on...
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.