Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 463
softweave Avatar asked Jan 18 '26 03:01

softweave


1 Answers

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.

like image 95