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

点点圈 提交于 2019-12-19 03:15:32

问题


So in Jekyll and Markdown, I can't type $ or its HTML equivalent code, and not \$ nor $\$$. How should I type the dollar sign?


回答1:


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.




回答2:


Enable processEscapes:

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

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




回答3:


I used mathjax's dollar symbol in that paragraph. It works.



来源:https://stackoverflow.com/questions/36030033/how-do-you-type-the-dollar-sign-when-you-have-mathjax-installed

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