Align subscript and superscript in math mode
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I'm having issues with aligning superscript with subscript in math mode. My MWE is:
% arara: xelatex
documentclass[preview,8pt,varwidth=true]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[ItalicFont=CMU Bright Roman, BoldFont=CMU Bright Roman,BoldItalicFont=CMU Bright Roman]CMU Bright Roman
begindocument
thispagestyleempty
$v_alphabeta^star$
enddocument
If you take a closer look, you'll see that the star is pushed to the left slightly.
horizontal-alignment align subscripts superscripts
add a comment |Â
up vote
3
down vote
favorite
I'm having issues with aligning superscript with subscript in math mode. My MWE is:
% arara: xelatex
documentclass[preview,8pt,varwidth=true]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[ItalicFont=CMU Bright Roman, BoldFont=CMU Bright Roman,BoldItalicFont=CMU Bright Roman]CMU Bright Roman
begindocument
thispagestyleempty
$v_alphabeta^star$
enddocument
If you take a closer look, you'll see that the star is pushed to the left slightly.
horizontal-alignment align subscripts superscripts
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm having issues with aligning superscript with subscript in math mode. My MWE is:
% arara: xelatex
documentclass[preview,8pt,varwidth=true]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[ItalicFont=CMU Bright Roman, BoldFont=CMU Bright Roman,BoldItalicFont=CMU Bright Roman]CMU Bright Roman
begindocument
thispagestyleempty
$v_alphabeta^star$
enddocument
If you take a closer look, you'll see that the star is pushed to the left slightly.
horizontal-alignment align subscripts superscripts
I'm having issues with aligning superscript with subscript in math mode. My MWE is:
% arara: xelatex
documentclass[preview,8pt,varwidth=true]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[ItalicFont=CMU Bright Roman, BoldFont=CMU Bright Roman,BoldItalicFont=CMU Bright Roman]CMU Bright Roman
begindocument
thispagestyleempty
$v_alphabeta^star$
enddocument
If you take a closer look, you'll see that the star is pushed to the left slightly.
horizontal-alignment align subscripts superscripts
horizontal-alignment align subscripts superscripts
edited 9 mins ago
Bernard
161k766192
161k766192
asked 5 hours ago
MarkoP
856
856
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
No, it's not pushed to the left; the visual effect depends on how alpha
sits in its bounding box. Read in the manual of mathspec
about the use of "
.
With a proper math font, the subscript would probably be pushed a bit left, to take into account the shape of the letter âÂÂvâÂÂ, but mathspec
can't do that. It's just a hack, notwithstanding its cleverness.
documentclass[border=4]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[
ItalicFont=CMU Bright Roman,
BoldFont=CMU Bright Roman,
BoldItalicFont=CMU Bright Roman
]CMU Bright Roman
begindocument
$v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
$"v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
fboxsep=0pt fboxrule=0.1pt
fbox$star$ fbox$alpha$
enddocument
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
@MarkoP Something like^,star
or, for finer control^mkern2mu star
. Experiment what's best.
â egreg
4 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
No, it's not pushed to the left; the visual effect depends on how alpha
sits in its bounding box. Read in the manual of mathspec
about the use of "
.
With a proper math font, the subscript would probably be pushed a bit left, to take into account the shape of the letter âÂÂvâÂÂ, but mathspec
can't do that. It's just a hack, notwithstanding its cleverness.
documentclass[border=4]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[
ItalicFont=CMU Bright Roman,
BoldFont=CMU Bright Roman,
BoldItalicFont=CMU Bright Roman
]CMU Bright Roman
begindocument
$v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
$"v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
fboxsep=0pt fboxrule=0.1pt
fbox$star$ fbox$alpha$
enddocument
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
@MarkoP Something like^,star
or, for finer control^mkern2mu star
. Experiment what's best.
â egreg
4 hours ago
add a comment |Â
up vote
4
down vote
accepted
No, it's not pushed to the left; the visual effect depends on how alpha
sits in its bounding box. Read in the manual of mathspec
about the use of "
.
With a proper math font, the subscript would probably be pushed a bit left, to take into account the shape of the letter âÂÂvâÂÂ, but mathspec
can't do that. It's just a hack, notwithstanding its cleverness.
documentclass[border=4]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[
ItalicFont=CMU Bright Roman,
BoldFont=CMU Bright Roman,
BoldItalicFont=CMU Bright Roman
]CMU Bright Roman
begindocument
$v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
$"v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
fboxsep=0pt fboxrule=0.1pt
fbox$star$ fbox$alpha$
enddocument
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
@MarkoP Something like^,star
or, for finer control^mkern2mu star
. Experiment what's best.
â egreg
4 hours ago
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
No, it's not pushed to the left; the visual effect depends on how alpha
sits in its bounding box. Read in the manual of mathspec
about the use of "
.
With a proper math font, the subscript would probably be pushed a bit left, to take into account the shape of the letter âÂÂvâÂÂ, but mathspec
can't do that. It's just a hack, notwithstanding its cleverness.
documentclass[border=4]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[
ItalicFont=CMU Bright Roman,
BoldFont=CMU Bright Roman,
BoldItalicFont=CMU Bright Roman
]CMU Bright Roman
begindocument
$v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
$"v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
fboxsep=0pt fboxrule=0.1pt
fbox$star$ fbox$alpha$
enddocument
No, it's not pushed to the left; the visual effect depends on how alpha
sits in its bounding box. Read in the manual of mathspec
about the use of "
.
With a proper math font, the subscript would probably be pushed a bit left, to take into account the shape of the letter âÂÂvâÂÂ, but mathspec
can't do that. It's just a hack, notwithstanding its cleverness.
documentclass[border=4]standalone
usepackageamsmath
usepackagemathspec
usepackagefontspec
setmathfont(Greek,Digits,Latin)CMU Bright Roman
usepackage[normalweight=Light,largedelims=true]mdsymbol
setmathrm[
ItalicFont=CMU Bright Roman,
BoldFont=CMU Bright Roman,
BoldItalicFont=CMU Bright Roman
]CMU Bright Roman
begindocument
$v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
$"v_smashvrule width 0.1pt height 1cmkern-0.1ptalphabeta^star$
fboxsep=0pt fboxrule=0.1pt
fbox$star$ fbox$alpha$
enddocument
answered 5 hours ago
egreg
694k8518443101
694k8518443101
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
@MarkoP Something like^,star
or, for finer control^mkern2mu star
. Experiment what's best.
â egreg
4 hours ago
add a comment |Â
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
@MarkoP Something like^,star
or, for finer control^mkern2mu star
. Experiment what's best.
â egreg
4 hours ago
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
Thanks for your response! And what would be the way to push the star to the right, so that left point of the star is not above the letter "v"?
â MarkoP
4 hours ago
@MarkoP Something like
^,star
or, for finer control ^mkern2mu star
. Experiment what's best.â egreg
4 hours ago
@MarkoP Something like
^,star
or, for finer control ^mkern2mu star
. Experiment what's best.â egreg
4 hours ago
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458486%2falign-subscript-and-superscript-in-math-mode%23new-answer', 'question_page');
);
Post as a guest
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
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
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