LaTeX Issues: Guide to Solve Formulae Writing Problems

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

Discussion Overview

The discussion revolves around issues encountered while using LaTeX for formula writing in forum posts, focusing on technical problems with the text editor and potential solutions. Participants share their experiences with bugs, browser compatibility, and strategies to avoid losing LaTeX content during posting.

Discussion Character

  • Technical explanation, Debate/contested, Meta-discussion

Main Points Raised

  • Some participants report that LaTeX source can be replaced with math symbols during previewing or editing, leading to frustration.
  • There is a suggestion that browser choice may affect the reliability of the LaTeX editor, with some users preferring Firefox over Chromium.
  • A known issue is mentioned where simultaneous replies can refresh the background, causing LaTeX equations to render incorrectly.
  • Participants share personal experiences of losing LaTeX content and express concern over the frequency of this issue.
  • Some propose workarounds, such as using external editors for LaTeX or frequently copying text before posting.
  • There is a mention of a SAVE DRAFT button, but uncertainty about its functionality is expressed.
  • One participant suggests implementing a notification system to prevent page refreshes when text is present in the reply box.
  • Another participant inquires about the possibility of protecting parts of a webpage from being processed by MathJax.

Areas of Agreement / Disagreement

Participants generally agree that there are significant issues with the LaTeX editor, but multiple competing views on the causes and potential solutions remain. The discussion does not reach a consensus on how to resolve these problems.

Contextual Notes

Limitations include the lack of clarity on the effectiveness of suggested workarounds and the uncertainty surrounding the functionality of the SAVE DRAFT feature.

exponent137
Messages
562
Reaction score
35
vanhees71 said:
For formulae use LaTeX. Just click the "LaTeX Guide" on the left below the input field:

https://www.physicsforums.com/help/latexhelp/

It's pretty much analogous to the case of the quarks in the electroweak sector of the standard model. Also there by convention when introducing the mixing matrix (in this case the CKM=Cabibbo-Kobayashi-Maskawa matrix) you keep the up-like quarks (u,c,t) as mass-eigenstates but "mix" the down-like quarks (d,s,b). That's possible by using all the freedom to define the various physically unimportant phases of the fields.

For the neutrinos the mixing matrix is named PMNS=Pontekorvo-Maki-Nakagawa-Sakati matrix.

https://en.wikipedia.org/wiki/Cabibbo–Kobayashi–Maskawa_matrix
https://en.wikipedia.org/wiki/Pontecorvo–Maki–Nakagawa–Sakata_matrix
Thanks for the answer. But I tried to understand another aspect of my comparison. I will try to better formulate my question, when I will have time. And I need to study more about neutrinos.

About the text editor: I did use Latex. But at some moment my formulae become blank and I could not corrected them. I suspect that the reason was that I used more time for my post, and one overtake me, thus this software made some mistake. I wrote formulae inside signs "#", maybe this was an additional reason.
 
Physics news on Phys.org
exponent137 said:
About the text editor: I did use Latex.
There seems to be a bug where sometimes previewing or editing a post replaces the LaTeX source with the maths symbols, minus the layout. It's frustrating when it bites you, but it seems to be fairly rare.
 
Last edited:
  • Like
Likes   Reactions: exponent137
Does it depend on the browser? I once had issues using Chromium. Since then I only use firefox for PF (it works very stable under linux as well as under android).
 
vanhees71 said:
Does it depend on the browser? I once had issues using Chromium. Since then I only use firefox for PF
I also use Firefox and have had it happen to me. The problem is extremely intermittent, though - it's happened maybe two or three times since PF5 was introduced and I dread to think how many posts I've made. Lest I be struck down for off-topic posting I'll go back to lurking on this thread - @exponent137, there's a recent thread in Feedback started by Stephen Tashi if you want to report/discuss the issue.
 
  • Like
Likes   Reactions: vanhees71
There is a known issue where if someone is replying while you are replying, your background is refreshed and the equations will attempt to render, thus messing up the markup.
 
  • Like
  • Informative
Likes   Reactions: jim mcnamara, Wrichik Basu, berkeman and 2 others
This bug has affected me twice today (and never before).

The first time I was able to retype the latex, as there wasn't much of it.

The second time there was much more latex, and I couldn't be bothered to retype it, so I just deleted my post and no-one will ever see the contribution I wanted make.

When will this bug be fixed?
 
DrGreg said:
This bug has affected me twice today (and never before).

The first time I was able to retype the latex, as there wasn't much of it.

The second time there was much more latex, and I couldn't be bothered to retype it, so I just deleted my post and no-one will ever see the contribution I wanted make.

Noooo! Your posts are always gems, it's a crime that what you wrote disappeared into the void!

I got into the subconscious habit of going "ctrl-A;ctrl-C" before posting anything with ##\LaTeX## in it, just to avoid this issue. Or if it is a long post I'll typeset it in Overleaf and copy it over.

But, neither is ideal!
 
  • Like
Likes   Reactions: anorlunda
There is also a SAVE DRAFT button on the post editor. But I'm not sure what it does because there is no RESTORE DRAFT button.
 
If there is a lot of ##\LaTeX## to type, it is always better to first type it out somewhere else and then copy-paste here. Notepad, gedit, or, if you are on mobile, Google Keep or any similar software.

A possible solution is to first detect if the reply box has some text. If yes, then the page shouldn't be refreshed. A message can pop up saying "There are new posts. Do you want to load them?" If the user sees this message, they will become aware and first copy the text in the reply box, and then reload the page.

Automatic loading of new posts can continue if the reply box is empty.
 
  • #10
Frequent Ctrl+A Ctrl+C is a good workaround as long as you remember to do it often. It's also been suggested in another thread that the editor box's "undo" button (or Ctrl+Z) might restore the LaTeX if you do that immediately after the corruption occurs (I haven't been able to test that myself yet). But of course it would be nice if the problem didn't occur in the first place.

I don't know how MathJax works, but is there a way of protecting part of a web-page with mark-up that tells MathJax "ignore this part"?
 
  • Like
Likes   Reactions: etotheipi

Similar threads

  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 3 ·
Replies
3
Views
3K