LaTeX minus and plus signs in Pluto notebooks

Does anyone else have the problem of LaTeX operators (seems to be mostly + and -) not rendering properly in Pluto notebooks? Oftentimes they aren’t rendered at all and sometimes, with the + operator, it’s only partially visible. For example:

\frac{df}{dx} = \lim_{Δx \rightarrow 0} \frac{f(x + Δx) - f(x)}{Δx} = -2x

\nabla f(z) = [1 - exp(x_{2} - x_{1}), \ exp(x_{2} - x_{1})]

The first one renders just fine, but in the same notebook the second one appears as:


I’ve noticed Wikipedia seems to suffer from the same problem (have a look at the second version of the CDF - in my browser the - signs are missing) :face_with_raised_eyebrow:

Is this related to the browser or is there something that can be done with the code to ensure the +/- signs are properly rendered?

1 Like

I see the minus signs in the cdf, so maybe an issue with your browser?

Hmmm, just looked at it on my phone and I see them. I have a very large monitor, I wonder if it has something to do with the resolution…

Maybe. Just out of curiosity, do the lines appear if you zoom in on the equations?

Just want to mention that I have also seen this in the last months - in Jupyter, and in wikipedia. The problem seemed to occur especially when something was raised to minus something, the minus would not be visible ( but the space for it was there). I have a small and kinda crappy computerscreen, so it could be a resolution-thing as you suggested.

Ha! Yes - if I use the zoom function in my browser, they show up.

Nice. Or not, however you want to see it. ^^
I’ve definitely seen this but only on screens with comparatively low resolution, so it shouldn’t happen with your high-res screen, but who knows. You could try to play around with your systems font setting, try to force TrueType or ClearType or however it is called, that may fix it.
Idk if there is something in the browser settings, too, but you may check that of course. I think font hinting is the word for that.

I have the same issue on my QHD screen, so I don’t think the problem is limited to low resolutions.
But it’s definitely a resolution dependent rendering issue, probably more to do with MathJax than Pluto if the error also occurs on Wikipedia (although I never saw it there.) Does Wikipedia use MathJax?

There seem to be multiple renderers for MathJax. The SVG one seems to be the one that was the default for quite some time, and has the problem with symbols for me. Switching to CHTML solved it, though the figured are now a bit larger and bolder.