LaTeX LaTex question - keeping variables on the line

AI Thread Summary
In the discussion, users explore how to manage the display of variables in LaTeX expressions, specifically addressing the issue of variables appearing slightly raised above the surrounding text. The conversation highlights the use of the "itex" tag for inline expressions, which maintains alignment but can lead to issues with more complex expressions. Users compare this with the "tex" tag, which is preferred for displaying equations on separate lines. The preference for using "tex" for clarity in formatting is noted, along with an acknowledgment of the utility of the "itex" tag for simpler expressions. The thread emphasizes the importance of choosing the right tag to achieve the desired visual effect in mathematical typesetting.
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,602
Is there a way to keep variables in LaTex expressions from being displayed slightly raised above the line of text that surrounds them? Or am I doing something inadvertently that causes some of them to pop-up from the line? For example, the second "n", in the following:

a. Prove or disprove the following statement: For each integer n > 0 there exists a base B > 1 so that n is palandromic when written in base B..
 
Physics news on Phys.org
Using [ itex ] and [ /itex ] (without the spaces) for shorter expressions will keep them in line- but can cause problems with "high" expressions.

For example, I am using "itex" for 3x^2- 2x, \frac{3}{4} and \sqrt{x^2+ y^2+ z^2}
but "tex" for 3x^2- 2x, \frac{3}{4} and \sqrt{x^2+ y^2+ z^2}

I prefer to put "tex" on separate lines:
3x^2- 2x
\frac{3}{4}
\sqrt{x^2+ y^2+ z^2}
 
Thank you. I didn't know about the "itex" tag.
 

Similar threads

Back
Top