Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

mathjax

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

like image 742
Antaeus Avatar asked Mar 16 '16 08:03

Antaeus


People also ask

What is the character code for a dollar sign?

The dollar sign "$" has Unicode code point U+0024 (inherited from ASCII via Latin-1).

How do you put a dollar sign in LATEX?

dollar sign: \$ Curly brace: \{ or \} Ampersand: \&

How do you put a dollar sign in Jupyter notebook?

In markdown editors such as GitHub , or Jupyter notebook , with MathJax available, you can use double backslash and a dollar sign together to show any amount or range of amount in the dollar. Note that, in StackExchange or any StackOverflow related site, a single backslash is enough.


1 Answers

Enable processEscapes:

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

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

like image 151
Kev Avatar answered Oct 06 '22 00:10

Kev