LaTeX Code Distorsion in Forum Edit Mode

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
10 replies · 5K views
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:
[tex]n^2(\rho) = n^2_0\left(1-\alpha^2\rho^2)\right)[/tex] is shown as a "z" if previously I wrote [tex]z[/tex]. In fact, I don't know if this post will be shown well.

What's happening?

Thanks.
 
Physics news on Phys.org


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:)
 
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:
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: