-
Notifications
You must be signed in to change notification settings - Fork 214
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
Improve spacing between accents and their bases, and handle under- and overlines more like TeX. #619
Conversation
…d overlines more like TeX
PS, this PR replaces #611. |
That seems odd since underline-overline's PR #611 was closed. |
Oops, read this the wrong way around. Sorry for the noise. |
…oveIc instead and adjust widht after the fact). Also move useIC to common classes since it is inherited, and made the default true (fewer special cases to override).
…CSS size as well)
// Check if the base is a mi or mo that needs italic correction removed | ||
// | ||
if (('noIC' in core) && !(this.constructor as CommonScriptbaseClass).useIC) { | ||
if (this.baseIsChar && (this.isMathAccent || this.node.isKind('msubsup'))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This test isn't right, but is fixed in the mathaccent-ic branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Fix handling of italic correction for munderover and msubsup combinations.
This PR changes the character used for
\overline
and\underline
to be U+2015 (HORIZTONAL LINE) and makes them both haveaccent="true"
(only\overline
had that originally) so that the results for both are consistent both in spacing and thickness. It also adds detection of these accents so that the spacing between the line and the base as well as the horizontal placements will match TeX's algorithm, and it adds a bit more space between math accents and the base (since on screen they were getting a bit tight).This resolves issue mathjax/MathJax#2633.