Troubleshooting a Weird LaTex Bug

Click For Summary

Discussion Overview

The discussion revolves around a recurring issue with LaTeX rendering on a forum, specifically related to incorrect equations appearing in posts and signatures. Participants explore potential causes, troubleshooting steps, and the nature of the bug across different contexts, including regular posts and signatures.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant reports a bug where LaTeX tags display a specific equation (\rho=\sqrt{4az_0}) regardless of the input.
  • Another participant suggests standard troubleshooting steps like clearing the cache and refreshing the window, but notes that the issue persists.
  • Some participants mention that the LaTeX feature may not be intended for signatures due to the absence of a post ID.
  • Several participants share similar experiences, indicating that the bug may show previously entered LaTeX equations instead of the current input.
  • One participant describes a scenario where incorrect LaTeX code led to the display of an old image, but questions whether this is the sole cause of the bug.
  • Another participant provides a workaround for using Greek characters by copying from a specific link.
  • One participant references a previous discussion about the issue, noting that refreshing after posting resolves the incorrect image display in some cases.
  • A participant speculates that the problems may be related to browser cache issues, expressing confusion over why some users experience the bug more frequently than others.

Areas of Agreement / Disagreement

Participants express a mix of agreement and disagreement regarding the causes of the LaTeX rendering issue. While some suggest it may be related to cache problems or incorrect code, others believe the bug occurs independently of these factors. No consensus is reached on the exact nature of the issue.

Contextual Notes

Participants note that the problem may vary by browser, with some users reporting different experiences in Firefox. There is also mention of the potential limitations of the LaTeX feature in signatures, which may contribute to the observed issues.

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 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K