-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
mathtext: Increase space after spaced symbols #4872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the contribution -- it's always nice to have more people getting their hands dirty in the mathtext code. Indeed, it seems that the test images are improved for the most part. One place where it actually gets worse, though, is in subscripts, such as in mathtext_cm_21.png. There the space after the plus has increased to where it is no longer centered. This got me looking at the root cause of the problem, and I think this may have been introduced by my recent changes to handling of advance width (i.e. the space after characters). When a "spaced symbol" is created, I think the fix here is to just remove the |
As I mentioned above, I suspected I did not fully understand why the extra 0.2 was needed. Thanks for the |
@mdboom Indeed, setting |
@tacaswell, @mdboom: This is now conflicting with master because of the baseline images modified in #4873. In addition, some of the baseline images will conflict between this PR and #4887, so we should decide to merge one first and modify the other accordingly so we don't have to redo the baseline images several times. |
I think #4887 (which now also needs a rebase) should go in first as it is fixing a more glaring issue. Another option is to combine them. |
I agree on either #4887 going first and I'll rebase this, or combining them, whatever you prefer. |
Actually, it might be better if you combine this into #4887: the changes here are very small and we avoid multiple versions of baseline images in master. |
No objections from me to just combine this into #4887. |
Combined into #4887, closing this PR. |
Currently, most spaced symbols (=,+,\times, etc) appear to have a bigger space in front of them, so it looks weird, specially in scientific notation of numbers (e.g.,$2\times10^4$ , which shows as '2 x10^4' rather than '2 x 10^4').
This PR adds 0.2 to the space afters these spaced symbols to solve this situation. IMO, the look of test images is improved, but I don't really understand why the previous setup (0.2 space on either side) resulted in asymmetrical spacing.