LaTex question - keeping variables on the line

  • Context: LaTeX 
  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
  • Tags Tags
    Latex Line Variables
Click For Summary
SUMMARY

The discussion focuses on the use of LaTeX for inline mathematical expressions and the issue of variable positioning. Users report that the "itex" tag can keep variables inline but may cause formatting issues with complex expressions. In contrast, the "tex" tag is preferred for displaying more complex equations on separate lines. The conversation highlights the importance of choosing the appropriate tag based on the desired presentation of mathematical content.

PREREQUISITES
  • Understanding of LaTeX syntax and commands
  • Familiarity with inline versus block mathematical expressions
  • Knowledge of the "itex" and "tex" tags in LaTeX
  • Basic principles of mathematical formatting in typesetting
NEXT STEPS
  • Explore advanced LaTeX formatting techniques for inline expressions
  • Learn about the differences between "itex" and "tex" tags in LaTeX
  • Research best practices for displaying complex mathematical equations in LaTeX
  • Investigate troubleshooting common LaTeX formatting issues
USEFUL FOR

Mathematicians, educators, students, and anyone involved in typesetting mathematical documents using LaTeX.

Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,605
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]
 
Thank you. I didn't know about the "itex" tag.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • Sticky
  • · Replies 60 ·
3
Replies
60
Views
190K
  • · Replies 15 ·
Replies
15
Views
2K