LaTeX preview feature now available
- Context: LaTeX
- Thread starter chroot
- Start date
-
- Tags
- Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
76 replies · 20K views
Discussion
Physics news on Phys.org
- 19,980
- 11,081
What a wonderful day! 
FrogPad
- 801
- 0
good day... good day :P
nice work chroot!
nice work chroot!
- 7,506
- 3,027
[tex]{\rm\HUGE\color{red} JOY!}[/tex]
- 7,506
- 3,027
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].
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
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
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:
- 7,506
- 3,027
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!
ranger
Gold Member
- 1,687
- 2
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} +<br /> \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?
[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} +<br /> \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?
Staff Emeritus
Science Advisor
Gold Member
- 10,270
- 45
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.
- Warren
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.
- Warren
neutrino
- 2,093
- 2
[tex]\kappa oo\lambda[/tex] or[tex]\chi \omega\omega\lambda[/tex]? 
mattmns
- 1,129
- 5
Awesome, thanks!
[tex]2 + 2 = 4[/tex]
[tex]2 + 2 = 4[/tex]
dahfsys
\begin{equation}\label{Eq2101}
m \ddot x (t) = R(t) - m \cdot g \cdot \sin \theta _E
\end{equation}
m \ddot x (t) = R(t) - m \cdot g \cdot \sin \theta _E
\end{equation}
Mentor
- 38,145
- 10,746
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]
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]
Mentor
- 38,145
- 10,746
Now that I've posted it, the LaTeX code renders correctly, but it didn't in the preview.
Any ideas?
Any ideas?
- 12,179
- 186
Mark, yes, LaTex doesn't always display properly in preview mode.
FYI:
Regards,
Mark
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
Mentor
- 38,145
- 10,746
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
Mark
Admin
- 69,709
- 25,495
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.
- 10,876
- 423
I just made a couple of posts, and LaTeX preview didn't work. 
- 10,876
- 423
It still doesn't work, even after clearing my browser cache, deleting cookies etc. Does it work for the rest of you?!
Staff Emeritus
Science Advisor
Gold Member
- 9,621
- 9
It's working for me (Firefox 3, Fedora 10).Fredrik said:It still doesn't work, even after clearing my browser cache, deleting cookies etc. Does it work for the rest of you?!
- 10,876
- 423
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).
[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:
- 12,179
- 186
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.
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
LaTeX Tip on using LaTeX preview at other websites
- berkeman
- · Replies 4 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 4
LaTeX LaTeX command window feature now available
- Greg Bernhardt
- · Replies 37 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 37
Mathematica How to type mathematical equations using LaTeX
- Greg Bernhardt
- · Replies 3 ·
- MATLAB, Maple, Mathematica, LaTeX
- Replies
- 3
Highlighted Threads feature now available
- Greg Bernhardt
- · Replies 19 ·
- Feedback and Announcements
- Replies
- 19
Suggestion MyPF: First Post Preview Feature?
- Kurdt
- · Replies 1 ·
- Feedback and Announcements
- Replies
- 1
Sorting PF Files by Forum: New Feature Now Available!
- Greg Bernhardt
- · Replies 3 ·
- Feedback and Announcements
- Replies
- 3
