Why are MathJax images not displaying on my webpage?

Click For Summary

Discussion Overview

The discussion revolves around issues related to the implementation and functionality of MathJax for rendering LaTeX on a webpage. Participants explore the display of mathematical expressions, the transition from image-based rendering to MathJax, and the implications for users and server load. The scope includes technical troubleshooting, user experience, and the rendering of various LaTeX environments.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • Some participants report that MathJax is enabled but LaTeX images are not displaying correctly.
  • There is confusion over whether MathJax replaces nicely formatted LaTeX images and whether users must continue typing LaTeX code.
  • Some participants mention issues with specific LaTeX environments, such as align and tabular, not rendering as expected.
  • Concerns are raised about the visual quality of rendered equations compared to previous image-based rendering.
  • Participants discuss the potential benefits of MathJax in reducing server load due to lower bandwidth requirements for text compared to images.
  • There are mixed feelings about the new appearance of equations, with some expressing dissatisfaction and others suggesting that the appearance can be configured.
  • Some participants inquire about the availability of all math symbols and the ability to view LaTeX code directly.
  • One participant mentions that MathJax allows for an unlimited number of LaTeX equations, contrasting with previous limitations.

Areas of Agreement / Disagreement

Participants express a variety of opinions regarding the functionality and appearance of MathJax. There is no consensus on whether the changes are beneficial or detrimental, and multiple competing views remain regarding the effectiveness of MathJax compared to previous methods.

Contextual Notes

Some participants note that certain LaTeX environments and features may not be supported, and there are unresolved issues regarding the rendering of specific mathematical expressions. The discussion reflects a range of user experiences and expectations regarding the transition to MathJax.

Who May Find This Useful

This discussion may be useful for web developers, educators, and users who rely on LaTeX for mathematical expressions in online platforms, particularly those interested in the technical aspects of rendering and user experience with MathJax.

Messages
19,907
Reaction score
10,912
I have enabled MathJax on the site. 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.
 
Physics news on Phys.org
Greg Bernhardt said:
I have enabled MathJax on the site. 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.

So I wrote the LaTex code for y=x^2 and a dubious thing appeared (below). Do these essentially replace the nicely looking LaTex images and to make them we'd still have to type the LaTex code ?

y=x^2
 
dextercioby said:
So I wrote the LaTex code for y=x^2 and a dubious thing appeared (below). Do these essentially replace the nicely looking LaTex images and to make them we'd still have to type the LaTex code ?

y=x^2

Nothing in what you do changes :)
 
So, Greg, it's the image which changes and the lower space on the server occupied by the tinier pictures, right ?
 
dextercioby said:
So, Greg, it's the image which changes and the lower space on the server occupied by the tinier pictures, right ?

I have no idea what you are saying :) There are no images anymore.
 
The align environments seem buggy, plus some markup in my blog posts don't render. I'm trying to troubleshoot now.
 
jhae2.718 said:
The align environments seem buggy, plus some markup in my blog posts don't render. I'm trying to troubleshoot now.

The blog needs to be reworked, there were a few extra things we needed to do to make latex work on the blogs and I haven't touched that yet, so disregard the blogs for the moment.
 
Ok.

(> 4 characters)
 
Testing, testing...

-\frac{\hbar^2}{2m}\nabla^2 \Psi + V \Psi = i \hbar \frac{\partial \Psi}{\partial t}
 
  • #10
Test of align*:
<br /> \begin{align*}<br /> \nabla \cdot \mathbf{E} &amp;= \frac{\rho}{\varepsilon_0} \\<br /> \nabla \cdot \mathbf{B} &amp;= 0 \\<br /> \nabla \times \mathbf{E} &amp;= -\frac{\partial \mathbf{B}}{\partial t} \\<br /> \nabla \times \mathbf{B} &amp;= \mu_0\mathbf{j} + \mu_0\varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}<br /> \end{align*}<br />
 
Last edited:
  • #11
I have four (4) in this line of text. I "accidentally" typed (3) the first time but saw it in preview, changed it, and the preview worked properly!
 
  • #13
Can I draw a commutative diagram?
<br /> \begin{CD}<br /> A @&gt;&gt;&gt; B \\<br /> @VVV @VVV \\<br /> C @&gt;&gt;&gt; D <br /> \end{CD}<br />
Nope (didn't expect this environment to work anyways). But interestingly, I get a box containing the latex code. Hrm, how about as a matrix?
<br /> \left[<br /> \begin{matrix}<br /> A &amp;\to&amp; B \\<br /> \downarrow &amp; &amp; \downarrow \\<br /> C &amp;\to&amp; D<br /> \end{matrix}<br /> \right]<br />
Successful!
 
  • #14
Ooh, quick edit doesn't play nicely.

I just quick edited this post to put "\sqrt{3}" in the post, but the latex didn't render and I just saw the raw text. But if I reload the page, it will look right.

edit: Or, eI thought reloading would. Nothing's rendering now. :(

edit2: Ah, now reload's working.
 
  • #15
Greg, the align* environment should align the LaTeX by placement of &s.

Sometimes I see it rendered correctly, other times not. See attached image.
latexRenderings.png
 
  • #16
sorry I was doing some tweaking. turning off for now, i'll turn it back on later tonight and update here. thanks! images are back
 
  • #17
Why the sudden change?

Sorry to say I really hate the new look. The images are smaller, and arew just ugly compared to the old font. Please bring back imgtex =)
 
  • #18
What I checked worked OK.
 
  • #19
Nebuchadnezza said:
Why the sudden change?

Sorry to say I really hate the new look. The images are smaller, and arew just ugly compared to the old font. Please bring back imgtex =)

such problems can be configured
 
  • #20
Greg, during the test was the math rendered with cmr font? (Didn't look like it, but hard to tell...)
 
  • #22
So MathJax doesn't treat equations as images. Does this mea we can have an unlimited number of LaTeX equations i our blogs? Right now, you can have only 10, which is kind of anoying...
 
  • #23
I'd think so, Micro.
 
  • #24
MathJax is back up. Please resume testing and reporting back. thanks!
 
  • #25
Let's see if one of the truth tables from my programming blog will work here:
<br /> \centering <br /> \begin{tabular}{r | c | c |} <br /> &amp; \textbf{True} &amp; \textbf{False} \\ \hline <br /> \textbf{True} &amp; True &amp; False \\ \hline <br /> \textbf{False} &amp; False &amp; False \\ \hline <br /> \end{tabular}<br />

Edit: seems like the tabular environment is not supported...
Edit2: This is not a bug, tabular and centering are not supported in MathJax. So, no LaTeX tables. :(
 
  • #26
Please don't fix what's not broken!
 
  • #27
MathJax will help lower the load on the servers. Text requires less bandwidth than images.

The appearance is configurable and can be changed.
 
  • #28
flyingpig said:
Please don't fix what's not broken!

It is broken, unsupported and burdensome. We currently host 1,114,554 latex graphics.
 
  • #29
But it's so small!
 
  • #30
Again, the cosmetic aspects can be changed. Stop whining! It's just a test!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
5K
  • · 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
5K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
5K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 3 ·
Replies
3
Views
13K