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.

  • #331
Why is my latex code not processed?
\frac{i \hbar t}{m}[\itex]<br /> \frac{i\hbart}{m}[\itex]&lt;br /&gt; \frac{i\hbar t}{m}[\itex]
 
Physics news on Phys.org
  • #332
Juqon said:
Why is my latex code not processed?
Your closing itex tags are wrong. Use /, not \.
 
  • #333
Oh, of course, thank you! :)
 
  • #335
Juqon said:
As a start, you need to put some spaces in with that code. After 50 consecutive characters without a space, the processor will automatically insert a space.

By the way, you don't need the {} brackets when they surround a single character, i.e. t^{2} can be simply replaced with t^2. That will give you fewer brackets, and be easier to debug in case the numbers of {'s and }'s don't match.
 
  • #337
Juqon said:
What the other two guys said. As an alternative to multiple tex tags, use the align environment. That will make the \\ code work. Like this: \begin{align}
a &= b\\
&=c
\end{align} Tex tags are actually not necessary when the latex code starts with a begin statement, and ends with the corresponding end statement.

Also, please don't post equations with lines that are that long. They are seriously annoying in a browser window. So please insert a few extra \\ to make the lines shorter.
 
  • #338
Absolutely right, and the space broke the command \r ight.
And that with the new line separation was very motivating.
Very helpful, thanks!
 
  • #339
Hello!
I am writing because I do not know how to write the following formula in MathJax

I have read this entire thread and information about extracurricular parentheses, but in this case it's not that simple.

Did you have problems with habits relating to of the old system?

What about tables? It is not possible to create them?

\small\overbrace{a,...,a}^{\mbox{k a&#039;s}}, \underbrace{b,...,b}_{\mbox{l b&#039;s}}\hspace{10} \large\underbrace{\overbrace{a...a}^{\mbox{k a&#039;s}}, \overbrace{b...b}^{\mbox{l b&#039;s}}}_{\mbox{k+l elements}}

\small\overbrace{a,...,a}^{\mbox{k a&#039;s}}, \underbrace{b,...,b}_{\mbox{l b&#039;s}}\hspace{10pt} \large\underbrace{\overbrace{a...a}^{\mbox{k a&#039;s}}, \overbrace{b...b}^{\mbox{l b&#039;s}}}_{\mbox{k+l elements}}


\left[ \frac{X}{Y}\right ]

On mathtex that gives
be8xnl.png
 
Last edited:
  • #340
paul-g said:
I am writing because I do not know how to write the following formula in MathJax
You can't open with "tex" and close with "itex" or vice versa. You need to specify a unit for the hspace command. Note sure about the tables.

\small\overbrace{a,...,a}^{\mbox{k a&#039;s}}, \underbrace{b,...,b}_{\mbox{l b&#039;s}}\hspace{10pt} \large\underbrace{\overbrace{a...a}^{\mbox{k a&#039;s}}, \overbrace{b...b}^{\mbox{l b&#039;s}}}_{\mbox{k+l elements}}
\left[ \frac{X}{Y}\right ]
 
  • #341
The fact that I forgot to define the / hspace number of the unit, but it worked for MathTex.

Thank you anyway.

I will experiment a bit with the tables.
 

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