You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a comma as thousands separator in tex, one should wrap it in braces to avoid a spurious space after it (http://www.tex.ac.uk/FAQ-dec_comma.html). See below the difference between "$1{,}234{,}567" and "1,234,567$" with text.usetext=True.
Unfortunately, mathtext doesn't implement this detail (text.usetex=False).
(It doesn't look that bad on these zoomed images but I think the difference is more visible if you draw them e.g. using xlabel.)
I agree it should be fixed. Adding the {,} where using comma as a thousands separator seems to be the easy part. Making mathtext obey the braces may or may not be a large project.
Activity
mdboom commentedon Jan 5, 2016
I agree it should be fixed. Adding the
{,}where using comma as a thousands separator seems to be the easy part. Makingmathtextobey the braces may or may not be a large project.Cc: @zblz due to his recent interest in mathtext.
anntzer commentedon Jan 5, 2016
"easy" modulo localization :/ (a quick look suggests there's "," -> "{,}", "." -> "{.}" and " " -> ",")
no space after comma in brackets
zblz commentedon Jan 8, 2016
@anntzer, @mdboom: I gave it a shot in #5813. It is a quick fix, and spaces inside the brackets will still cause it to typeset a space after.
no space after comma in brackets