review.js ppt数学公式无法显示

原因 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

解决方案:本地运行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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值