LaTeX Why are MathJax images not displaying on my webpage?

Click For Summary
MathJax has been enabled on the site, but users are experiencing issues with LaTeX images not displaying correctly, leading to frustration over the appearance and functionality. Some users report that certain LaTeX environments, like align and tabular, are not rendering properly, and there are inconsistencies in how equations appear across different browsers. The transition from image-based LaTeX to MathJax is intended to reduce server load, but users are concerned about the visual quality and usability of the new format. Feedback indicates that while MathJax can handle more equations without server strain, it may introduce rendering issues that affect the user experience. The discussion reflects a need for further adjustments and testing to optimize MathJax's implementation.
  • #91
Greg Bernhardt said:
because the user didn't use itex

I wish I had posted only a day later.

BTW, how old do posts have to be in order to become un-editable by the poster?
 
Physics news on Phys.org
  • #92
Greg Bernhardt said:
We currently host 1,114,554 latex graphics.




I am having no difficulties seeing the equations, other than a brief loading time. I'm using Chrome on Windows 7.

What is the difference between tex and itex tags?
 
  • #93
i'm going to keep it up all night because the devs haven't gotten back to me yet
 
  • #94
Let me know when you get this fixed because I still can't do math. :cry:
 
  • #95
For me the greatest problem with this new implementation of latex is it only works when the javascript is enabled.
I usually let it disabled as it makes the pages load way faster (or rather less slowly... dial-up speed here :frown: ), and i would prefer keep this way.
 
  • #96
George Jones said:
I just printed the thread

https://www.physicsforums.com/showthread.php?t=491078&highlight=speed,

and every "+", "-", "=", and integral sign (and possible other stuff) is missing

Greg Bernhardt said:
printed to a physical piece of paper? do they display fine in the thread?
I notice that if you select equations in the post George linked to, the "+", "-", "=", and "/" symbols are not highlighted like the others. This would be a faster way to see the problem than printing out hardcopies, if you are trying to debug this issue.
 
  • #97
It looks like operators don't highlight in any post. It seems to work fine on the MathJax demo page, but not on PF.

Edit: it works in FF4 if you switch the renderer to HTML-CSS. (Right click on an equation, go to Settings > Math Renderer > HTML-CSS).

Math also looks better IMO.
 
  • #98
jhae2.718 said:
It looks like operators don't highlight in any post. It seems to work fine on the MathJax demo page, but not on PF.

Edit: it works in FF4 if you switch the renderer to HTML-CSS. (Right click on an equation, go to Settings > Math Renderer > HTML-CSS).

Math also looks better IMO.

hmm it should have always been HTML-CSS. Was your default set to MathML? FF has known MathML problems still.

On second thought it does appear at least FF is defaulting to NativeMML. I manually changed FF to use HTML-CSS and the equations look greatly improved.
 
Last edited:
  • #99
On PF at least Firefox defaulted to MathML rendering. Not sure if you can force HTML-CSS rendering from the server side.

Also, when using HTML rendering it seems to me that the 120% scaling is overkill. (FF seemed to render MathML unusually small, but for me at least HTML/CSS rendering is fine at 100%.)
 
Last edited:
  • #100
mishrashubham said:
BTW, how old do posts have to be in order to become un-editable by the poster?
I think the current limit is 11 hours and 40 minutes (700 minutes).
 
  • #101
Fredrik said:
I think the current limit is 11 hours and 40 minutes (700 minutes).

thanks
 
  • #102
If there aren't any serious problems I think I'll continue to leave the MathJax up for the time being.
 
  • #103
Greg Bernhardt said:
If there aren't any serious problems I think I'll continue to leave the MathJax up for the time being.
It looks like the worst problems have been solved, so I don't see any reason to go back to the old system. Thanks for all the work you've done on this.

The most serious problem right now is that we sometimes have to insert spaces in correct LaTeX code. For example, I tried this earlier today:
Code:
|\psi\rangle\langle\psi|=\frac{1}{2}\big(|\text{here}\rangle\langle\text{here}|+|\text{here}\rangle\langle\text{there}|+|\text{there}\rangle\langle\text{here}|+|\text{there}\rangle\langle\text{there}|\big)

The result:
|\psi\rangle\langle\psi|=\frac{1}{2}\big(|\text{here}\rangle\langle\text{here}|+|\text{here}\rangle\langle\text{there}|+|\text{there}\rangle\langle\text{here}|+|\text{there}\rangle\langle\text{there}|\big)

The first "here" is displayed as "he re". The second time \rangle is followed by \langle, the parser seems to miss the backslash. And then the \text before the last "here" seems to be read as \te. It can all be fixed by inserting spaces before the keywords that cause problems:

|\psi\rangle\langle\psi|=\frac{1}{2}\big(| \text{here}\rangle\langle\text{here}|+|\text{here}\rangle \langle\text{there}|+|\text{there}\rangle\langle \text{here}|+|\text{there}\rangle\langle\text{there}|\big)

But then the last "there" is displayed as "ther e", so I have to insert another space before the last \text.

|\psi\rangle\langle\psi|=\frac{1}{2}\big(| \text{here}\rangle\langle\text{here}|+|\text{here}\rangle \langle\text{there}|+|\text{there}\rangle\langle \text{here}|+|\text{there}\rangle\langle \text{there}|\big)

Isn't there something you can do to force Firefox to display math that looks as pretty as in Internet Explorer? Is there something we can do, other than switch to IE?
 
  • #104
Fredrik said:
Isn't there something you can do to force Firefox to display math as well as Internet Explorer? Is there something I can do, other than switch to IE?

I recently forced FF to use HTML instead of MathML. It looks much better to me in FF now. Maybe try clearing your cache.
 
  • #105
Fredrik said:
The first "here" is displayed as "he re".

As far as I can tell this is vBulletin problem (feature). It splits long text inserting spaces after every 50 characters:

01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

If you try to quote my post, there are no spaces between digits, they are added to the displayed text only. Unfortunately, MathJax works not with the original post text, but with whatever vBulletin displays.

This way forum formatting doesn't break, but sometimes it means other problems (like in this case).
 
  • #106
Greg Bernhardt said:
I recently forced FF to use HTML instead of MathML. It looks much better to me in FF now. Maybe try clearing your cache.
Many things have improved. Things don't get messed up when I put my mouse over math expressions. The extra space that was displayed next to the phi in \|\phi\|=\|x_0\| is gone. Etc. Math looks OK in Firefox, so I'm not saying that it absolutely must be fixed, but it still doesn't look as good as it does in IE. (I tried clearing the cache. No difference. But perhaps the change you're talking about explains the other improvements that I had already observed).

Borek said:
As far as I can tell this is vBulletin problem (feature). It splits long text inserting spaces after every 50 characters:
Ah, this make sense. Maybe I should be asking why we didn't have this problem before. I see that code tags override this behavior. I hope it's possible to get tex and itex tags to do the same.

Code:
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
 
  • #107
For me, the rendering of math is really slow now. I am using IE 8.
 
  • #108
This is just to inform that opera mini doesn't render math, all I see is the tex code.

However opera mobile does display the pages correctly although it takes a lot of time (took me almost a minute to load page with some 10 equations).
 
  • #109
mishrashubham said:
This is just to inform that opera mini doesn't render math, all I see is the tex code.

However opera mobile does display the pages correctly although it takes a lot of time (took me almost a minute to load page with some 10 equations).

the mobile skin is not hooked in yet
 
  • #110
DaleSpam said:
For me, the rendering of math is really slow now. I am using IE8.

It is very very slow. I would choose to read garbage threads about UFO than those with ten or so equations!
 
  • #111
samalkhaiat said:
DaleSpam said:
It is very very slow. I would choose to read garbage threads about UFO than those with ten or so equations!

Honestly I think speed is most likely affected by the age of the browser. Recent browser versions of Chrome (11,12), FF (4) and even IE (9) have made great advances in the Javascript engine. If you find the math is loading slowly I would urge you to update to a recent version.
 
  • #112
I've used firefox and IE, and for some reason latex isn't converting for me. I only see the tags and what you type.
 
  • #113
gb7nash said:
I've used firefox and IE, and for some reason latex isn't converting for me. I only see the tags and what you type.

do you have JS security settings that are maybe affecting it? any errors reported?
 
  • #114
Greg Bernhardt said:
do you have JS security settings that are maybe affecting it? any errors reported?

Not that I know of. Latex was working for me prior to this week and I didn't change any security settings. No errors either, I just literally see what the user is typing.
 
  • #115
gb7nash said:
Not that I know of. Latex was working for me prior to this week and I didn't change any security settings. No errors either, I just literally see what the user is typing.
This site has switched to different LaTeX software (that's what this thread is about), so what was working a week ago may not be relevant. Check if Javascript is enabled (in your browser settings). Are you using a proxy? (If you're accessing this site from home, the answer is almost always no). Have you tried to just refresh the page?

By the way, I also see exactly what I typed (including the tex tags) when I save a change to a post I made earlier. But it only happens in that particular situation, and a refresh always solves the problem.
 
  • #116
I noticed the latex images changed since a few days. I don't know if it's because I'm using linux (latex looks different in windows with my computer) but I really like the new look.
 
  • #117
Greg Bernhardt said:
the mobile skin is not hooked in yet

I am happy that PF even has a mobile version.
 
  • #118
Greg Bernhardt said:
Honestly I think speed is most likely affected by the age of the browser. Recent browser versions of Chrome (11,12), FF (4) and even IE (9) have made great advances in the Javascript engine. If you find the math is loading slowly I would urge you to update to a recent version.
I can't update. IE 8 is what is mandated by our IT department. They get mad if you install unapproved browsers.

Why did we need to change? I liked the speed and quality of the previous LaTeX engine.
 
  • #119
Looking at it, I have javascript enabled, but when it tries to render it gives a little message "Loading Web-Fonts Tex/Main/Regular" and then "Web-Fonts not available -- using image fonts instead". The attempt to load the webfonts takes a long time and then the image fonts also takes a long time. Any tips on enabling Web-Fonts?

EDIT: I found it, under security settings. It is still slow, but only annoyingly slow instead of painfully slow.

EDIT2: Actually, it can still be painfully slow. This page took 2 minutes 16 seconds to load: https://www.physicsforums.com/showthread.php?t=337236&page=23
 
Last edited:
  • #120
DaleSpam said:
Why did we need to change? I liked the speed and quality of the previous LaTeX engine.

1. PF hosts nearly 1.3 million latex images
2. Several thousand and counting are hotlinked across the web
3. The old image processor is hard on the server
4. The old image processor is unsupported (chroot is busy)
5. Broken in preview
6. Not available in PMs
7. Limited in blogs and is actually a spin off program

I have just made a tweak to help speed up IE8 viewing. Please update here again on your experience. Thanks!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 15 ·
Replies
15
Views
25K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
4K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 3 ·
Replies
3
Views
13K