Plain latex code not working in Physics forum

Click For Summary

Discussion Overview

The discussion revolves around issues related to using LaTeX code generated from LYX in the Physics Forums. Participants explore the compatibility of LaTeX commands with the forum's MathJax implementation, focusing on how to properly format and submit LaTeX code for mathematical expressions.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant describes their experience exporting LaTeX code from LYX and encountering issues when pasting it into the forum.
  • Another participant suggests that LaTeX code generated by Mathematica works if enclosed in double dollar signs.
  • A different participant references a thread in the Math and LaTeX forum that may provide guidance on formatting requirements.
  • Some participants express that MathJax does not support certain LaTeX commands used for complete documents, such as \documentclass and \usepackage.
  • There is a mention of the cancel package and its usage for striking out terms, with some participants discussing its implications humorously.

Areas of Agreement / Disagreement

Participants express differing views on the compatibility of LaTeX commands with MathJax, indicating that there is no consensus on the best approach to format LaTeX code for the forum.

Contextual Notes

Limitations include the specific LaTeX commands that MathJax supports, which may not encompass all commands used in complete LaTeX documents. Participants also note the need for proper formatting to ensure expressions are recognized by the forum's system.

Pushoam
Messages
961
Reaction score
53
I have written a solution of problem in LYX.
I exported the lyx code as latex plain code.
I opened the latex plain code in Tex studio and copied it and pasted it in Physics forum
and it didn't work.
Can anyone please tell me what should I do?
Should I again type the latex code here i.e.Physics Forum?
I am attaching the Latex code and corresponding pdf.

The tex file is not accepted here.So, attaching images.
first1.png
2nd.png
first.png
 

Attachments

  • second.png
    second.png
    33.6 KB · Views: 627
  • 3rd.png
    3rd.png
    31.6 KB · Views: 594
Physics news on Phys.org
Have you looked at the first thread in the Math and Latex forum? It should explain what you need to do.

Usually we must use double # or double $ before and after each expression so that mathjax can identify it.
 
Last edited:
  • Like
Likes   Reactions: Pushoam
I don't think MathJax supports LaTeX commands that are associated with creating complete documents: \documentclass, \usepackage, etc. (which I see in your screenshots but are not in the list of supported commands:

http://docs.mathjax.org/en/latest/tex.html#supported-latex-commands

MathJax is intended for including individual equations in HTML pages, not for producing/presenting complete LaTeX documents.
 
  • Like
Likes   Reactions: Pushoam
jtbell said:
I don't think MathJax supports LaTeX commands that are associated with creating complete documents: \documentclass, \usepackage, etc. (which I see in your screenshots but are not in the list of supported commands:

http://docs.mathjax.org/en/latest/tex.html#supported-latex-commands

MathJax is intended for including individual equations in HTML pages, not for producing/presenting complete LaTeX documents.

##\require{cancel}\cancel{ \text{Buffu} } ## I am no expert but I can use cancel package by using command ##\text{\require}##.
 
  • Like
Likes   Reactions: jedishrfu
Wow! That's one way of banning yourself in text with a flair while not really banning yourself from PF.

Pretty cool, I didn't notice that tag before. I guess you'd use it to cancel terms and factors.
 
  • Like
Likes   Reactions: Buffu
jedishrfu said:
Wow! That's one way of banning yourself in text with a flair while not really banning yourself from PF.

Pretty cool, I didn't notice that tag before. I guess you'd use it to cancel terms and factors.
'
I did not know strikeout means banned from PF.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K