How Can I Preview LaTeX Formulas in the Forum?

  • Context: LaTeX 
  • Thread starter Thread starter Heidi
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around issues related to previewing LaTeX formulas in the forum. Participants share their experiences with the functionality of the preview feature, particularly in different browsers and under various conditions.

Discussion Character

  • Technical explanation, Debate/contested, Meta-discussion

Main Points Raised

  • One participant reports difficulty in previewing LaTeX formulas, noting that while the preview mode changes the text, it does not display the rendered formulas.
  • Another participant states that the "Preview" button works correctly for them, allowing toggling between preview and edit modes without issues.
  • A participant mentions that in a newly-opened tab, the preview often fails, but reloading the tab resolves the issue, particularly in Firefox.
  • Some participants suggest that the problem may be related to lazy loading of the LaTeX rendering component, which only activates if the page initially contains LaTeX.
  • One participant indicates that the issue persists across different browsers, including Chrome, and speculates that it could be caused by an unintentional double click.
  • Another participant notes that browser security settings or JavaScript incompatibility might lead to non-responsive posting tools.
  • A participant warns about a potential bug where refreshing the page could lead to LaTeX being rendered incorrectly in the edit box, risking loss of written content.
  • One participant expresses gratitude for a solution provided by another user, indicating that it resolved their issue.
  • There is a mention of a specific button that can cause posting tools to become unresponsive, although it is unclear if this is related to the preview issue.

Areas of Agreement / Disagreement

Participants express a range of experiences with the preview feature, indicating that there is no consensus on the cause of the issues, as some find it works while others do not.

Contextual Notes

Participants note that the behavior of the preview feature may depend on browser type, settings, and specific actions taken by users, such as reloading tabs or clicking buttons.

Heidi
Messages
420
Reaction score
40
Hi Pfs,
I do not succeed to preview the latex formulas that i type in this forum.
I tried with formulas between: $$ \epsilon_j $$ or between sharp characters and then i click on the preview icon.
I see that something has changed: i can more modify my text. but i do not see the result
if i click one more time then i can modify my formulas.
Was something wrong? If i post my thread , i see the resultins formulas with latex but without previewing.
edit
thanks
 
Physics news on Phys.org
Interesting. For me the "Preview" button works fine. If I click it once it goes to preview mode and shows the post with the LaTeX correctly rendered, and if I click it again then it goes back to edit mode with the LaTeX code.

@Greg Bernhardt any ideas what may prevent the Preview button from working?
 
  • Like
Likes   Reactions: jedishrfu
Heidi said:
I do not succeed to preview the latex formulas that i type in this forum.
In a newly-opened tab, the preview often doesn't work. Reloading the tab and clicking preview again cures that (in my Firefox browser). Once the preview works in a tab, it keeps working.

UPDATE: @Wrichik Basu has posted some cautions and a safer procedure here.
 
Last edited:
  • Like
Likes   Reactions: mfb, hmmm27, jedishrfu and 2 others
FactChecker said:
In a newly-opened tab, the preview often doesn't work. Reloading the tab and clicking preview again cures that (in my Firefox browser). Once the preview works in a tab, it keeps working.
I was able to replicate this behavior too. Must be some sort of lazy loading where the LaTeX rendering component only loads if the page contains LaTeX on loading.
 
  • Like
Likes   Reactions: jedishrfu and FactChecker
FactChecker said:
In a newly-opened tab, the preview often doesn't work. Reloading the tab and clicking preview again cures that (in my Firefox browser). Once the preview works in a tab, it keeps working.
Same in Chrome.

Another possible explanation is an unintentional double click, a problem I currently have with my mouse.
 
  • Like
Likes   Reactions: jedishrfu, Dale and FactChecker
I've seen on some browsers where the tools when posting are all red and don't respond. I figured it had something to do with browser security ie disabling javascript support or some javascript incompatibility. I switch to another browser when that happens.
 
Dale said:
I was able to replicate this behavior too. Must be some sort of lazy loading where the LaTeX rendering component only loads if the page contains LaTeX on loading.
As per the current configuration, a page that does not have any ##\LaTeX## does not load the MathJax resources. See this post of mine in a thread on the exact same issue: https://www.physicsforums.com/threa...oes-it-work-for-you-here.1006363/post-6531460

There's a bug that you need to be careful of before refreshing the page; otherwise the entire LaTeX will get rendered in the edit box itself, and clicking on Preview will result in gibberish, and you will likely lose what you have written. See the above link for a possible workaround.

This is a known issue for a long time. In fact, I had brought it up after the MathJax config was changed to lazy load: https://www.physicsforums.com/threads/latex-now-lazy-loading.1003734/post-6504644
 
  • Like
  • Informative
Likes   Reactions: jedishrfu, Heidi, mfb and 2 others
Thanks you Wrichik Basu.
It works now.
 
  • Like
Likes   Reactions: Wrichik Basu
jedishrfu said:
I've seen on some browsers where the tools when posting are all red and don't respond.

That can happen if you click the "Toggle BB code" button. . .
1663414726087.png
That might not be what you mean, though ?
 
Last edited:
  • Like
Likes   Reactions: Wrichik Basu

Similar threads

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