Weebly 和 Mathjax

问题描述

在这里尝试了四个左右的答案,以在 weebly(免费帐户)上显示 MathJax。有什么方法可以实际生成内联方程?

任何提示将不胜感激!

谢谢!

解决方法

是的,这是可能的。


MathJax

我从这里拿了例子:http://docs.mathjax.org/en/latest/basic/mathematics.html#basic-mathematics

enter image description here


步骤

  1. 转到您的 Weebly 主题部分,然后点击编辑 HTML/CSS

enter image description here

  1. 编辑 header.html 并将此代码段放入其中:

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>

enter image description here

  1. 使用“嵌入代码”内联添加方程。

enter image description here

  1. 瞧! (它仍可能在编辑器中呈现为 LaTex 代码,但在您发布页面时会显示为正确的方程式。)

enter image description here

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...