I use Mathjax on my static (jekyll-generated) site : Mathjax is loaded but curly brackets don't show up.
$ \{ 2*3 \} $ -> 2*3
$ \left{ 2*3 \right} -> \left{ 2*3 \right} (math style)
I'd like to have (for instance) a simple {2*3}
Cheers
To get curly braces in the output, you must use the escaped versions, "\{", and "\}".
Curly brackets are commonly used in programming languages such as C, Java, Perl, and PHP to enclose groups of statements or blocks of code.
Python does not mandate how you indent (two spaces or four, tabs or spaces - but not both), just that you do it consistently. Those that get used to the Python way of doing things tend to start seeing curly braces as unnecessary line noise that clutters code.
OK found out :
You have to escape the backslash because there seems to be 2 levels of interpretation : jekyll then mathjax. So you need to escape the backslash from Jekyll so it renders for Mathjax to escape the bracket :
$ \\{ 2*3 \\} $ -> {2*3}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With