Skip to content

mathtext kerning around comma #5799

@anntzer

Description

@anntzer

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.
tex
Unfortunately, mathtext doesn't implement this detail (text.usetex=False).
mathtext

(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.)

(Yes, this qualifies as a major nitpick.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions