MathJax不包括在Cordova中

时间:2016-02-29 10:50:11

标签: html cordova backbone.js

我正在使用cdn path for MathJax文件,但它没有用。 正如https://groups.google.com/forum/#!topic/mathjax-users/aDIAR8ZxneI所建议的那样,我在本地安装了MathJax文件并包含在index.html中 在网络中它仍然可以正常工作,但在cordova应用程序中不包括MathJax文件。

1 个答案:

答案 0 :(得分:0)

在cordova中,无需安装mathJax。以下列方式包括mathJax修复问题/错误。

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    // add your configuration, see following for example
    showProcessingMessages: false,
    tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
  });
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>

将文件包含为&#34; // cdn.mathjax.org/..."或&#34; https://cdn.mathjax.org/ ...&#34;不包括mathJax文件。