Plain latex code not working in Physics forum

6 replies · 3K views · last reply
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.
Rendered LaTeX page showing equations (1) to (4) for Gauss's law for B applied to a hemispherical volume, with a 3D diagram of a hemisphere whose flat circular base is shaded red.
Typeset PDF page with a problem about surface integrals of B.da over a circular surface and a curved surface for a current flowing anticlockwise, comparing equation (5) with equation (6), ending with the question 'Where is the mistake?'
Screenshot of the TeXstudio editor showing LaTeX source for a Green's theorem problem, with \nabla.\mathbf{B}=0 and \mathbf{\int_{S}B.\mathbf{d}a=\mathsf{0}} highlighted in orange.
 
Attachments
  • Screenshot of a LaTeX source file open in TeXstudio, showing surface integral equations for a circular base and curved surface, with notes on the positive surface normal directions.
    second.png
    33.6 KB · Views: 654
  • Screenshot of a LaTeX source file open in TeXstudio, showing equations for a surface integral of magnetic field B over the circular base and curved surface, with a "Where is the mistake?" line and \end{document}.
    3rd.png
    31.6 KB · Views: 626
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.