Skip to content
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 heights of successively larger multi-character surds. (mathjax/MathJax#2658) #651

Merged
merged 2 commits into from
Mar 29, 2021

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Mar 23, 2021

This PR adds the ability to make stretchy multi-character assemblies only use the full size of the extenders. In TeX, this is used by stretchy surds, for example, to make them grow at a standard rate. E.g.,

\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{1-x^2}}}}}}}}}}

now produces

now

with this PR (which is consistent with LaTeX), but used to produce

then

without it (which is not consistent with LaTeX).

Resolves issue mathjax/MathJax#2658.

@dpvc dpvc requested a review from zorkow March 23, 2021 14:27
@dpvc dpvc added this to the 3.1.3 milestone Mar 23, 2021
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor issue. O/w lgtm.

* @param {number} D The requested size of the delimiter
* @param {DelimiterData} C The data for the delimiter
* @return {number} The final size of the assembly
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just be an @override jsdoc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never fully understood when to use @override. You seem to be saying that if it is described in the interface, then the code that implements that interface should be marked @override. In that case, most of the jsdoc in this class (and in lost of other places) should be turned into @override. Perhaps another cleanup PR is in order?

@dpvc dpvc merged commit 8c569e8 into develop Mar 29, 2021
@dpvc dpvc deleted the issue2658 branch March 29, 2021 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants