LaTex question - keeping variables on the line

  • Context: LaTeX 
  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
  • Tags Tags
    Latex Line Variables
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
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 [tex]n > 0[/tex] there exists a base [tex]B > 1[/tex] so that [tex]n[/tex] is palandromic when written in base [tex]B[/tex]..
 
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 [itex]3x^2- 2x[/itex], [itex]\frac{3}{4}[/itex] and [itex]\sqrt{x^2+ y^2+ z^2}[/itex]
but "tex" for [tex]3x^2- 2x[/tex], [tex]\frac{3}{4}[/tex] and [tex]\sqrt{x^2+ y^2+ z^2}[/tex]

I prefer to put "tex" on separate lines:
[tex]3x^2- 2x[/tex]
[tex]\frac{3}{4}[/tex]
[tex]\sqrt{x^2+ y^2+ z^2}[/tex]