LaTeX Preview is working again

  • LaTeX
  • Thread starter chroot
  • Start date
  • Tags
    Latex
In summary, Warren fixed the LaTeX preview code and chroot finished installing the code that enables LaTeX preview. Warren told chroot that he doesn't support LaTeX in blogs. Kurdt told Warren that he was confused by the thread in Computer Science / Math Software. Warren told Kurdt that the thread is currently posted in Computer Science / Math Software and there is no LaTeX sigma available there.
  • #1
chroot
Staff Emeritus
Science Advisor
Gold Member
10,295
41
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
  • #3
Geez, that must've been really hard to fix. :P
 
  • #4
[tex]I = I_S (e^\frac{qV}{kT} -1)[/tex]

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

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

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

- Warren
 
  • #7
[tex]{\rm\HUGE\color{red} JOY!} [/tex]
 
  • #8
Since the recent update, I just noticed that my blog/journal entries with attempts at [tex]\LaTeX[/tex] 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].
 
  • #9
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.

[tex]\nabla \times \mathbf{H} = \mathbf{J} + \frac{\partial \mathbf{D}} {\partial t}[/tex]

[tex]\oint_C \mathbf{H} \cdot \mathrm{d}\mathbf{l} = \int_S \mathbf{J} \cdot \mathrm{d} \mathbf{A} +
\int_S \frac{\partial\mathbf{D}}{\partial t} \cdot \mathrm{d} \mathbf{A}[/tex]

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
[tex]\chi\varpi\varpi\lambda[/tex].
 
  • #14
[tex]\kappa oo\lambda[/tex] or[tex] \chi \omega\omega\lambda[/tex]? :biggrin:
 
  • #15
[tex]\varsigma o o \lambda[/tex]

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

[tex]2 + 2 = 4[/tex]
 
  • #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.
[tex]
\frac{2}{3}
[/tex]
 
  • #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 [tex]\Omega \omega [/tex]

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.

[tex]\int[/tex]

[tex]\sum[/tex]

[tex]3+3[/tex]

[tex]x[/tex]

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.
 
  • #31
That's definitely not the problem I have. It fails every time, no matter what browser or computer(!) I use. I never had those intermittent problems that you have described before. (At least I think it was you, but I may remember it wrong).
 
  • #32
Aren't images which are used more than once generated once? For example, if I type [itex]\lambda[/itex] once and then [itex]\lambda[/itex] again, it generates, stores and inserts two separate images?

[edit]Apparently it does... that's weird[/edit]
 
  • #33
Fredrik said:
That's definitely not the problem I have. It fails every time, no matter what browser or computer(!) I use. I never had those intermittent problems that you have described before. (At least I think it was you, but I may remember it wrong).

I'm not sure if my description was completely accurate either, just going from memory of something that was posted last summer.

A work-around might be to write "editing in progress" at the top of a post, then submit it. Proofread, edit, and save as needed. When you're done, remove the "editing in progress" sign.

I've been frustrated with LaTex often enough that I try to avoid it. Not really possible all the time (such as in the post you linked to) though.

CompuChip said:
Aren't images which are used more than once generated once? For example, if I type https://www.physicsforums.com/latex_images/21/2192470-0.png [Broken] once and then https://www.physicsforums.com/latex_images/21/2192470-1.png [Broken] again, it generates, stores and inserts two separate images?

[edit]Apparently it does... that's weird[/edit]

Yup, those are two separate images with different URL's:
https://www.physicsforums.com/latex_images/21/2192470-0.png [Broken]
and
https://www.physicsforums.com/latex_images/21/2192470-1.png [Broken]
 
Last edited by a moderator:
  • #34
Redbelly98 said:
A work-around might be to write "editing in progress" at the top of a post, then submit it. Proofread, edit, and save as needed. When you're done, remove the "editing in progress" sign.

I've been frustrated with LaTex often enough that I try to avoid it. Not really possible all the time (such as in the post you linked to) though.
Most of my posts are like that, so avoiding LaTeX isn't really an option for me. The "editing in progress" trick is only good enough for posts that have very little LaTeX content. So if this problem can't be solved, I would either have to get a new account or stop posting.

I'm writing this on a fourth computer, and I still get the same images when I preview. It's not the latest images or anything like that, but always the images from the post I linked to. I just did some more testing and noticed that if I put more than 15 LaTeX images in my post, only the first 15 are messed up in the preview. The 16th is displayed fine. Maybe I'll use that as a workaround for a while. :smile:
 
  • #35
Fredrik said:
Most of my posts are like that, so avoiding LaTeX isn't really an option for me. The "editing in progress" trick is only good enough for posts that have very little LaTeX content. So if this problem can't be solved, I would either have to get a new account or stop posting.

I'm writing this on a fourth computer, and I still get the same images when I preview. It's not the latest images or anything like that, but always the images from the post I linked to. I just did some more testing and noticed that if I put more than 15 LaTeX images in my post, only the first 15 are messed up in the preview. The 16th is displayed fine. Maybe I'll use that as a workaround for a while. :smile:

I'm having exactly the same problem as Fredrik, except for me the number is not 15 but 2. Always. And the 2 corrupted images I see are always the same images every time. They are two equations that I once generated some time ago (probably the first Latex I created after it got reenabled after the disk problems).

I suspect that something went wrong in the past, some images got cached (on the server) in such a way that the cached images take precedence over freshly generated Latex in previews. Different users have a different number of "badly cached" images. For me it's 2, for Fredrik it's 15, for many lucky souls it's zero.

So a workaround is to stick a load of dummy latex images at the top of your post while previewing, remembering to delete them again before posting.
 
<h2>What is LaTeX Preview?</h2><p>LaTeX Preview is a feature that allows users to see a preview of their LaTeX code as they are typing it, making it easier to spot any errors or formatting issues.</p><h2>Why is it important that LaTeX Preview is working again?</h2><p>LaTeX Preview is important because it helps users save time and effort by allowing them to see a real-time preview of their code. This can help prevent mistakes and make the overall editing process more efficient.</p><h2>How does LaTeX Preview work?</h2><p>LaTeX Preview works by using a built-in LaTeX compiler to process the code and generate a preview image. This image is then displayed alongside the code, giving users a visual representation of their work.</p><h2>What caused the issue with LaTeX Preview not working?</h2><p>The issue with LaTeX Preview not working could have been caused by a variety of factors, such as a bug in the code, a problem with the server, or an update that caused compatibility issues. It is difficult to pinpoint the exact cause without further information.</p><h2>Is there anything users can do to prevent LaTeX Preview from not working in the future?</h2><p>To prevent future issues with LaTeX Preview, users can make sure their code is properly formatted and does not contain any errors. They can also keep their software and plugins up to date, as updates often include bug fixes and improvements to existing features.</p>

What is LaTeX Preview?

LaTeX Preview is a feature that allows users to see a preview of their LaTeX code as they are typing it, making it easier to spot any errors or formatting issues.

Why is it important that LaTeX Preview is working again?

LaTeX Preview is important because it helps users save time and effort by allowing them to see a real-time preview of their code. This can help prevent mistakes and make the overall editing process more efficient.

How does LaTeX Preview work?

LaTeX Preview works by using a built-in LaTeX compiler to process the code and generate a preview image. This image is then displayed alongside the code, giving users a visual representation of their work.

What caused the issue with LaTeX Preview not working?

The issue with LaTeX Preview not working could have been caused by a variety of factors, such as a bug in the code, a problem with the server, or an update that caused compatibility issues. It is difficult to pinpoint the exact cause without further information.

Is there anything users can do to prevent LaTeX Preview from not working in the future?

To prevent future issues with LaTeX Preview, users can make sure their code is properly formatted and does not contain any errors. They can also keep their software and plugins up to date, as updates often include bug fixes and improvements to existing features.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
697
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
23
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
858
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
980
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
770
Back
Top