LaTeX Why Isn't My LaTeX Code Displaying Formula?

AI Thread Summary
The discussion centers on troubleshooting LaTeX code related to equations in a physics context. The original poster presents equations for pressure (P), internal energy (U), and their relationships with the partition function (Q). A key issue identified is the incorrect formatting of closing tags in the LaTeX code, which prevented proper rendering. The suggestion to use different tags for inline and standalone LaTeX is made, leading to a successful correction of the display issue. The conversation emphasizes the importance of proper syntax in LaTeX for accurate representation of mathematical expressions.
swmmr1928
Messages
55
Reaction score
0
in this post

Is there a problem with my code?
 
Physics news on Phys.org
Here is part of what you posted in the thread you linked to:
swmmr1928 said:

Homework Equations


[itеx]P=-\frac{\partial{U}} {\partial{V}}[/itеx]
[itеx]P=kT(\frac{\partial{ln Q}}{\partial V})[/itеx]
[itеx]U=kT^2(\frac{\partial{ln Q}}{\partial V})[/itеx]

The Attempt at a Solution


Code:
 [itеx]\overline{(E-U)(p-\overline{p})}=Cov(E,p)=\overline{E*p}-\overline{E}*\overline{p}=\overline{E*p}-U*\overline{p}[\itеx]

[itеx]\overline{E*p}=?[\itеx]

I think that a couple of your closing itex tags were not formed correctly (\itex instead of /itex), and that caused all of the LaTeX to not render correctly. I find it easier to use
Code:
##
tags for inline LaTeX, and
Code:
$$
for standalone LaTeX.

##P=-\frac{\partial{U}} {\partial{V}}##
##P=kT(\frac{\partial{ln Q}}{\partial V}) ##
## U=kT^2(\frac{\partial{ln Q}}{\partial V}) ##

\overline{(E-U)(p-\overline{p})}=Cov(E,p)=\overline{E*p}-\overline{E}*\overline{p}=\overline{E*p}-U*\overline{p}
 
Last edited:
Thanks that fixed it
 

Similar threads

Replies
9
Views
2K
Replies
23
Views
3K
Replies
3
Views
2K
Replies
13
Views
3K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
8
Views
2K
Replies
1
Views
1K
Replies
3
Views
3K
Back
Top