LaTeX Is LaTeX Preview Working Properly?

  • Thread starter Thread starter chroot
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
LaTeX preview functionality has been recently updated, allowing users to see graphical representations of their LaTeX code in posts. However, some users are experiencing issues where previews display incorrect cached images instead of the intended LaTeX output. This problem appears to be linked to browser settings and user accounts, with varying experiences reported across different platforms. A workaround suggested involves adding dummy LaTeX images to force the generation of new previews. The developer has implemented code to delete stale images, aiming to resolve these caching issues.
  • #51
For the first time in more than a year, latex preview doesn't work. It shows old images though I typed new equations. I hope that when I push "Submit reply" the true images will show up. :smile:
 
Physics news on Phys.org
  • #52
fluidistic said:
For the first time in more than a year, latex preview doesn't work. It shows old images though I typed new equations. I hope that when I push "Submit reply" the true images will show up. :smile:
I'm glad it's not just me. I had that problem yesterday and the day before. Let's see if I still have it today...x, w, z. Yes, I do. (I wrote "x,y" and previewed, then I changed it to "x,w,z" and previewed again. The w shows up as y in the preview).

Edit: Trying again, after logging out and back in again. Uh...I still see a y.
 
  • #53
I have had problems with this today as well. A workaround is to (after a Ctrl-c for safety) refresh the composition page. Click on "Resend" in the Confirm window that opens.
 
  • #54
LaTeX doesn't work in RSS feeds. I think this is by design though...
 
  • #55
This is a test

This is only a test

Preview is not working for me, still getting old images.
 
  • #56
NOTE: This is not about preview or latex in PMs/VMs etc.

Inline latex seems to be somewhat broken:

[ tex ]\dot \theta[ /tex ] = \dot \theta

[ itex ]\dot \theta [ /itex ] = \dot \theta

However, [ itex ]\dot x \dot k[ /itex ] = \dot x \dot k

So it seems that with inline tex things like superscripts, dots, overlines, hats, and vector symbols do not show up over tall characters (like theta or k), but work for short characters (like x). This didn't happen before.
 
Last edited:
  • #57
That problem has been around for a long time Gokul, but since you're retired staff with over 10K posts, I guess you've been here much longer than that. Another problem with itex (example: \mathbb R) is that it changes the distance to the next line. You would often get better results with tex tags actually. And I'll just type a few more words to make sure that there's at least one line of text below the math expression.
 
  • #58
Gokul43201 said:
NOTE: This is not about preview or latex in PMs/VMs etc.

Inline latex seems to be somewhat broken:

[ tex ]\dot \theta[ /tex ] = \dot \theta

[ itex ]\dot \theta [ /itex ] = \dot \theta

However, [ itex ]\dot x \dot k[ /itex ] = \dot x \dot k

So it seems that with inline tex things like superscripts, dots, overlines, hats, and vector symbols do not show up over tall characters (like theta or k), but work for short characters (like x). This didn't happen before.
It seems that the top row of pixels is missing in itex.

[noparse]\sqrt{X}[/noparse] = \sqrt{X}
[noparse]\sqrt{X}[/noparse] = \sqrt{X}

(By the way, this message didn't preview correctly either, the same image was displayed for both the tex and itex.)

EDIT: the final version still seems to be wrong, the tex and itex seem to be identical. They are both displaying the top row of pixels missing on my computer.
 
Last edited:
  • #59
DrGreg said:
EDIT: the final version still seems to be wrong, the tex and itex seem to be identical. They are both displaying the top row of pixels missing on my computer.

tex : \sqrt{\alpha \beta \gamma}

itex : \sqrt{\alpha \beta \gamma}

Top row seems to be fine.
 
  • #60
\sqrt{iTeX}
\sqrt{TeX}

Problem only seems to happen with tall enough characters.
 
  • #61
DrGreg said:
They are both displaying the top row of pixels missing on my computer.
That seems to be an issue with the noparse tags, not with tex or itex. I have noticed before that noparse doesn't always work as advertised.
 
  • #62
Fredrik said:
That problem has been around for a long time Gokul, but since you're retired staff with over 10K posts, I guess you've been here much longer than that. Another problem with itex (example: \mathbb R) is that it changes the distance to the next line. You would often get better results with tex tags actually. And I'll just type a few more words to make sure that there's at least one line of text below the math expression.
Thanks for the pointer, Fredrik. I've definitely noticed the line-spacing issue, but oddly, never noticed the other problem until now. And I find it hard to believe that I've only ever used dots or vectors on tall symbols within tex tags and never with itex (but I guess that's possible)!
 
  • #63
The LaTeX preview does not work for me. When I hit the Preview Post button, I see my old equations. What is the solution?
 
  • #64
Dickfore said:
The LaTeX preview does not work for me. When I hit the Preview Post button, I see my old equations. What is the solution?
Use your browser's command to refresh the window after the "Preview Post" has gone wrong. See post #53.

By the way, does anyone know if chroot is aware of this problem?
 
  • #65
I'm aware of it, I just can't tell if it's something going on on the server end, or the client end. Nothing on the site itself has changed, so it's either something caused by a downstream provider (i.e. a caching proxy server), something in some newer version of a browser, or...

I will do some poking around to gather some evidence of these hypotheses.

- Warren
 
  • #66
I'm using Firefox 3.6.3 on Windows 7, but I just tried it with Internet Explorer 8.0.7600.16385 on the same computer, and it has the same problem. The refresh/resend workaround works in IE too.
 
  • #67
Likewise with Firefox 3.0 on OS X.
 
  • #68
In Google Chrome on Windows Vista too.

<br /> \int_{-\infty}^{\infty}{\int_{-\infty}^{\infty}{e^{\textup{i} \, k \, (x - x&#039;)} \, f(x&#039;) dx&#039; \, \frac{dk}{2\pi}}} = f(x)<br />
 
  • #69
Test1

\int_0^\infty e^{-x}\,dxNope. Problem exists using Google Chrome on OSX too.
 
  • #70
I also use google chrome, and I can vouch for Saladsamurai that preview only works sometimes (better than before though).
 
  • #71
I just did another test. Logging out and back in again doesn't solve the issue, but when I logged out, restarted the browser, cleared the browser cache and logged back in, it worked as it should. (But only once). I also tried to just clear the browser cache between previews, and that didn't work. Really weird.
 
  • #72
I have the same problem [Chrome/Firefox under Windows 7]
The only workaround that works for me is refreshing the preview page.
 
  • #73
test a foo e bar c.

Edit: D'oh. I meant to just preview that, not post it. At least I learned something, I think. Clearing the cache for the last hour doesn't help, but clearing the cache and the cookies. for the last hour does help. Hm, I guess I should try just the cookies too.

Uh...just clearing the cookies is not sufficient, and now I see that clearing both the cookies and the cache doesn't work either. Not when I preview anyway. I'll have to post this to see if "preview changes" behaves differently than "save changes".

Yes, it does. If I clear both before I post, it will look OK immediately after I have posted (without the refresh that's needed otherwise). This isn't at all useful as some sort of workaround, but maybe it will help chroot figure out what's wrong.
 
Last edited:
  • #74
Wait, you find clearing your cookies and cache before posting (and then probably having to re-login and stuff) easier than pressing F5 once?
 
  • #75
You may want to read the last paragraph of my post again. :smile:
 
  • #76
I can't get TeX to work at all (Chrome 6), not even after clearing cache and refreshing, and I tried submitting. I may have had errors in my first attempt, but I don't see any now. This is inline: Gm

This is display:

Gm

I've tried it in Firefox too. No different.

(I see on coming back later that the inline one is now displaying, but the display one is still just a broken image)
 
Last edited:
  • #77
Jonathan Scott said:
I can't get TeX to work at all (Chrome 6), not even after clearing cache and refreshing, and I tried submitting. I may have had errors in my first attempt, but I don't see any now. This is inline: Gm

This is display:

Gm

I've tried it in Firefox too. No different.

(I see on coming back later that the inline one is now displaying, but the display one is still just a broken image)

Seems to be working today (apart from the usual need to refresh during preview). This could perhaps be related to the fact that I apparently used TEX tags in upper case instead of tex in lower case. I had tried both, but I may have made some other mistake when I was using the lower case version.
 

Similar threads

Replies
4
Views
2K
Replies
12
Views
3K
Replies
9
Views
2K
Replies
23
Views
4K
Replies
3
Views
2K
Replies
5
Views
3K
Replies
4
Views
3K
Replies
3
Views
1K
Back
Top