在手机上看到的带有 mathjax 的博客
Blog with mathjax seen on a cellphone
我在 my blogspot blog and it works well when seen in a computer, but formulas don't transform when seen on a cellphone. I found this other blogspot blog 中使用 mathjax,它的公式可以在手机上看到。为什么?如何让我的博客也能在手机上看到转换公式?
发生这种情况是因为 Mathjax 脚本(如下所示)未加载到移动模板中。
<script src='//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML,http://flengyel.github.io/mathjaxconfig.js,http://sonoisa.github.io/xyjax_ext/xypic.js' type='text/javascript'>
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [
['$', '$'],
["\(", "\)"]
],
displayMath: [
['$$', '$$'],
["\[", "\]"]
],
},
"HTML-CSS": {
availableFonts: ["TeX"]
}
});
</script>
要使其在移动模板上运行,您必须通过进入 主题 > 齿轮图标 > 选择启用自定义移动模板Custom 来自 Choose mobile theme 下拉菜单,参考下图 -
我在 my blogspot blog and it works well when seen in a computer, but formulas don't transform when seen on a cellphone. I found this other blogspot blog 中使用 mathjax,它的公式可以在手机上看到。为什么?如何让我的博客也能在手机上看到转换公式?
发生这种情况是因为 Mathjax 脚本(如下所示)未加载到移动模板中。
<script src='//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML,http://flengyel.github.io/mathjaxconfig.js,http://sonoisa.github.io/xyjax_ext/xypic.js' type='text/javascript'>
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [
['$', '$'],
["\(", "\)"]
],
displayMath: [
['$$', '$$'],
["\[", "\]"]
],
},
"HTML-CSS": {
availableFonts: ["TeX"]
}
});
</script>
要使其在移动模板上运行,您必须通过进入 主题 > 齿轮图标 > 选择启用自定义移动模板Custom 来自 Choose mobile theme 下拉菜单,参考下图 -