Why are MathJax images not displaying on my webpage?

In summary: Images are more bandwidth intensive.In summary, the MathJax environment changed and there are no Latex images being displayed. Please post any problems. I'll leave it enabled for the next hour or so and switch back to images until we are 100% ready.
  • #71
jhae2.718 said:
While correlation [itex]\not =[/itex] causation, I stopped having those problems after I installed the fonts. It's possible that there is some problem with the way FF4 treats the fontdata.js or the fonts when loaded from the server.

Let me try with FF4 in my W7 VM (which doesn't have the STIX fonts) and get back to you.

hmm I don't have STIX locally loaded and FF4 on W7 looks fine to me.
 
Physics news on Phys.org
  • #72
Works fine for me in FF4.0.1 in Win 7 SP1 x86_64 under VirtualBox 4.0.8. No local STIX fonts, so it seems my guess was wrong.
 
  • #73
jhae2.718 said:
Full version.

Right, so I mean, that's exactly what I was reporting in the first place: that it doesn't work on the mobile version of the site.
 
  • #74
cepheid said:
Right, so I mean, that's exactly what I was reporting in the first place: that it doesn't work on the mobile version of the site.

Sorry, didn't catch that.
 
  • #75
cepheid said:
Right, so I mean, that's exactly what I was reporting in the first place: that it doesn't work on the mobile version of the site.

I haven't added the code to the mobile skin.
 
  • #76
Greg Bernhardt said:
I haven't added the code to the mobile skin.

Got it, thanks.
 
  • #77
Greg Bernhardt said:
I'm using Chrome 12 and all the math on that page appears to render fine. I'll test with FF 4.0.1

Greg Bernhardt said:
hmm using Win7 FF 4.0.1 fred's post looks fine except for the one equation he mentioned
Maybe I didn't make it clear enough that everything looks fine until I move my mouse pointer over a math expression.
 
  • #79
Fredrik said:
Maybe I didn't make it clear enough that everything looks fine until I move my mouse pointer over a math expression.

Yes I see what you are saying now. It seems the equation disappears, depending on your zoom trigger, on anything above Theorem 2 in your post. I will send this to the devs and see what they say. thanks!
 
  • #81
By the way, the math looks much better in IE than in FF. I'd say that in IE, it looks the way I want it to look, while in FF it's too small, and there are weird spaces inserted in simple expressions like [itex]\|\phi\|=\|x_0\|[/itex].
 
  • #82
Greg Bernhardt said:
printed to a physical piece of paper?

Yes.
Greg Bernhardt said:
do they display fine in the thread?

Yes.

I used printer at work. When I get home, I will try printing on my home printer.
 
  • #83
Fredrik said:
By the way, the math looks much better in IE than in FF. I'd say that in IE, it looks the way I want it to look, while in FF it's too small, and there are weird spaces inserted in simple expressions like [itex]\|\phi\|=\|x_0\|[/itex].

This is a well known problem because of the differences in how IE and FF handle web fonts.
 
  • #86
Greg Bernhardt said:
because the user didn't use itex

So you always need to use itex from now on? Before, just using tex didn't give you a new line...
 
  • #87
micromass said:
So you always need to use itex from now on? Before, just using tex didn't give you a new line...

hmmm then what was the function of itex when using images?
 
  • #88
micromass said:
So you always need to use itex from now on? Before, just using tex didn't give you a new line...

I think in MathJax [itex] behaves more closely like $...$ and [tex] like \begin{equation}...\end{equation} than they did in imgtex.
 
  • #89
Greg Bernhardt said:
hmmm then what was the function of itex when using images?

Well itex created images with a symbol size that was closer to the plain text characters (for the default font size). It also didn't mess up the line spacing nearly as much as inline images generated using tex tags did. On the downside, I always found itex equations kind of small to read.

Edit: also, the inline tex images were never in the right vertical position wrt the rest of the line. They were too high. The itex ones were aligned properly.
 
Last edited:
  • #90
Sometimes it was necessary to use tex instead of itex even for inline text, because itex cut off the top of the taller symbols, like [itex]\vec A[/itex]. So I suspect that a lot of posts will look weird if tex tags start new lines now. I'm not sure how much effort I'd put into solving that problem though. Maybe we will just have to accept that old posts will look ugly.
 
  • #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?
 
  • #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:
[tex]|\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)[/tex]

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:

[tex]|\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)[/tex]

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

[tex]|\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)[/tex]

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).
 

Similar threads

Replies
3
Views
4K
Replies
15
Views
25K
Replies
4
Views
3K
Replies
8
Views
2K
Replies
3
Views
935
Replies
4
Views
4K
Replies
3
Views
2K
Replies
3
Views
13K
Back
Top