Help Posting LaTeX on the Forums

  • Thread starter Thread starter Ascendant0
  • Start date Start date
  • Tags Tags
    Forum Latex
AI Thread Summary
To post LaTeX on the forums, users should use the correct delimiters: either $$ for display math or ## for inline math. If LaTeX does not render correctly in the preview, it may be necessary to refresh the page, especially if no other LaTeX expressions are present. MathJax is the interpreter used on the forums, which can differ from standard LaTeX syntax. Users are encouraged to check the forum's help links for guidance and to observe how others format their posts. Following these steps should resolve common issues with posting LaTeX.
Ascendant0
Messages
175
Reaction score
38
I'm trying to learn LaTeX, and to use it here on the forums, but having a problem posting it. In TeXworks, I'm figuring it out, no problem, pretty simple. However, I apply LaTeX here, and when I hit "Preview", it just shows up as whatever I write, rather than the math symbols.

I went to a couple links on these forums, and neither helped. One link (https://www.physicsforums.com/help/latexhelp/) says to simply put $$ or ## before and after the code. I do that, doesn't work.

Another link from the forums (https://www.physicsforums.com/misc/howtolatex.pdf) indicates instead to use before and after. Tried that as well, hit preview, and still doesn&#039;t show up correctly.<br /> <br /> What am I missing here? I&#039;m trying to do what is indicated in the links on these forums, but none of it seems to work correctly. Some help would be greatly appreciated, as I&#039;m sure it&#039;s something really basic that I&#039;m overlooking.
 
Physics news on Phys.org
If your LaTex does not get interpreted, you might need to reload the tab. LaTex often does not get loaded if there was no need for it in the original tab. Then try to Preview again.
 
  • Like
Likes ric peregrino and Ascendant0
The web server version of LaTeX is MathJax because we need an interpreter, not a compiler on the internet. That's why @FactChecker said that you might need to reload your page at times to force the interpreter to interpret.

MathJax can differ from LaTeX, depending on which version is implemented. E.g. we use ## for inline LaTeX tags instead of $, whereas $$ is used the same way for separated formulas. Other websites have other transitions. StackExchange for instance is rather close to the original LaTeX syntax, others are even further away. So https://www.physicsforums.com/help/latexhelp/ and https://detexify.kirelabs.org/symbols.html are actually a good start to writing formulas here. You can also use the reply button to look at how others wrote their posts, but a) don't mess up threads by mistakenly hitting the post reply button, and b) clear the cache (delete draft button, or manually delete the edit box).

If you want to learn LaTeX then I recommend (point 5):
https://www.physicsforums.com/threads/how-to-use-the-w-in-www.1062388/

E.g. I write my texts in TexStudio with the help of a large AHK script. If I want it posted on PF, I mark my entire text, copy it in a text editor (https://www.textpad.com/home), replace $ by ##, and then #### by $$. This does 90% of necessary reformatting and leaves only things like section commands, typeset changes like italics or item lists un-reformatted.
 
Last edited:
  • Like
Likes dextercioby, Ascendant0 and FactChecker
Ascendant0 said:
Another link from the forums (https://www.physicsforums.com/misc/howtolatex.pdf) indicates instead to use before and after. Tried that as well, hit preview, and still doesn&#039;t show up correctly.<br />
<br /> You can use and delimiters (for standalone math expressions) or and (for inline) delimiters, but I prefer to use pairs of $$ or ## delimiters since they&#039;re quicker to type. As already mentioned, if there are no other LaTeX (really MathJax) expressions on the page, you&#039;ll need to refresh the page to get them interpreted.
 
Thanks so much guys, I appreciate the help. I'm trying it again, and now it's working like it should. I knew it had to be something really simple, lol $$ stuff/overotherstuff $$
 
Short version: it should work if there's already LaTeX on the page. If there isn't any, enter some LaTeX, preview, and reload the page while in preview mode and the parser should wake up. That didn't used to work if you were writing a new thread, so I recommended drafting your post as a reply to some random thread and then pasting it into a new thread - I think this has now been fixed and the reload-in-preview trick works, but just in case.
 
  • Like
Likes mfb, Ascendant0 and fresh_42

Similar threads

Replies
57
Views
3K
Replies
11
Views
2K
Replies
10
Views
180
Replies
4
Views
3K
Replies
4
Views
2K
Replies
3
Views
3K
Replies
3
Views
3K
Replies
9
Views
2K
Replies
7
Views
2K
Back
Top