LaTeX wrong on several websites

  • Context: LaTeX 
  • Thread starter Thread starter Omega0
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on issues with LaTeX rendering on websites like physicsforums.com, particularly when using MathJax. Users report that certain LaTeX commands do not display correctly, leading to inconsistent font usage and incorrect symbol representation. The problem persists across multiple browsers, including Chrome and Edge, on Windows 10 and Android devices. Participants suggest checking the LaTeX Guide and ensuring that commands are properly formatted to be interpreted correctly.

PREREQUISITES
  • Understanding of LaTeX syntax and commands
  • Familiarity with MathJax for rendering mathematical content
  • Basic knowledge of web browser cache management
  • Experience with troubleshooting web-based text editors
NEXT STEPS
  • Review the MathJax documentation for supported LaTeX commands
  • Learn how to clear browser cache effectively on different devices
  • Explore the LaTeX Guide provided in physicsforums.com for formatting tips
  • Investigate common issues with LaTeX rendering in web forums and their solutions
USEFUL FOR

This discussion is beneficial for mathematicians, educators, and students who frequently use LaTeX for online communication and require accurate rendering of mathematical expressions in forums.

Omega0
Messages
215
Reaction score
52
I am pretty disappointed that several websites like physicsforums.com do partly not show correct LaTeX content. So please let me know if I am doing something wrong. My standard is Windows 10 with Chrome. Same problem for Edge. For so many years I hadn't a problem but now that appears.
 
Physics news on Phys.org
Omega0 said:
I am pretty disappointed that several websites like physicsforums.com do partly not show correct LaTeX content. So please let me know if I am doing something wrong. My standard is Windows 10 with Chrome. Same problem for Edge. For so many years I hadn't a problem but now that appears.
Firstly, we use MathJax. But this means only that we cannot use all LaTeX commands. Secondly, do you have an example of what does not work?
 
Omega0 said:
So please let me know if I am doing something wrong.

Have you checked the LaTeX Guide at the bottom left of the Edit window? Maybe you can see what the issue is by looking through that Guide?

1627599836516.png
 
fresh_42 said:
Firstly, we use MathJax. But this means only that we cannot use all LaTeX commands. Secondly, do you have an example of what does not work?
Sure, here the example for physicsforums.org:

latexbug2.jpg
latexbug2.jpg


As you can see it switches between different fonts and even messes up the information ##\pi/2## somehow... that is brutal, simply unusable.
I am not using "all LaTeX commands", just a few. This horrible result is the same for any of my computers, even for my Android tablet.
 
Omega0 said:
%%\pi/2%%
What are the % things?
 
berkeman said:
What are the % things?
sorry, ##\pi## inline LaTeX.
 
berkeman said:
What are the % things?
##\frac{1}{2}## let us see... $$\frac{2}{3}$$ next LaTeX test
 
Omega0 said:
Sure, here the example for physicsforums.org:

View attachment 286850View attachment 286851

As you can see it switches between different fonts and even messes up the information ##\pi/2## somehow... that is brutal, simply unusable.
I am not using "all LaTeX commands", just a few. This horrible result is the same for any of my computers, even for my Android tablet.
I meant a testable example. A screenshot isn't helpful.

I know that the preview function has some problems in case the post contains a quotation. Your screenshot looks as if the symbols have been inserted via the table of symbols and not as TeX commands. And I also know, that after an edit, the commands aren't interpreted again unless one updates the page.
 
  • Like
Likes   Reactions: Omega0
fresh_42 said:
I meant a testable example. A screenshot isn't helpful.

I know that the preview function has some problems in case the post contains a quotation. Your screenshot looks as if the symbols have been inserted via the table of symbols and not as TeX commands. And I also know, that after an edit, the commands aren't interpreted again unless one updates the page.
Here my link: https://www.physicsforums.com/threads/distribution-of-particles-given-a-function.1004530/

For me the LaTeX looks like in my screenshot. If it looks for you different, let me know. Actually I am playing with cleaning my browser cache but nothing seems to work so far. Test: ##0\leq\phi\leq\pi/2## etc. Test: $$\theta(a)=\frac{\phi}{\pi} \sin(a)$$

As if I would need to "reininstall my browser LaTeX"
 
  • #10
Omega0 said:
Here my link: https://www.physicsforums.com/threads/distribution-of-particles-given-a-function.1004530/

For me the LaTeX looks like in my screenshot. If it looks for you different, let me know. Actually I am playing with cleaning my browser cache but nothing seems to work so far. Test: ##0\leq\phi\leq\pi/2## etc. Test: $$\theta(a)=\frac{\phi}{\pi} \sin(a)$$

As if I would need to "reininstall my browser LaTeX"
I looked at it with my "edit" power to check the source and all those symbols haven't had LaTeX tags, hence it cannot be interpreted as LaTeX.
 
  • Like
Likes   Reactions: Vanadium 50
  • #11
fresh_42 said:
I looked at it with my "edit" power to check the source and all those symbols haven't had LaTeX tags, hence it cannot be interpreted as LaTeX.
You can use the "Reply" link to also see the source characters. They look okay to me I think...

1627603660603.png
 

Attachments

  • 1627603627429.png
    1627603627429.png
    7.2 KB · Views: 189
  • #12
fresh_42 said:
I looked at it with my "edit" power to check the source and all those symbols haven't had LaTeX tags, hence it cannot be interpreted as LaTeX.
Have you any idea how it comes that my LaTex input isn't interpreted as LaTeX? I mean it is not my fault or is it?
 
  • #13
berkeman said:
You can use the "Reply" link to also see the source characters. They look okay to me I think...
Edit is far better! I can cancel "edit" but I cannot cancel "reply". And if I look for too long, it is in that damn cache and shows up again when I expect it the least.
 
  • #14
fresh_42 said:
Edit is far better! I can cancel "edit" but I cannot cancel "reply". And if I look for too long, it is in that damn cache and shows up again when I expect it the least.
Excellent point.
 
  • #15
Omega0 said:
Have you any idea how it comes that my LaTex input isn't interpreted as LaTeX? I mean it is not my fault or is it?
It looks as if it was your fault because it was just 0≤Θ≤2π. I used the table of symbols in this case, instead of ##0\leq \theta \leq 2\pi##

P.S.: This can happen if the text is copied from another text by Ctrl+C.
 
Last edited:
  • #16
##\frac{\pi}{2}##
fresh_42 said:
It looks as if it was your fault because it was just 0≤Θ≤2π. I used the table of symbols in this case, instead of ##0\leq \theta \leq 2\pi##

P.S.: This can happen if the text is copied from another text by Ctrl+C.
How did you do that to get the latex source to appear in your post instead of the latex render?
 
  • #17
anorlunda said:
##\frac{\pi}{2}##

How did you do that to get the latex source to appear in your post instead of the latex render?
I tried PLAIN tags, but that did not work, so I used the good old color code:
##\sqrt{2}##

Of course, I didn't type that. I marked one of the two sharps and colored it black with the color icon.
 
  • #18
fresh_42 said:
Of course, I didn't type that. I marked one of the two sharps and colored it black with the color icon.
Thanks! I would never have thought of something like that.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K