[已解决] Mathjax3.0 无法渲染arccot符号
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license. If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/841
解决方案:
在你当前需要渲染的网页HTML里面添加以下script:
<script>
MathJax = {
tex: {
macros: {
arcsec: '\\DeclareMathOperator{\\arcsec}{arcsec}\\arcsec',
arccsc: '\\DeclareMathOperator{\\arccsc}{arccsc}\\arccsc',
arccot: '\\DeclareMathOperator{\\arccot}{arccot}\\arccot'
}
}
}
</script>
即可。
原因:
之所以无法渲染是因为 TeX/LaTex默认是不包含这个的,MathJax 仅定义了 TeXBook 第 162 页上列出的 Plain TeX 中的函数:
\arccos \cos \csc \exp \ker \limsup \min \sinh
\arcsin \cosh \deg \gcd \lg \ln \Pr \sup
\arctan \cot \det \hom \lim \log \sec \tan
\arg \coth \dim \inf \liminf \max \sin \tanh
你可以学着以上的方式自行定义。
参考来源:
https://github.com/mathjax/MathJax/issues/2593
This article was last edited at 2021-08-19 11:01:51