Difference Between Tex & iTex - When to Use?

  • Thread starter Thread starter g.lemaitre
  • Start date Start date
Click For Summary
The discussion clarifies the difference between [tex] and [itex] in LaTeX formatting. [itex] is intended for inline equations, while [tex] is used for standalone formulas. The layout differs, with [itex] rendering more compactly without additional newlines, making it suitable for inline use. Conversely, [tex] adds newlines, which can disrupt the flow of inline text. For more details, users are encouraged to consult LaTeX manuals on inline equations.
g.lemaitre
Messages
267
Reaction score
2
what's the difference between and ?<br /> <br /> when should i use one and not the other. <br /> <br /> thanks
 
Physics news on Phys.org
Itex is for use in a line of text (Inline TEX) while tex is for use for formulae on their own line. There are some differences in layout - for example \sum_1^n renders as \sum_1^n in itex tags and as \sum_1^n in tex tags. If you 'quote' my post you'll see there are no newlines there - the tex tags added them. Things like multiline formulae (e.g. \begin{eqnarray}x&=&1+2\\&=&3\end{eqnarray}) look silly inline, but don't appear to be forbidden.

In summary, if there's a vertically compact way to render something (fractions as a/b, for example), itex uses that and tex doesn't. Tex adds newlines before and after, and itex doesn't. You might want to read the section on inline equations in latex in a latex manual, which will probably go into more detail.
 
excellent, thanks for the info
 
Hello everyone, I recently revisited Physics Forums after a long hiatus (about 4-5 years) and started catching up on the recent discussions. What immediately struck me—and what inspired this thread—is seeing so many of the exact same user names in the "Latest Posts" section who were just as active when I was last here! To the dedicated, long-term, and continuously active members of this community: What keeps you coming back and contributing regularly after all this time? Is it the joy...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
0
Views
789
  • · Replies 3 ·
Replies
3
Views
769
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
4
Views
4K