Why Isn't My LaTeX Code Displaying Formula?

  • Context: LaTeX 
  • Thread starter Thread starter swmmr1928
  • Start date Start date
  • Tags Tags
    Code Formula Latex
Click For Summary
SUMMARY

The discussion centers on troubleshooting LaTeX code that fails to display mathematical formulas correctly. The primary issue identified was the incorrect closing tags for inline LaTeX, specifically using "\itex" instead of "/itex". Users are advised to utilize "##" for inline LaTeX and "$$" for standalone LaTeX to ensure proper rendering. The corrected code snippets provided demonstrate the successful display of equations after addressing the tag errors.

PREREQUISITES
  • Familiarity with LaTeX syntax and formatting
  • Understanding of inline and display math environments in LaTeX
  • Basic knowledge of mathematical notation and equations
  • Experience with troubleshooting code in LaTeX
NEXT STEPS
  • Learn proper LaTeX syntax for inline and display math environments
  • Explore LaTeX packages that enhance mathematical typesetting
  • Investigate common LaTeX errors and their solutions
  • Practice writing complex equations in LaTeX for better proficiency
USEFUL FOR

Students, educators, and researchers who frequently use LaTeX for typesetting mathematical documents and need to troubleshoot rendering issues effectively.

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}) ##

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

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K