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

Handle \text in \cases better #1482

Closed
dpvc opened this issue May 19, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@dpvc
Copy link
Member

commented May 19, 2016

As reported in this meta.math.SE post, the backwards-compatibility check used to detect when \text{} is already in the second column is not robust enough, and something like

$$d_{1}\left(x,y\right)=\cases{
  0&\text{if }x=y\cr
  1&\text{if }x\neq y}$$

causes the check to put the second column in math-mode when it shouldn't.

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jul 7, 2017

The issue1482 branch of my fork of MathJax includes a fix for this.

@dpvc dpvc removed their assignment Jul 7, 2017

dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Jul 14, 2017

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jul 14, 2017

==> In testsuite

LaTeXToMathML/issue1482.html

@dpvc dpvc added Test Available and removed Test Needed labels Jul 14, 2017

dpvc added a commit that referenced this issue Jul 21, 2017

Merge pull request #1793 from dpvc/issue1482
Better test for \text{} in \cases{}.  #1482
@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jul 21, 2017

==> Merged

@dpvc dpvc added Merged and removed Ready for Review labels Jul 21, 2017

@dpvc dpvc closed this Jul 21, 2017

@dpvc dpvc added Fixed v2.7 and removed Merged labels Jul 18, 2018

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.