LaTeX LaTeX Code Distorsion in Forum Edit Mode

AI Thread Summary
LaTeX code distortion occurs in forum edit mode due to the browser cache displaying outdated content. Users can resolve this by refreshing their browser to see the correct LaTeX output. For testing complex equations, a dedicated preview link is recommended, though it requires refreshing for mixed content. The current tags for displaying MathJax formulas are "tex" for block display and "itex" for inline display. Users have reported issues with specific browsers, particularly Opera, not rendering MathJax correctly, while Firefox works fine.
Bromio
Messages
59
Reaction score
0
Hi.

When I write my LaTeX code in this forum, it appears completely distorsionated when I click "Preview Changes" in edit mode. For example:
n^2(\rho) = n^2_0\left(1-\alpha^2\rho^2)\right) is shown as a "z" if previously I wrote z. In fact, I don't know if this post will be shown well.

What's happening?

Thanks.
 
Physics news on Phys.org
Welcome to PF!

Hi Bromio! Welcome to PF! :smile:

For some reason, in preview it shows whatever's in your cache.

Just click "Refresh" (on your browser menu), and your LateX will appear. :wink:
 


tiny-tim said:
Hi Bromio! Welcome to PF! :smile:

For some reason, in preview it shows whatever's in your cache.

Just click "Refresh" (on your browser menu), and your LateX will appear. :wink:

Thank you, tiny-tim.

I was going mad.
 
Prepare and test your LaTeX here:

https://www.physicsforums.com/mathjax/preview.html
 
Last edited by a moderator:
That's useful for long equations (it avoids waiting for everyone else's posts to show up!), but if you want to check a mixture of LaTeX and ordinary typing, you do need the Refresh method. :wink:

btw, it would be useful if that page had links to LaTeX instruction pages o:)
 
Good point.
 
Borek said:
Prepare and test your LaTeX here:

https://www.physicsforums.com/mathjax/preview.html

Now changed to https://www.physicsforums.com/mathjax/test/preview.html" :smile:
 
Last edited by a moderator:
What's the current tag for displaying mathjax formulas? tex ... /tex does not work for me anymore.
 
a-tom-ic said:
What's the current tag for displaying mathjax formulas? tex ... /tex does not work for me anymore.

Use tex and /tex when you want math to be displayed on a separate line, and use itex and /itex when you want math displayed within a line of text.
 
Last edited:
  • #10
Thank you for your answer. In this case i did everything correct but it does not display the formulas! But just shows the forum tag code.

EDIT:
I just tried firefox, and everything is fine. That means my browser of choice - Opera - does not display the mathjax formulas anymore. Ideas?
This however works in opera: https://www.physicsforums.com/mathjax/test/preview.html
 
Last edited by a moderator:

Similar threads

Replies
9
Views
2K
Replies
3
Views
3K
Replies
8
Views
3K
Replies
23
Views
4K
Replies
3
Views
2K
Replies
8
Views
2K
Replies
4
Views
3K
Replies
1
Views
2K
Back
Top