Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mathjax curly brackets don't show up (using jekyll)

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

like image 963
ted Avatar asked Dec 24 '16 11:12

ted


People also ask

How do you make curly brackets visible in latex?

To get curly braces in the output, you must use the escaped versions, "\{", and "\}".

What are the curly brackets {{ }} used for?

Curly brackets are commonly used in programming languages such as C, Java, Perl, and PHP to enclose groups of statements or blocks of code.

Why does Python not have curly brackets?

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.


1 Answers

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} 
like image 75
ted Avatar answered Oct 07 '22 00:10

ted