Is there a way to stop the vertical spread of multiple super- and sub-scripts?
up vote
12
down vote
favorite
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$
, the 2 and 6 were aligned, as were the 4 and 8 (obviously, I'd expect to do this with a macro rather than the super- and subscript commands). As a bonus, it'd be nice to be able to control whether or not this appeared like $x^{26}_{48}$
or $x^{2phantom{4}6}_{phantom{2}4phantom{6}8}$
. And it would be nice to truly be able to do this incrementally, so that each subscript or superscript could be added without having to know all the previous ones (useful for adding stuff via macros). Simply writing $x^2_4{}^6_8$
wouldn't work as the latter super and subscripts wouldn't know the difference between x and X and ∏.
(see also non-kludgey left subscripts)
math-mode positioning subscripts superscripts
add a comment |
up vote
12
down vote
favorite
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$
, the 2 and 6 were aligned, as were the 4 and 8 (obviously, I'd expect to do this with a macro rather than the super- and subscript commands). As a bonus, it'd be nice to be able to control whether or not this appeared like $x^{26}_{48}$
or $x^{2phantom{4}6}_{phantom{2}4phantom{6}8}$
. And it would be nice to truly be able to do this incrementally, so that each subscript or superscript could be added without having to know all the previous ones (useful for adding stuff via macros). Simply writing $x^2_4{}^6_8$
wouldn't work as the latter super and subscripts wouldn't know the difference between x and X and ∏.
(see also non-kludgey left subscripts)
math-mode positioning subscripts superscripts
4
+1 this would be really useful for writing tensors in Einstein notation. I've thought about trying to figure out a way but never got around to it, so I'll be interested to see what answers come up.
– David Z
Jul 27 '10 at 10:48
add a comment |
up vote
12
down vote
favorite
up vote
12
down vote
favorite
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$
, the 2 and 6 were aligned, as were the 4 and 8 (obviously, I'd expect to do this with a macro rather than the super- and subscript commands). As a bonus, it'd be nice to be able to control whether or not this appeared like $x^{26}_{48}$
or $x^{2phantom{4}6}_{phantom{2}4phantom{6}8}$
. And it would be nice to truly be able to do this incrementally, so that each subscript or superscript could be added without having to know all the previous ones (useful for adding stuff via macros). Simply writing $x^2_4{}^6_8$
wouldn't work as the latter super and subscripts wouldn't know the difference between x and X and ∏.
(see also non-kludgey left subscripts)
math-mode positioning subscripts superscripts
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$
, the 2 and 6 were aligned, as were the 4 and 8 (obviously, I'd expect to do this with a macro rather than the super- and subscript commands). As a bonus, it'd be nice to be able to control whether or not this appeared like $x^{26}_{48}$
or $x^{2phantom{4}6}_{phantom{2}4phantom{6}8}$
. And it would be nice to truly be able to do this incrementally, so that each subscript or superscript could be added without having to know all the previous ones (useful for adding stuff via macros). Simply writing $x^2_4{}^6_8$
wouldn't work as the latter super and subscripts wouldn't know the difference between x and X and ∏.
(see also non-kludgey left subscripts)
math-mode positioning subscripts superscripts
math-mode positioning subscripts superscripts
edited Apr 13 '17 at 12:35
Community♦
1
1
asked Jul 27 '10 at 10:24
Loop Space
111k29297600
111k29297600
4
+1 this would be really useful for writing tensors in Einstein notation. I've thought about trying to figure out a way but never got around to it, so I'll be interested to see what answers come up.
– David Z
Jul 27 '10 at 10:48
add a comment |
4
+1 this would be really useful for writing tensors in Einstein notation. I've thought about trying to figure out a way but never got around to it, so I'll be interested to see what answers come up.
– David Z
Jul 27 '10 at 10:48
4
4
+1 this would be really useful for writing tensors in Einstein notation. I've thought about trying to figure out a way but never got around to it, so I'll be interested to see what answers come up.
– David Z
Jul 27 '10 at 10:48
+1 this would be really useful for writing tensors in Einstein notation. I've thought about trying to figure out a way but never got around to it, so I'll be interested to see what answers come up.
– David Z
Jul 27 '10 at 10:48
add a comment |
1 Answer
1
active
oldest
votes
up vote
14
down vote
accepted
My answer to the linked question on "non-kludgy left index" also works here. Use the tensor package. The tensor
form leaves phantom spaces, while the tensor*
form compresses everything.
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
14
down vote
accepted
My answer to the linked question on "non-kludgy left index" also works here. Use the tensor package. The tensor
form leaves phantom spaces, while the tensor*
form compresses everything.
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
add a comment |
up vote
14
down vote
accepted
My answer to the linked question on "non-kludgy left index" also works here. Use the tensor package. The tensor
form leaves phantom spaces, while the tensor*
form compresses everything.
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
add a comment |
up vote
14
down vote
accepted
up vote
14
down vote
accepted
My answer to the linked question on "non-kludgy left index" also works here. Use the tensor package. The tensor
form leaves phantom spaces, while the tensor*
form compresses everything.
My answer to the linked question on "non-kludgy left index" also works here. Use the tensor package. The tensor
form leaves phantom spaces, while the tensor*
form compresses everything.
answered Jul 27 '10 at 17:54
Willie Wong
12.5k45583
12.5k45583
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
add a comment |
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
Should've checked CTAN myself ;-) +1
– David Z
Jul 27 '10 at 18:40
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
It is a bit hard to find. (Which keywords would one search for?) I came across the package a short while back by accident when I was looking for some way to typeset nuclides.
– Willie Wong
Jul 27 '10 at 19:09
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
This looks just right! Thanks.
– Loop Space
Jul 29 '10 at 10:48
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f336%2fis-there-a-way-to-stop-the-vertical-spread-of-multiple-super-and-sub-scripts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
+1 this would be really useful for writing tensors in Einstein notation. I've thought about trying to figure out a way but never got around to it, so I'll be interested to see what answers come up.
– David Z
Jul 27 '10 at 10:48