LaTeX Troubleshooting a Weird LaTex Bug

AI Thread Summary
A user is experiencing a persistent LaTeX bug that causes incorrect equations to display in posts, particularly when editing signatures. The issue appears intermittently, with the same incorrect equation (\rho=\sqrt{4az_0}) showing up regardless of the input. Users have suggested that the problem may be linked to caching issues and the LaTeX feature's incompatibility with signatures, as it relies on post IDs. Some users have noted that refreshing the page can resolve the issue after posting, but not always in preview mode. This bug has been reported by multiple users over several weeks, indicating it is a broader issue rather than isolated incidents.
Math Jeans
Messages
347
Reaction score
0
I'm getting this weird LaTex bug that is really messing with my posts.

Sometimes when I use the tex tags, I get this weird problem that no matter what I put inside them, the post will always display the a certain equation inside of the tags.

For example:

I am trying to edit my signature (writing my name in greek letters), however, no matter what I put inside the tags (anything at all), the only thing that will come up as a result of my tex tags will be:

\rho=\sqrt{4az_0}

The problem is on/off (for example I don't seem to be having the problem with this particular post), however, when it ocurrs, it is very irritating.

Does anyone know what is happening?

Here is a screenshot of the problem. It shows the wrong result coming from what I typed in the edit box (the preview in the picture is directly off of what is written in the edit box and no changes were made).

texprob001.jpg
 
Last edited:
Physics news on Phys.org
You tried all the usual stuff - clearing cache, refreshing window a half dozen times, etc?
 
Gokul43201 said:
You tried all the usual stuff - clearing cache, refreshing window a half dozen times, etc?

Yeah. The equation that it keeps displaying is from a while ago too.
 
I don't believe the LaTeX feature is designed for signatures. Partially because the post id is used for part of the images name. Obviously there is no post id when making a signature.
 
Greg Bernhardt said:
I don't believe the LaTeX feature is designed for signatures. Partially because the post id is used for part of the images name. Obviously there is no post id when making a signature.

But I've had the same problem making regular posts as well.
 
Math Jeans said:
But I've had the same problem making regular posts as well.

ok I would send chroot a little PM
 
I have the same problem. It first appeared when I entered to Greg's blog. I almost got a heart attack when I saw something written in Latex : it was exactly what I wrote in a homework thread! I was thinking "what a coincidence!" but then I realized further on the page other formulas that I wrote and started to understand what was going on : it's like whatever there is written in Latex, it will always appear something you saw before, or maybe something you wrote in Latex before. It happens since more than a week (maybe even 2 or 3 weeks) at least.
 
I think you only get the wrong image when you mess up the LaTeX code (and apparently when you try to use LaTeX in signatures). Example:

Fredrik said:
I had already previewed the page and it looked fine except that I had written e(ipx) instead of e^{ipx}. So I changed it and previewed again. The old image was still there. Refresh didn't help. Then I noticed that I had actually written e^{ipx). So I replaced the ) with a } and previewed again. This time it looked the way I intended it to. No refresh needed.
 
I think you only get the wrong image when you mess up the LaTeX code (and apparently when you try to use LaTeX in signatures). Example:

Originally Posted by Fredrik View Post

I had already previewed the page and it looked fine except that I had written e(ipx) instead of e^{ipx}. So I changed it and previewed again. The old image was still there. Refresh didn't help. Then I noticed that I had actually written e^{ipx). So I replaced the ) with a } and previewed again. This time it looked the way I intended it to. No refresh needed.


You're wrong. It might appear when you enter a wrong Latex code but it's not the cause. I don't think Greg's blog contains only wrong typed Latex code.
Check out the first post on this thread, Math Jeans typed \sigma and what appeared was \sqrt{4az_0}. Both are well typed Latex code.
Hence that's a really strange bug. :rolleyes:
 
  • #10
Math Jeans, if you just need Greek characters you can copy-and-paste from here:
https://www.physicsforums.com/blog.php?b=347
FYI, some characters look much better in boldface Times New Roman font

Mατη Jεανσ vs. Mατη Jεανσ
 
Last edited by a moderator:
  • #11
FYI, this problem has been discussed previously:
https://www.physicsforums.com/showthread.php?t=273819
Redbelly98 said:
I just made a post with Latex and found that:
  • Refreshing in preview mode does not get rid of the old LaTex image
  • Refreshing after actually posting does get rid of the old image and displays the correct one.

At least this is the case in Firefox, the browser that I use.
Fredrik said:
I'm using Firefox too, and I don't have a problem with previews. Sometimes the wrong image shows up when I view what I just posted, but a refresh always takes care of that.
 
  • #12
I really do think all of these kinds of problems are cache issues in the browser, but I don't know why some people seem to have recurrent problems and many others never have any. I'll try to reproduce some of these bugs myself, at least.

- Warren
 

Similar threads

Replies
9
Views
2K
Replies
8
Views
2K
Replies
16
Views
4K
Replies
1
Views
2K
Replies
5
Views
3K
Replies
4
Views
4K
Replies
16
Views
3K
Back
Top