Aligning limits of multiple summations

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.



beginalign
max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
endalign


enter image description here



As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?










share|improve this question



























    up vote
    2
    down vote

    favorite












    I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.



    beginalign
    max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
    endalign


    enter image description here



    As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.



      beginalign
      max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
      endalign


      enter image description here



      As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?










      share|improve this question















      I have an optimisation problem wherein I have some trouble with the alignment of the limits of consecutive summations.



      beginalign
      max sumlimits_kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
      endalign


      enter image description here



      As you can observe, there seems to be a problem with the alignment of the limits. How can I align them so that the limits appear to be in the same line throughout the equation?







      alignment






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago









      xyz

      32




      32










      asked 5 hours ago









      crypto

      362113




      362113




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          Use a vphantom.



          documentclassarticle
          usepackageamsmath
          begindocument
          beginalign
          max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
          endalign
          enddocument


          enter image description here



          Here is an alternative, however, I am not sure if I would go for it.



          documentclassarticle
          usepackageamsmath
          newcommandclimits[1]limits_strut #1
          begindocument
          beginalign
          max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
          endalign
          enddocument


          enter image description here



          One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.






          share|improve this answer






















          • Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
            – crypto
            5 hours ago










          • @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
            – marmot
            5 hours ago

















          up vote
          1
          down vote













          The adjustlimits command from the mathtools package is designed for this:



          documentclassarticle
          usepackagemathtools% loads `amsmath'
          begindocument
          beginalign
          max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
          endalign
          enddocument


          limits adjustment



          I also added a negative “kern” between the A^k,V_L and the (f,v): Feel free to remove it if you don’t like the result.






          share|improve this answer




















            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f450946%2faligning-limits-of-multiple-summations%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            Use a vphantom.



            documentclassarticle
            usepackageamsmath
            begindocument
            beginalign
            max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            Here is an alternative, however, I am not sure if I would go for it.



            documentclassarticle
            usepackageamsmath
            newcommandclimits[1]limits_strut #1
            begindocument
            beginalign
            max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.






            share|improve this answer






















            • Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
              – crypto
              5 hours ago










            • @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
              – marmot
              5 hours ago














            up vote
            2
            down vote













            Use a vphantom.



            documentclassarticle
            usepackageamsmath
            begindocument
            beginalign
            max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            Here is an alternative, however, I am not sure if I would go for it.



            documentclassarticle
            usepackageamsmath
            newcommandclimits[1]limits_strut #1
            begindocument
            beginalign
            max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.






            share|improve this answer






















            • Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
              – crypto
              5 hours ago










            • @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
              – marmot
              5 hours ago












            up vote
            2
            down vote










            up vote
            2
            down vote









            Use a vphantom.



            documentclassarticle
            usepackageamsmath
            begindocument
            beginalign
            max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            Here is an alternative, however, I am not sure if I would go for it.



            documentclassarticle
            usepackageamsmath
            newcommandclimits[1]limits_strut #1
            begindocument
            beginalign
            max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.






            share|improve this answer














            Use a vphantom.



            documentclassarticle
            usepackageamsmath
            begindocument
            beginalign
            max sumlimits_vphantomA^k,V_L kin Ksumlimits_ain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            Here is an alternative, however, I am not sure if I would go for it.



            documentclassarticle
            usepackageamsmath
            newcommandclimits[1]limits_strut #1
            begindocument
            beginalign
            max sumclimitskin Ksumclimitsain A^k,V_L(f,v)x^k_a
            endalign
            enddocument


            enter image description here



            One can produce even more complicated macros. The danger with those is that you may drown in your own macros and eventually, when you share your TeX files with others, these things will become very cumbersome, especially if your collaborators also have their own macros or very specialized packages.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 5 hours ago

























            answered 5 hours ago









            marmot

            57.3k462124




            57.3k462124











            • Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
              – crypto
              5 hours ago










            • @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
              – marmot
              5 hours ago
















            • Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
              – crypto
              5 hours ago










            • @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
              – marmot
              5 hours ago















            Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
            – crypto
            5 hours ago




            Though the solution seems nice, its a tedious process expecially when we have multiple summations such as those above and also the readability of the code appears reduced.
            – crypto
            5 hours ago












            @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
            – marmot
            5 hours ago




            @crypto Yes. Alternatively you could just insert a strut everywhere: max sumlimits_strut kin Ksumlimits_strut ain A^k,V_L(f,v)x^k_a or even define your version of limits in such a way that it injects a strut.
            – marmot
            5 hours ago










            up vote
            1
            down vote













            The adjustlimits command from the mathtools package is designed for this:



            documentclassarticle
            usepackagemathtools% loads `amsmath'
            begindocument
            beginalign
            max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
            endalign
            enddocument


            limits adjustment



            I also added a negative “kern” between the A^k,V_L and the (f,v): Feel free to remove it if you don’t like the result.






            share|improve this answer
























              up vote
              1
              down vote













              The adjustlimits command from the mathtools package is designed for this:



              documentclassarticle
              usepackagemathtools% loads `amsmath'
              begindocument
              beginalign
              max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
              endalign
              enddocument


              limits adjustment



              I also added a negative “kern” between the A^k,V_L and the (f,v): Feel free to remove it if you don’t like the result.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                The adjustlimits command from the mathtools package is designed for this:



                documentclassarticle
                usepackagemathtools% loads `amsmath'
                begindocument
                beginalign
                max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
                endalign
                enddocument


                limits adjustment



                I also added a negative “kern” between the A^k,V_L and the (f,v): Feel free to remove it if you don’t like the result.






                share|improve this answer












                The adjustlimits command from the mathtools package is designed for this:



                documentclassarticle
                usepackagemathtools% loads `amsmath'
                begindocument
                beginalign
                max adjustlimitssum_kin K sum_ain A^k,V_L!(f,v)x^k_a
                endalign
                enddocument


                limits adjustment



                I also added a negative “kern” between the A^k,V_L and the (f,v): Feel free to remove it if you don’t like the result.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 53 mins ago









                Ruixi Zhang

                3,291216




                3,291216



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450946%2faligning-limits-of-multiple-summations%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