How do you type the dollar sign when you have mathjax installed?

橙三吉。 提交于 2019-11-30 20:29:27

To prevent MathJax from using the dollar sign as a delimiter, you can put it in a span, like so:

<span>$</span>

Alternatively, you can enable processEscapes and then you can use the backslash escape \$ for the dollar sign.

Enable processEscapes:

MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)']],
    processEscapes: true
  }
});

Then you can simply use \$ to get a plain $.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!