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.
  • #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
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