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

Version 3 anomaly in \begin{cases}...\end{cases} #2186

Closed
cebola2 opened this issue Sep 5, 2019 · 4 comments
Closed

Version 3 anomaly in \begin{cases}...\end{cases} #2186

cebola2 opened this issue Sep 5, 2019 · 4 comments
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3.0

Comments

@cebola2
Copy link

cebola2 commented Sep 5, 2019

A cases structure like
[ g(x,y)=\begin{cases}1,& \text{ se } x\in\mathbb{Q} \text{ ou } y\in\mathbb{Q}, \ 0, & \text{ caso contrário.}\end{cases}]
is typeset anomalously in MathJax v. 3.0.0.

I have adapted https://cdi2tp.math.tecnico.ulisboa.pt/ (version 2.7) to MathJax version 3.0.0 at https:logrus.math.tecnico.ulisboa.pt/ The example comes from

https://cdi2tp.math.tecnico.ulisboa.pt/texto/3
https://logrus.math.tecnico.ulisboa.pt/texto/3

Screenshots:
Version 2.7 under Firefox 69 Linux
Screenshot_2019-09-05 CDI II — TP — Página 3

Version 3.0.0 under Firefox 69 Linux
Screenshot_2019-09-05 CDI II — TP — Página 3(1)

Version 3.0.0 under Firefox 68.1 Android
Screenshot_20190905-201620

@zorkow
Copy link
Member

zorkow commented Sep 5, 2019

I can verify the problem. But only for Firefox/CHTML on Linux. Looks fine in Chrome as well as with SVG renderer on Firefox.
Same for Android: Looks good for Chrome/Kiwi/DuckDuckGo with either renderer, Firefox with SVG but not for Firefox with CHTML.

@cebola2
Copy link
Author

cebola2 commented Sep 5, 2019

I have also noticed in the same example (Firefox or Chrome on Linux) that mtextInheritFont: true seems to be ignored.

@cebola2
Copy link
Author

cebola2 commented Sep 6, 2019

On MS Edge on Windows (but not on Android) you get something alike what you get on Firefox (Linux or Windows).

@dpvc
Copy link
Member

dpvc commented Sep 22, 2019

OK, this turns out to have been due to an extra .5ex offset that is part of CSS vertical-align: middle that I didn't take into account. I've made a PR to compensate for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3.0
Projects
None yet
Development

No branches or pull requests

3 participants