Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Tex v itex

  1. Jul 30, 2012 #1
    what's the difference between [tex] and [itex]?

    when should i use one and not the other.

  2. jcsd
  3. Jul 30, 2012 #2


    User Avatar
    Science Advisor

    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 [itex]\sum_1^n[/itex] in itex tags and as [tex]\sum_1^n[/tex] 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. [itex]\begin{eqnarray}x&=&1+2\\&=&3\end{eqnarray}[/itex]) 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.
  4. Jul 30, 2012 #3
    excellent, thanks for the info
  5. Jul 30, 2012 #4


    User Avatar

    Staff: Mentor

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook