LaTeX showing old images in preview

  • Context: LaTeX 
  • Thread starter Thread starter Jonathan Scott
  • Start date Start date
  • Tags Tags
    Images Latex
Click For Summary

Discussion Overview

The discussion revolves around issues with LaTeX image previews in a forum context, specifically focusing on the display of outdated images when attempting to render new LaTeX expressions. Participants explore potential causes, solutions, and the functionality of different LaTeX modes.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Meta-discussion

Main Points Raised

  • One participant notes that the preview shows old images of LaTeX expressions, even for simple cases like a single letter X, and questions if there is a way to reset this.
  • Another participant suggests that invalid LaTeX code can lead to the display of old images, providing an example of a malformed expression.
  • A participant expresses frustration with the LaTeX display issues, stating they avoid using it due to these problems.
  • Some participants propose that the issue may be related to caching in the preview screen, suggesting that refreshing the page might resolve it.
  • One participant recounts their experience where refreshing did not resolve the issue, indicating uncertainty about the effectiveness of this solution.
  • There is a question raised about the difference between TEX and ITEX, with a response clarifying that ITEX is used for inline LaTeX to avoid disrupting text flow.
  • Another participant shares their experience with refreshing after posting, noting that it resolves the issue, but raises concerns about needing to post prematurely for others to see the correct display.
  • Some participants acknowledge that while the preview issue is frustrating, there are ways to work around it, though it may not be ideal.
  • A participant describes a specific instance where they encountered an old image in the preview and how correcting their LaTeX code resolved the issue without needing a refresh.

Areas of Agreement / Disagreement

Participants express a mix of experiences regarding the LaTeX preview issue, with some agreeing on the caching theory while others report different outcomes. There is no consensus on a definitive solution, as experiences vary based on individual circumstances and browser usage.

Contextual Notes

Limitations include varying experiences with LaTeX rendering based on browser differences, potential issues with invalid LaTeX code, and the unclear effectiveness of refreshing the preview screen.

Jonathan Scott
Gold Member
Messages
2,350
Reaction score
1,200
I've been trying to use LaTeX in a response, but the preview keeps showing images of different LaTeX expressions which I used in previous responses. This happens even for the most trivial case such as just a single letter X, both in ITEX and TEX tags. Is there something I need to do to reset it in some way?
 
Physics news on Phys.org
6 \,\frac{Gm}{c^2a(1-e^2)}

You will get an old image if your LaTeX code is invalid. For example, with [noparse]\frac {GmM{r^2}[/noparse]

I see r^2. You will see

\frac{GmM{r^2}
Edit:
Hmmm.

The "LaTeX image generation failed" is being shown for a valid LaTeX expression and the generated LaTeX image for the invalid expression is the image corresponding to the valid expresion. Weird.
 
I will echo Jonathon's observation. It's frustrating when you're trying to give accurate information, and equations won't display properly. As a result I avoid using LaTex if at all possible. Luckily there are some https://www.physicsforums.com/blog.php?b=347" , but they're not as versatile as LaTex.
 
Last edited by a moderator:
I think its a cache issue in the preview screen. This has been known about for a while. If you refresh each time you preview the problem should go away. Make sure you copy the contents of your post just in case something happens in the refresh.
 
I'm pretty sure I tried a screen refresh the last time this happened to me (at least 2 weeks ago), and it didn't help. But enough time has passed that I'm not 100% sure. I'll try to remember trying this next time it happens.
 
Whats the difference between TEX and ITEX anyway?
 
itex is inline latex so if you want an equation in a sentence it will not skew the lines of text.
 
Oh right.
 
Kurdt said:
I think its a cache issue in the preview screen. This has been known about for a while. If you refresh each time you preview the problem should go away. Make sure you copy the contents of your post just in case something happens in the refresh.

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.

So this puts us in the somewhat awkward position of having to post, where others can view, before we are finished editing. I guess we can always put "WORK IN PROGRESS, DO NOT RESPOND (YET)" at the top of a post until it is really in its final form.
 
  • #10
Oh well. That theory is shot down then.
 
  • #11
Not totally shot down. At least we have some way of seeing what should be there, even if it's not perfect.
 
  • #12
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.

Edit: I got an old image in the preview today. 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.
 
Last edited:

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K