Search code examples
angularjsmathjax

MathJax rendering of commas in numbers


When I include numbers with embedded commas (e.g. 3,456,789) in tex strings, They appear to have spaces after the commas (e.g. 3, 456, 789) when MathJax renders them. Is there some way to turn this off?


Solution

  • It's definitely just a work-around, but you could put braces around the commas to avoid unwanted spacing, as in 3{,}456{,}789. The reason is that tex interprets the comma as a list separator, which behaviour is inhibited if you group the comma by itself.