LaTeX Preview LaTeX: Tips to Check Code Before Posting

  • Thread starter Thread starter topsquark
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
To preview LaTeX code before posting, users must refresh the page to load the MathJax resource, which is not available until LaTeX is used on the page. It's crucial to copy all written content before refreshing, as a bug may cause LaTeX to render incorrectly in the edit window. After refreshing, the preview function should work correctly for rendering LaTeX. For longer posts, using external tools like mathb.in is recommended, followed by a search and replace of symbols for compatibility. Properly managing these steps ensures a smoother posting experience with LaTeX.
topsquark
Science Advisor
Homework Helper
Insights Author
MHB
Messages
2,020
Reaction score
843
Just a quick question... I haven't been able to figure out a way to preview my posts before I post them. Is there a way to check my LaTeX code on site before I actually post?

Thanks!
-Dan
 
Physics news on Phys.org
This button to the top right

1660653379810.png


You probably have to reload the page if MathJax is not loaded (ie, nobody has yet used it on that page).
 
  • Like
Likes malawi_glenn, topsquark and FactChecker
The MathJax resource is not loaded if the page does not have any ##\LaTeX##. When you are creating a new thread, as @Orodruin has said above, you need to refresh the page once to load the resource, and thereafter the preview will render the ##\LaTeX##. Before refreshing the page, however, make sure you copy everything you have written. There is a bug that renders some of the ##\LaTeX## in the edit window itself after you refresh the page, and then if you click the Preview button, everything will be garbled.
 
  • Informative
  • Like
Likes topsquark and berkeman
When I want to write longer things, I use mathb.in
Then I do a search and replace all "$" with "##"
 
  • Like
Likes dextercioby and Wrichik Basu

Similar threads

Replies
4
Views
2K
Replies
3
Views
3K
Replies
9
Views
2K
Replies
23
Views
4K
Replies
5
Views
3K
Replies
8
Views
3K
Replies
4
Views
3K
Replies
12
Views
3K
Back
Top