Tip on using LaTeX preview at other websites

  • Context: LaTeX 
  • Thread starter Thread starter berkeman
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
SUMMARY

This discussion focuses on the challenges of using LaTeX preview tools for forum posts, specifically highlighting the differences between https://www.quicklatex.com, https://latexeditor.lagrida.com, and https://mathb.in. Users experienced issues with LaTeX rendering, particularly with extra braces being auto-corrected without clear error indication. The discussion emphasizes the importance of using tools that employ MathJax for accurate LaTeX emulation, which is crucial for effective formula editing and previewing in forums like Physics Forums.

PREREQUISITES
  • Understanding of LaTeX syntax and common errors
  • Familiarity with MathJax and its functionality
  • Experience using LaTeX editors like TeXstudio
  • Knowledge of LaTeX rendering differences across platforms
NEXT STEPS
  • Explore the features of TeXstudio for advanced LaTeX editing
  • Learn how to effectively use MathJax for web-based LaTeX rendering
  • Investigate the limitations of LaTeX rendering on various platforms
  • Research best practices for troubleshooting LaTeX errors in online forums
USEFUL FOR

This discussion is beneficial for forum users, LaTeX enthusiasts, and anyone involved in online technical writing who seeks to improve their LaTeX rendering skills and troubleshooting techniques.

berkeman
Admin
Messages
69,327
Reaction score
24,629
I was using an external website to preview my LaTeX for a reply in the forums today, and was very frustrated that my LaTeX rendered just fine at https://www.quicklatex.com but would not render at PF. I must have spent at least 10 minutes trying to figure out what I was doing wrong, and finally checked my LaTeX at https://latexeditor.lagrida.com which flagged an incorrect extra opening brace. It turns out that the first website was auto-correcting my LaTeX error by dimming (greying out) that extra leading brace, and not really flagging it for me as an error.

I send these two URLs to newbies when I PM them hints and tips on how to use LaTeX here at PF, and I'm now going to include this subtlety in the behavior of these two websites.

If you have trouble using the Preview feature to check your LaTeX, you can use a website such as https://www.quicklatex.com/ or https://latexeditor.lagrida.com/ to preview your LaTeX before you post it.
 
Last edited:
  • Like
  • Informative
Likes   Reactions: Greg Bernhardt, FactChecker, fresh_42 and 1 other person
Physics news on Phys.org
Thanks. I updated my list accordingly. The quicklatex editor didn't pass my test either. It doesn't accept my shortcuts without terribly stumbling over the letters, missing about a third of them. I removed it and replaced it by lagrida. Here is another one that works well and is pretty rudimentary: https://mathb.in/

Note: lagrida autoadds the closure of parentheses. If I shortcut \{\} then it becomes \{\}}.
 
  • Like
  • Informative
Likes   Reactions: FactChecker, Dale and berkeman
Thanks fresh. I think I should make the same change in my notes that I send to folks. No reason to cause the same confusion for them that I experienced.
 
  • Like
Likes   Reactions: fresh_42
https://www.quicklatex.com sends its input to a server where it is rendered by unknown software with unspecified ## \LaTeX ## modules and sent back to the user.

https://latexeditor.lagrida.com and mathb.in use MathJax, the same as Physics Forums, which is not actually ## \LaTeX ## at all, it is a system that emulates the ## \LaTeX ## Math module running entirely in the browser. This obviously makes them better for testing markup to be used here,
 
  • Informative
Likes   Reactions: fresh_42
I switched to TeXstudio as soon as I had calculations over several lines. That allows me to really see the result parallel to my source code - as it once was on PF, too, I may add! It is awful to code complicated formulas without checking the result in the same medium, esp. if you regularly use \sin\left(\dfrac{5}{2}x\right) instead of sin \frac {5x} 2. I sometimes even switch to TeXstudio in the middle of writing if I note that error tracing takes longer than typing.

I think websites all use MathJax because there is no way for the compilation step in a web dialogue. Yet, SE is closer to LaTeX than PF. # is faster to type on my German keyboard than $ so it's ok for me, however, I don't understand why we do not use $ as on SE.

The lack of many LaTeX symbols is more disturbing, e.g.
https://www.physicsforums.com/threads/a-pi-question.1064916/#post-7111110
 
Last edited:
  • Like
Likes   Reactions: dextercioby and berkeman

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 69 ·
3
Replies
69
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
11
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K