LaTeX LaTeX Issues: Guide to Solve Formulae Writing Problems

  • Thread starter Thread starter exponent137
  • Start date Start date
Click For Summary
SUMMARY

This discussion addresses issues related to writing formulae in LaTeX on the Physics Forums platform. Users report a bug where editing or previewing posts can cause LaTeX source to be replaced with incorrect math symbols, particularly when multiple users are replying simultaneously. The discussion highlights the use of specific LaTeX matrices, including the CKM (Cabibbo-Kobayashi-Maskawa) and PMNS (Pontekorvo-Maki-Nakagawa-Sakata) matrices, and suggests workarounds such as using Firefox for stability and copying text before posting. Users also recommend using external editors like Overleaf for complex LaTeX work.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Understanding of the CKM and PMNS mixing matrices
  • Basic knowledge of web browser functionalities and issues
  • Experience with online forum posting and editing
NEXT STEPS
  • Research LaTeX error handling techniques in online forums
  • Learn about the CKM and PMNS matrices in particle physics
  • Explore the use of Overleaf for collaborative LaTeX editing
  • Investigate browser compatibility issues with LaTeX rendering
USEFUL FOR

Physics students, researchers, and forum users who frequently write and edit LaTeX formulae, as well as developers looking to improve online LaTeX rendering experiences.

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 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 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 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 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 etotheipi

Similar threads

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