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

Make delimiters symmetric for \left and \right. #1084 #1509

Merged
merged 1 commit into from Jul 6, 2016

Conversation

Projects
None yet
3 participants
@dpvc
Copy link
Member

commented Jun 7, 2016

Mark delimters are symmetric when used with \left and \right. In particular, this makes the arrow delimiters be symmetric. Resolves issue #1084.

@pkra pkra added this to the MathJax v2.x.x milestone Jun 7, 2016

if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}));
mrow.Append(MML.mo(close).With({fence:true, stretchy:true, symmetric:true, texClass:MML.TEXCLASS.CLOSE}));

This comment has been minimized.

Copy link
@zorkow

zorkow Jun 8, 2016

Member

Just for clarification: Does that also mean that \left( \right] would be marked as symmetric?

This comment has been minimized.

Copy link
@dpvc

dpvc Jun 8, 2016

Author Member

Yes, but that should not be a problem because: (a) they default to symmetric in the operator dictionary already (it was only the arrows that didn't), and (b) in TeX \left and \right always produce symmetric delimiters. Note that symmetric will not appear in the toMathML() output (so not in the Show Math As... output) if the delimiter has symmetric as the default.

@zorkow

This comment has been minimized.

Copy link
Member

commented Jul 6, 2016

lgtm.

@dpvc dpvc merged commit c033170 into mathjax:develop Jul 6, 2016

@dpvc dpvc deleted the dpvc:issue1084 branch Jul 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.