原因 net::ERR_CONNECTION_RESET
https://www.jsdelivr.com/无法正常访问了。但是数学js包是从这个网站获取的:
math: {
mathjax: 'https://cdn.jsdelivr.net/gh/mathjax/mathjax@2.7.8/MathJax.js',
config: 'TeX-AMS_HTML-full',
// pass other options into `MathJax.Hub.Config()`
TeX: { Macros: { RR: "{\\bf R}" } }
},
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight,RevealMath ]
});
解决方案:换IP
-
1:换IP
-
2:找找其他cdn网站
关于使用MathJax
解决方案:本地运行js
- 下载https://github.com/mathjax/MathJax/archive/refs/tags/2.7.8.zip
- 解压
- 在ppt中进行配置:
<script type="text/x-mathjax-config">
//
// Do NOT use this page as a template for your own pages. It includes
// code that is needed for testing your site's installation of MathJax,
// and that should not be used in normal web pages. Use sample.html as
// the example for how to call MathJax in your own pages.
//
MathJax.HTML.Cookie.Set("menu",{});
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
"HTML-CSS": {
availableFonts:[],
styles: {".MathJax_Preview": {visibility: "hidden"}}
}
});
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
var FONT = MathJax.OutputJax["HTML-CSS"].Font;
FONT.loadError = function (font) {
MathJax.Message.Set("Can't load web font TeX/"+font.directory,null,2000);
document.getElementById("noWebFont").style.display = "";
};
FONT.firefoxFontError = function (font) {
MathJax.Message.Set("Firefox can't load web fonts from a remote host",null,3000);
document.getElementById("ffWebFont").style.display = "";
};
});
(function (HUB) {
var MINVERSION = {
Firefox: 3.0,
Opera: 9.52,
MSIE: 6.0,
Chrome: 0.3,
Safari: 2.0,
Konqueror: 4.0,
Unknown: 10000.0 // always disable unknown browsers
};
if (!HUB.Browser.versionAtLeast(MINVERSION[HUB.Browser]||0.0)) {
HUB.Config({
jax: [], // don't load any Jax
extensions: [], // don't load any extensions
"v1.0-compatible": false // skip warning message due to no jax
});
setTimeout('document.getElementById("badBrowser").style.display = ""',0);
}
})(MathJax.Hub);
MathJax.Hub.Register.StartupHook("End",function () {
var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
if (HTMLCSS && HTMLCSS.imgFonts) {document.getElementById("imageFonts").style.display = ""}
});
</script>
<script type="text/javascript" src="./MathJax-2.7.8/MathJax-2.7.8/MathJax.js"></script>
或 者 直 接 在 文 中 使 用 其 他 数 学 包 \tiny 或者直接在文中使用其他数学包 或者直接在文中使用其他数学包
参考与更多
可以使用table做一个固定的标题格式,在div的位置处写主要内容
<section data-background-color="rgb(255, 255, 255)">
<table> <tr><td style="width: 100%;height: 30px; font-weight:700;"> 标题 </td> <td></td></tr> </table>
<div>写点什么</div>
</section>