Putting a superscript before a variable or expression ....

  • Context: MHB 
  • Thread starter Thread starter Math Amateur
  • Start date Start date
  • Tags Tags
    Expression Variable
Click For Summary
SUMMARY

The discussion focuses on placing a superscript before a variable or expression in LaTeX, specifically in the context of set theory as referenced by Just and Weese. The recommended approach is to use the syntax $^{A}B$, ensuring to include empty braces before the superscript to prevent it from attaching to the preceding element. Additionally, to improve the visual spacing of the superscript, a negative space command (\!) can be inserted after the superscript, as demonstrated in the expressions involving the membership symbol $\in$.

PREREQUISITES
  • Familiarity with LaTeX syntax
  • Understanding of mathematical notation and expressions
  • Knowledge of set theory concepts
  • Experience with typesetting mathematical documents
NEXT STEPS
  • Research LaTeX commands for superscripts and subscripts
  • Learn about negative space in LaTeX for improved formatting
  • Explore advanced LaTeX packages for mathematical typesetting
  • Study examples of Cartesian products in set theory
USEFUL FOR

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

Math Amateur
Gold Member
MHB
Messages
3,920
Reaction score
48
Can someone help with the issue/problem of placing a superscript before a variable or expression ... as Just and Weese do in their book on Set Theory ... in the expression for a Cartesian Product as follows:

View attachment 7536Hope that someone can help ...

Peter
 
Physics news on Phys.org
There are various packages that can do this and more sophisticated things, but I think in this case the easiest is: $^{A}B$. (Right-click on formula to see $\LaTeX$ source.)
 
You may need to add an empty pair of braces before the superscript, like this: {}^{A}B. Otherwise, the superscript will attach itself to the previous element in the formula. Compare

$f\in ^I\left( \bigcup \{A_i:i\in I\}\right)$ with $f\in {}^I \left( \bigcup \{A_i:i\in I\}\right)$.

In the first case, the superscript $I$ has attached itself to the $\in$ symbol. Even when the braces are inserted, the superscript looks as though it is suspended halfway between the symbols on either side. You can eliminate that by inserting a negative space (given in TeX by \!) after the superscript, to get

$f\in {}^I \!\left( \bigcup \{A_i:i\in I\}\right)$.
 
Opalg said:
You may need to add an empty pair of braces before the superscript, like this: {}^{A}B. Otherwise, the superscript will attach itself to the previous element in the formula. Compare

$f\in ^I\left( \bigcup \{A_i:i\in I\}\right)$ with $f\in {}^I \left( \bigcup \{A_i:i\in I\}\right)$.

In the first case, the superscript $I$ has attached itself to the $\in$ symbol. Even when the braces are inserted, the superscript looks as though it is suspended halfway between the symbols on either side. You can eliminate that by inserting a negative space (given in TeX by \!) after the superscript, to get

$f\in {}^I \!\left( \bigcup \{A_i:i\in I\}\right)$.
Thanks to Krylov and Opalg for the help ...

Much appreciated ..

Peter
 

Similar threads

Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K