Closed ZJY0516 closed 2 years ago
试试这样
mathjax:
extension_options:
packages: {'[+]': ['physics']}
按照上面所说加载了physics
宏包后,默认加载的的那些宏包消失了。
$\LaTeX$代码如下:
$$
\dd{(x^2)}=2x \dd{x}
$$
$$
\bra{\psi} \quad \ket{\psi}
$$
$$
\laplacian{\Psi} \quad \curl{\vb{a}} \quad \div{\vb{a}} \quad \grad{\Psi}
$$
$$
\begin{vmatrix}
1 & 2\\
3 & 4\\
\end{vmatrix}
$$
$$
\verb|\sqrt|
$$
其中第一个和第三个为physics
宏包支持的功能,第二个为braket
和physics
宏包共有的功能,第四个为ams
宏包的功能,第五个为verb
宏包的功能。
在没有修改extension_options
时渲染结果如下
加载physics
宏包后只有一、二、三行可以正常渲染。
我的猜测:是否应该同时加载physics
和autoload
。
如果是这样,请问能否给出一个同时加载两个宏包的示例。
我修改了一下: https://github.com/next-theme/hexo-filter-mathjax/commit/c752ffacead3336c220a2b2d358713efeb0f5e09
您也照着这个 commit 改改 lib/filter.js
(也就是 Hexo 目录下的 node_modules/hexo-filter-mathjax/lib/filter.js
),然后这样设置
mathjax:
packages:
- physics
可以了!感谢!!Thanks♪(・ω・)ノ
我想加入
physics
宏包,但是我没有搞懂应该如何填写配置文件,请问能否给出一个示例。