mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.2k stars 1.16k forks source link

Problems with rendering cfrac #2159

Closed apio1 closed 5 years ago

apio1 commented 5 years ago

I know that \cfrac can be used for continued fractions. However, it does not work in my case. I'm using Mathjax 2.7.1.

When trying $$\frac{a}b=q_0+\cfrac{1}{q_1+\cfrac{1}{q_2+\cfrac{1}{\ddots+\cfrac{1}{q_{n-2}+\cfrac{1}{q_{n-1}+\cfrac{1}{q_n}}}}}}$$, the following result will be displayed in my environment (Chrome 75.0.3770.100).

example 1

As a second choice, I use \frac instead, knowing that it produces not so pretty results:

example 1

I know that it should work like it is demonstrated in this tutorial. But the example from the tutorial does not work in my environment either.

Is this a configuration issue on my side?

By the way, the \cfrac example works with Firefox 67.0.4 correctly!

dpvc commented 5 years ago

Your \cfrac example works fine for me, so it may be that there is something in the CSS for your page that is interfering with the layout. Can you link to a page that shows the problem? A screen shot is not sufficient for us to investigate the problem. Also, it would be useful to know your MathJax configuration and the config file that you are using.

apio1 commented 5 years ago

Sorry, a reproducible example can be found here. Unfortunately, this seems to work fine with Firefox, Safari, Edge, and even with Chrome from another workstation (unfortunately, I do not have its version). So it seems not to be a CSS issue (at least for most browsers) but has something to do with my local installation of Chrome (version 75.0.3770.100).

dpvc commented 5 years ago

The page you link to works for me in Chrome 75.0.3770.100 on Mac OS X Mojave. So it does seem to be something with your setup. Can you clear your cache and restart Chrome to see if that helps? (Restarting is important, as clearing the cache doesn't seem to be enough in Chrome.)

apio1 commented 5 years ago

Thank you for your help. It seems to be a local problem. I have no clue what is going on, it did not work, even after clearing the cache.

popv commented 5 years ago

@apio1 For what it's worth, I've seen that behavior with the Accessibility, Collapsible Math option enabled. Seems to be resolved in 2.7.2+.