Align subscript and superscript in math mode

The name of the pictureThe name of the pictureThe name of the pictureClash 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.










share|improve this question



























    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.










    share|improve this question

























      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.










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 mins ago









      Bernard

      161k766192




      161k766192










      asked 5 hours ago









      MarkoP

      856




      856




















          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


          enter image description here






          share|improve this answer




















          • 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










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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


          enter image description here






          share|improve this answer




















          • 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














          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


          enter image description here






          share|improve this answer




















          • 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












          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


          enter image description here






          share|improve this answer












          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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
















          • 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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery