LaTeX Is LaTeX Preview Working Properly?

  • Thread starter Thread starter chroot
  • Start date Start date
  • Tags Tags
    Latex
Click For 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.
chroot
Staff Emeritus
Science Advisor
Gold Member
Messages
10,266
Reaction score
45
Hey all,

Just wanted to let you know I finished installing the code that enables LaTeX preview. Try it out and let me know if you find any bugs.

- Warren
 
Physics news on Phys.org
Geez, that must've been really hard to fix. :P
 
I = I_S (e^\frac{qV}{kT} -1)

Thanks chroot! That really is a big help in posting replies. :biggrin:
 
good day... good day :P

nice work chroot!
 
-Job- said:
Geez, that must've been really hard to fix. :P

:rolleyes: Yeah... whew, I'm beat.

- Warren
 
{\rm\HUGE\color{red} JOY!}
 
Since the recent update, I just noticed that my blog/journal entries with attempts at \LaTeX now show graphic images... of the form "preview9587-0.png"... which are images from other LaTeX posts or previews of mine. They used to show the red "LaTeX image generation failed..." graphic. So, it seems that we are one step closer to LaTeX in the blog/journals... which might be a good place to place easier-to-find tutorials or notes... with no time limits on editing.. and no possible interference from other posters [but, of course, subject to approval by the mentors].
 
robphy,

I don't really have any intention of supporting LaTeX in blogs. What you're seeing is actually a bug: if the code is run inside anything other than a normal post, it assumes it's in a preview. That apparently wasn't a good plan...

- Warren
 
Last edited:
  • #10
chroot said:
robphy,

I don't really have any intention of supporting LaTeX in blogs. What you're seeing is actually a bug: if the code is run inside anything other than a normal post, it assumes it's in a preview. That apparently wasn't a good plan...

- Warren

ok. i see.
But Thanks again for fixing the LaTeX preview! :smile::smile::smile::smile::smile::smile:
 
  • #11
Thanks Warren.

\nabla \times \mathbf{H} = \mathbf{J} + \frac{\partial \mathbf{D}} {\partial t}

\oint_C \mathbf{H} \cdot \mathrm{d}\mathbf{l} = \int_S \mathbf{J} \cdot \mathrm{d} \mathbf{A} +<br /> \int_S \frac{\partial\mathbf{D}}{\partial t} \cdot \mathrm{d} \mathbf{A}

Does this mean I can LaTeX all I want? How'd you get around the issues that were preventing you from doing it in the first place?
 
  • #12
When couldn't you use LaTeX all you wanted?

I got around the issues by scouring the vB code for an hour or two and finding the right places to put my hooks. It was actually really easy to find a reasonable way to do it. I'm sorry I didn't do it a long time ago. :frown:

- Warren
 
  • #13
\chi\varpi\varpi\lambda.
 
  • #14
\kappa oo\lambda or\chi \omega\omega\lambda? :biggrin:
 
  • #15
\varsigma o o \lambda

P.S. (yes, \iota\tau works)
P.P.S. so does inline :approve:
 
  • #16
Awesome, thanks!

2 + 2 = 4
 
  • #17
\begin{equation}\label{Eq2101}
m \ddot x (t) = R(t) - m \cdot g \cdot \sin \theta _E
\end{equation}
 
  • #18
LaTeX in previews is not working for me. Since no one else is reporting this problem, is it some setting on my browser (IE 8) I need to configure or something with the cookie I have do?
The following should look like the fraction 2/3 formatted nicely, but what I see when I preview it is an integral sign.
<br /> \frac{2}{3}<br />
 
  • #19
Now that I've posted it, the LaTeX code renders correctly, but it didn't in the preview.
Any ideas?
 
  • #20
Mark, yes, LaTex doesn't always display properly in preview mode.

FYI:

DrGreg said:
Previewing a message seems to show incorrect cached images instead of generating a new Latex image. No problem when you actually post the message.

Redbelly98 said:
Yes, this was a problem even before the recent LaTex issues of 1 or 2 weeks ago. I guess there is no easy fix, or it would have been fixed already, and so we just live with it.

This is one reason why I avoid LaTex unless absolutely necessary, and instead copy-and-paste the symbols linked to in my sig. If you just need to use the occasional Greek letter, the copy-and-paste route is definitely preferable.

It's worth mentioning that we have LaTex mainly (perhaps entirely?) due to the efforts of one of the PF volunteer staffmembers, chroot.

Regards,

Mark
 
  • #21
Up until the recent problem with the hard drive failure (I think that was the problem), LaTeX preview worked perfectly for me. I'm glad to see that it works now when you submit your post, but being able to preview it is a nice feature when you're working with definite integrals or matrices or the like.
Mark
 
  • #22
I may be a little slow, so apologies if this has been asked and answered already. I don't see the LaTex button in the Advanced Reply or New Topic windows anymore. Am I missing it?
 
  • #23
It depends what forum you're in berkeman. Its not available in all of them.
 
  • #24
Kurdt said:
It depends what forum you're in berkeman. Its not available in all of them.

Hah! That's it Kurdt, thanks.

The thread that confused me is currently posted in Computer Science / Math Software, and there is no LaTex sigma available there:

https://www.physicsforums.com/showthread.php?t=312053

But you're correct, I see it in EE and in the Homework Help forums. I had held off moving the post at the link above until I could figure out (whenever the OP responds to my question) where to move it. I tried to refer to the LaTex button in my post, but noticed that it wasn't available as I was making my reply.

Thanks for clarifying this for me. Makes sense now.
 
  • #25
I just made a couple of posts, and LaTeX preview didn't work. :confused:
 
  • #26
It still doesn't work, even after clearing my browser cache, deleting cookies etc. Does it work for the rest of you?!
 
  • #27
Fredrik said:
It still doesn't work, even after clearing my browser cache, deleting cookies etc. Does it work for the rest of you?!
It's working for me (Firefox 3, Fedora 10).
 
  • #28
test \Omega \omega

worked in preview for me. IE7 on Vista (yuck)
 
  • #29
LaTeX previews are not working for me. When I preview the code below I get the first four LaTeX images from this post (starting with the one I quoted from Strangerep's post). I have tried this from three different computers and I get the same result every time. It doesn't matter if I use Firefox or IE, or if I use XP or Vista. This is definitely tied to my user account somehow.

\int

\sum

3+3

x

By the way, when I wrote #5 in that thread, I messed up some tex or itex tag and got a very weird result. The last paragraph ended up outside the rectangular area where the post is supposed to be. It was below the "report" button. Something is really weird here. (That post went back to normal when I fixed the broken tags).
 
Last edited:
  • #30
I know that Greg or chroot had explained this before. From what I remember, it has to do with LaTex code causing a new image to be generated. This is a CPU-intensive process, or perhaps it had to do with the images taking up hard drive space. At any rate, generation of new fresh images is not done everytime a post with LaTex code is viewed. That's why old or wrong LaTex images sometimes show up.

Refreshing a post should force new, correct images to be generated. But refreshing a preview does not do this, apparently.

At least this is my understanding. Greg definitely prefers we not use LaTex for simple things like Greek characters, superscripts, and subscripts that can be done easily without LaTex.
 

Similar threads

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