0

I would like to express a superscript and a subscript in the same vertical space. For example, consider a variable called X with a subscript 1 that is squared.

I have searched for examples of what I want to do but cannot find anything close.

X<sub>1</sub><sup>2</sup>

The above is the best I can do, but I want the 1 and the 2 aligned vertically.

Does anyone know if this is possible and, if so, how to do it?

Thanks in advance.

PS: Word processors call this overstrike, but most search hits treat overstrikes as strike throughs.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Nathaniel10
0

You can use CSS to move the second one to the left:

<style>
sup {margin-left: -5px;} // or whatever suits
</style>

Edited by hericles: made a small mistake!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.