Okay, that's really weird. When I first posted it the double-delimiter things did not work and the [ tex ] tags did. Now it's the opposite when I re-check my post. I'm guessing it's being worked on in the background...berkeman said:Hmm, something seems extra-broken today; testing:
-----------------------------------------------------
Example of in-line LaTeX: ##v(t) = L \frac{di(t)}{dt}##
Example of stand-alone LaTeX:
$$v(t) = L \frac{di(t)}{dt}$$
-----------------------------------------------------
using [ itex ] and [ tex ]:
-----------------------------------------------------
Example of in-line LaTeX: [itex]v(t) = L \frac{di(t)}{dt}[/itex]
Example of stand-alone LaTeX:
[tex]v(t) = L \frac{di(t)}{dt}[/tex]
-----------------------------------------------------
I can no longer render LaTeX
- Thread starter renormalize
- Start date
-
- Tags
- Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
74 replies · 13K views
Physics news on Phys.org
- 29,796
- 21,619
It goes without saying that we shouldn't have to do this. This has been two months now.fresh_42 said:My current workaround is "post"+"refresh"+"edit" (repeat as long as necessary). I added a comment "Do not answer. This post is still under construction." at the beginning of longer posts and delete this line when I'm done.
- 19,952
- 11,044
I have a couple of freelance Xenforo devs working on this and struggling with the new editor. Xenforo 2.4 (out in a few months) will switch to yet another editor. Maybe that is a good thing. @PeroK I would love your support as a programmer. Please DM me and it would be great for you to have a look. Thanks!!PeroK said:It goes without saying that we shouldn't have to do this. This has been two months now.
Also I just got word that MathJax 4 is coming out soon. I'm sure that will change things.
Last edited:
Gold Member
- 1,321
- 1,539
Another LaTeX issue:
Since last September I have been exchanging PF direct messages with @fluidistic regarding a problem he is interested in. I just went back to review them and although the messages clearly include raw LaTeX code, none of them actually render LaTeX equations anymore, no matter how often I refresh my browser page. That behavior is distinctly different from posts in PF threads which properly display LaTeX after refreshing the post (as long as you never use Preview prior to posting). Frustrating.
Since last September I have been exchanging PF direct messages with @fluidistic regarding a problem he is interested in. I just went back to review them and although the messages clearly include raw LaTeX code, none of them actually render LaTeX equations anymore, no matter how often I refresh my browser page. That behavior is distinctly different from posts in PF threads which properly display LaTeX after refreshing the post (as long as you never use Preview prior to posting). Frustrating.
Gold Member
- 1,321
- 1,539
Update: @Greg Bernhardt promptly fixed the issue. All my messages now properly render their LaTeX content.renormalize said:Another LaTeX issue:
- 9,571
- 2,690
One other possible workaround is to keep a dummy insight around. Latex preview in Wordpress works just fine. When done, cut and paste to your reply.PeroK said:It goes without saying that we shouldn't have to do this. This has been two months now.
- 20,819
- 28,465
Yeah, but it has another big disadvantage: Do not do this with an existing WP text!PAllen said:One other possible workaround is to keep a dummy insight around. Latex preview in Wordpress works just fine. When done, cut and paste to your reply.
I was tempted to repair a broken link today. No big deal within WP. However, whenever you do this (any update) then it automatically destroys the corresponding OP of the PF thread! Hence, I had to decide: keep that broken link, or figure out where the corresponding PF thread is, which by itself is difficult enough, then enter the edit mode, enable the BB mode, copy the entire text to somewhere, then make your update, go back to that thread, enter edit mode again and delete the nonsense that has been created by your update, and insert the saved text again.
Well, I did not repair the broken link.
- 9,571
- 2,690
Can you clarify? I see you would never want to use a posted insight; that's why I suggested a dummy (draft) insight. Once the latex issue is solved, get rid of the dummy draft. Do you see any problems with that?fresh_42 said:Yeah, but it has another big disadvantage: Do not do this with an existing WP text!
I was tempted to repair a broken link today. No big deal within WP. However, whenever you do this (any update) then it automatically destroys the corresponding OP of the PF thread! Hence, I had to decide: keep that broken link, or figure out where the corresponding PF thread is, which by itself is difficult enough, then enter the edit mode, enable the BB mode, copy the entire text to somewhere, then make your update, go back to that thread, enter edit mode again and delete the nonsense that has been created by your update, and insert the saved text again.
Well, I did not repair the broken link.
- 20,819
- 28,465
No. I just wanted to point out that the update function on WP has a very negative impact on the corresponding thread on PF. A dummy thread is ok. You just shouldn't use an existing one.PAllen said:Can you clarify? I see you would never want to use a posted insight; that's why I suggested a dummy (draft) insight. Once the latex issue is solved, get rid of the dummy draft. Do you see any problems with that?
- 19,952
- 11,044
A latex preview update is shipping soon. Need to walk the dogs first :)
- 19,952
- 11,044
Dang this is weird. It's working great on CivicsWatch, but here, it auto renders in the editor outside of preview.
- 20,819
- 28,465
Is it already live, since as of now, it does not work on CW for me?Greg Bernhardt said:Dang this is weird. It's working great on CivicsWatch, but here, it auto renders in the editor outside of preview.
- 19,952
- 11,044
Yeah it's live on CW and works for me. Clear your cache.fresh_42 said:Is it already live, since as of now, it does not work on CW for me?
- 20,819
- 28,465
Well, yes and no.Greg Bernhardt said:Yeah it's live on CW and works for me. Clear your cache.
Code:
##
\begin{pmatrix}a&b\end{pmatrix}
##
[itex]
\begin{pmatrix}c&d\end{pmatrix}
[/itex]
$$
\begin{pmatrix}e&f\end{pmatrix}
$$
[tex]
\begin{pmatrix}g&h\end{pmatrix}
[/tex]
Code:
## \begin{pmatrix}a&b\end{pmatrix} ...
(ab)
Correction: PF still has the <br> repair stuff.
- 19,952
- 11,044
Try now, I've been tinkering this entire time and maybe I got it. Clear cache and reload.
- 20,819
- 28,465
##\begin{pmatrix}a&b\end{pmatrix}## is a vector.
[itex]\begin{pmatrix}c&d\end{pmatrix}[/itex] is a vector.
$$\begin{pmatrix}e&f\end{pmatrix}$$ is a vector.
[tex]\begin{pmatrix}g&h\end{pmatrix}[/tex] is a vector.
CW: No preview anymore at all.
PF: Inserting "amp;" stuff at the ampersand.
Hint @all: The {align*} statement has now to be put into double dollars. The previous version recognized them automatically as math.
[itex]\begin{pmatrix}c&d\end{pmatrix}[/itex] is a vector.
$$\begin{pmatrix}e&f\end{pmatrix}$$ is a vector.
[tex]\begin{pmatrix}g&h\end{pmatrix}[/tex] is a vector.
CW: No preview anymore at all.
PF: Inserting "amp;" stuff at the ampersand.
Hint @all: The {align*} statement has now to be put into double dollars. The previous version recognized them automatically as math.
Last edited:
- 19,952
- 11,044
I removed that as all dev is on here nowfresh_42 said:CW: No preview anymore at all.
can you elaborate on this in simple termsfresh_42 said:PF: Inserting "amp;" stuff at the ampersand.
are you suggesting some config has changed?fresh_42 said:Hint @all: The {align*} statement has now to be put into double dollars. The previous version recognized them automatically as math.
- 20,819
- 28,465
Works now.Greg Bernhardt said:can you elaborate on this in simple terms
Test:
Code:
##\begin{pmatrix}1&0\\0&1\end{pmatrix}##
[itex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/itex]
$$\begin{pmatrix}1&0\\0&1\end{pmatrix}$$
[tex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/tex]
##\begin{pmatrix}1&0\\0&1\end{pmatrix}##
[itex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/itex]
$$\begin{pmatrix}1&0\\0&1\end{pmatrix}$$
[tex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/tex]
Only copying this code directly from post #44 on the screen by Ctrl+C inserted some <br> and amp; and the preview ignores the carriage returns within the following code tags.
Code:
##<br>\begin{pmatrix}a&b\end{pmatrix}<br>##<br><br>[itex]<br>\begin{pmatrix}c&d\end{pmatrix}<br>[/itex]<br><br>$$<br>\begin{pmatrix}e&f\end{pmatrix}<br>$$<br><br>[tex]<br>\begin{pmatrix}g&h\end{pmatrix}<br>[/tex]
Not anymore. I had testedGreg Bernhardt said:are you suggesting some config has changed?
Code:
\begin{align*}
1&=-1\\[16pt]
0&\neq 1
\end{align*}
\begin{align*}
1&=-1\\[16pt]
0&\neq 1
\end{align*}
and it wasn't recognized automatically as math code, but now that I tested it again, it does (as in the previous version).
- 20,819
- 28,465
Well done!
- 20,819
- 28,465
This was directly after I posted it correct, but now it looks broken. Strange.fresh_42 said:Works now.
Test:
Code:##\begin{pmatrix}1&0\\0&1\end{pmatrix}## [itex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/itex] $$\begin{pmatrix}1&0\\0&1\end{pmatrix}$$ [tex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/tex]
##\begin{pmatrix}1&0\\0&1\end{pmatrix}##
[itex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/itex]
$$\begin{pmatrix}1&0\\0&1\end{pmatrix}$$
[tex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/tex]
Second try:
##\begin{pmatrix}1&0\\0&1\end{pmatrix}##
[itex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/itex]
$$\begin{pmatrix}1&0\\0&1\end{pmatrix}$$
[tex]\begin{pmatrix}1&0\\0&1\end{pmatrix}[/tex]
Looks fine in the preview, but my screen shows
Gold Member
- 1,321
- 1,539
Testing inline ##\Omega=ab\mu^{\nu}\text{ test}## code. Testing display$$\Omega=ab\mu^{\nu}\text{ test}$$code.
Both inline and display tags now work reliably for me in preview. Eureka!
Both inline and display tags now work reliably for me in preview. Eureka!
- 19,952
- 11,044
- 20,819
- 28,465
Let's see.
\begin{align*}
\begin{pmatrix}1&0\\0&1\end{pmatrix}&=\mathbb{I}_2
\end{align*}
results in ...
a) no preview at all
and then corrected to
$$
\begin{align*}
\begin{pmatrix}1&0\\0&1\end{pmatrix}&=\mathbb{I}_2
\end{align*}
$$
resulted in ...
b) a correct preview, and (sic!) it also previewed the first version without math tags correctly this time. But it did not on the first attempt. (I have no idea why.)
So now we will see what happens after hitting the post reply button.
Edit 1:
c) Page refresh is necessary
Edit 2:
d) Still, both versions are correct.
See what will happen after a while and/or leave the page.
Edit 3:
e) No additional amp; notes this time. I don't know what happened the first time.
I try to do it with the same code again:
##\begin{pmatrix}a&b\end{pmatrix}##
[itex]\begin{pmatrix}c&d\end{pmatrix}[/itex]
$$\begin{pmatrix}e&f\end{pmatrix}$$
[tex]\begin{pmatrix}g&h\end{pmatrix}[/tex]
f) Ctrl+C still copies the additional commands <br> and amp; into the buffer.
g) The preview is correct.
General observation from other threads: the quoted texts do not resolve TeX commands.
I close the edit session now.
Edit 4:
h) The post has been displayed correctly (after one refresh).
i) After the second refresh, I have again the amp; tags on the screen.
j) This occurs only in the lines that used [ tex ] and [ itex ] commands, not on the lines with hastags or dollars.
Code:
\begin{align*}
\begin{pmatrix}1&0\\0&1\end{pmatrix}&=\mathbb{I}_2
\end{align*}
\begin{pmatrix}1&0\\0&1\end{pmatrix}&=\mathbb{I}_2
\end{align*}
results in ...
a) no preview at all
and then corrected to
Code:
$$
\begin{align*}
\begin{pmatrix}1&0\\0&1\end{pmatrix}&=\mathbb{I}_2
\end{align*}
$$
\begin{align*}
\begin{pmatrix}1&0\\0&1\end{pmatrix}&=\mathbb{I}_2
\end{align*}
$$
resulted in ...
b) a correct preview, and (sic!) it also previewed the first version without math tags correctly this time. But it did not on the first attempt. (I have no idea why.)
So now we will see what happens after hitting the post reply button.
Edit 1:
c) Page refresh is necessary
Edit 2:
d) Still, both versions are correct.
See what will happen after a while and/or leave the page.
Edit 3:
e) No additional amp; notes this time. I don't know what happened the first time.
I try to do it with the same code again:
Code:
##\begin{pmatrix}a&b\end{pmatrix}##
[itex]\begin{pmatrix}c&d\end{pmatrix}[/itex]
$$\begin{pmatrix}e&f\end{pmatrix}$$
[tex]\begin{pmatrix}g&h\end{pmatrix}[/tex]
[itex]\begin{pmatrix}c&d\end{pmatrix}[/itex]
$$\begin{pmatrix}e&f\end{pmatrix}$$
[tex]\begin{pmatrix}g&h\end{pmatrix}[/tex]
f) Ctrl+C still copies the additional commands <br> and amp; into the buffer.
g) The preview is correct.
General observation from other threads: the quoted texts do not resolve TeX commands.
I close the edit session now.
Edit 4:
h) The post has been displayed correctly (after one refresh).
i) After the second refresh, I have again the amp; tags on the screen.
j) This occurs only in the lines that used [ tex ] and [ itex ] commands, not on the lines with hastags or dollars.
Last edited:
- 16,043
- 9,259
The motional emf across an oriented segment ##d\mathbf l## is $$d(\text{emf})=\mathbf E\cdot d\mathbf l= (\mathbf v\times \mathbf B)\cdot d\mathbf l.$$Now $$\begin{align}& \mathbf E=(\mathbf v\times \mathbf B)=(\boldsymbol{\omega}\times \mathbf{r})\times\mathbf B \nonumber \\& = \mathbf B\times(\mathbf {r}\times \boldsymbol{\omega}) \nonumber \\& =\cancelto{0}{\mathbf r(\mathbf B\cdot \boldsymbol{\omega})}-\boldsymbol{\omega}(\mathbf B\cdot \mathbf r) =-\omega B r\cos\!\theta ~\mathbf {\hat y}.\end{align}$$
I had to change all & to just &.
Looking good! Thanks Greg.
Code:
The motional emf across an oriented segment ##d\mathbf l## is $$
d(\text{emf})=\mathbf E\cdot d\mathbf l= (\mathbf v\times \mathbf B)\cdot d\mathbf l.$$ Now $$
\begin{align}& \mathbf E=(\mathbf v\times \mathbf B)
=(\boldsymbol{\omega}\times \mathbf{r})\times\mathbf B \nonumber \\
= \mathbf B\times(\mathbf {r}\times \boldsymbol{\omega}) \nonumber \\
& =\cancelto{0}{\mathbf r(\mathbf B\cdot \boldsymbol{\omega})}-\boldsymbol{\omega}
(\mathbf B\cdot \mathbf r)=-\omega B r\cos\!\theta ~\mathbf {\hat y}.\end{align}$$
I had to change all & to just &.
Looking good! Thanks Greg.
JimWhoKnew
- 270
- 158
Thanks, GregGreg Bernhardt said:Try now, I've been tinkering this entire time and maybe I got it. Clear cache and reload.
Edit:
And it also seems to render much faster than before.
Last edited:
JimWhoKnew
- 270
- 158
I see now that I have a similar problem with the "Homework Statement", "Relevant Equations" and "TL;DR Summary" sections.JimWhoKnew said:The preview seems to function fine (thanks again), but LaTeX inside quotations is now presented as text even after submission of the reply. For example, the quote in this post doesn't show the equations as LaTeX on my browser.
- 20,819
- 28,465
I assume that it doesn't render in any tags.
Test 1:
##\mathbb{Z}##
Edit: Strange, it had worked in the preview.
Test 1:
##\mathbb{Z}##
##\mathbb{Z}##
##\mathbb{Z}##
Edit: Strange, it had worked in the preview.
- 19,952
- 11,044
latex should be fixed in message fields aka in homework help, and in quote blocks now
- 50,396
- 26,453
Can you revert to a previous version that is known not to have this problem?Greg Bernhardt said:hmmm this is a tough one. I'm at a bit of a loss. Nothing I'm trying is close to working.