gpt4 book ai didi

html - 在手机上看到的带有 mathjax 的博客

转载 作者:太空宇宙 更新时间:2023-11-04 15:59:40 25 4
gpt4 key购买 nike

我在 my blogspot blog 中使用 mathjax在电脑上看效果很好,但在手机上看公式不会改变。我找到了这个 other blogspot blog可以在手机上看到它的公式。为什么?如何让我的博客也能在手机上看到转换公式?

最佳答案

发生这种情况是因为 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>

要使其适用于移动模板,您必须通过进入主题> 齿轮图标> 选择自定义 来启用自定义移动模板从 Choose mobile theme 下拉菜单中,引用下图 -

Enable Custom mobile template on Blogger

关于html - 在手机上看到的带有 mathjax 的博客,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42592013/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com