How do I align summation signs instead of their subscripts?

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












6















I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.



This is a minimal working example:



documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath

begindocument

beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign

enddocument


which results in the following:



enter image description here



I would like to see the summation symbols aligned. How do I do this?










share|improve this question



















  • 1





    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass... and ending with enddocument. In case the OP posted

    – Stefan Pinnow
    Feb 5 at 13:06






  • 2





    Thank you, I edited the question. Hope this helps!

    – Mike
    Feb 5 at 13:10






  • 1





    Simply remove the &s at the beginning of the lines.

    – Stefan Pinnow
    Feb 5 at 13:14






  • 2





    See the mathtools package. You probably want smashoperator[l] ... around each sum including the limits of the sum.

    – daleif
    Feb 5 at 13:16











  • There is also mathclap (mathtools) for just the arguments.

    – John Kormylo
    Feb 5 at 15:27















6















I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.



This is a minimal working example:



documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath

begindocument

beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign

enddocument


which results in the following:



enter image description here



I would like to see the summation symbols aligned. How do I do this?










share|improve this question



















  • 1





    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass... and ending with enddocument. In case the OP posted

    – Stefan Pinnow
    Feb 5 at 13:06






  • 2





    Thank you, I edited the question. Hope this helps!

    – Mike
    Feb 5 at 13:10






  • 1





    Simply remove the &s at the beginning of the lines.

    – Stefan Pinnow
    Feb 5 at 13:14






  • 2





    See the mathtools package. You probably want smashoperator[l] ... around each sum including the limits of the sum.

    – daleif
    Feb 5 at 13:16











  • There is also mathclap (mathtools) for just the arguments.

    – John Kormylo
    Feb 5 at 15:27













6












6








6


1






I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.



This is a minimal working example:



documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath

begindocument

beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign

enddocument


which results in the following:



enter image description here



I would like to see the summation symbols aligned. How do I do this?










share|improve this question
















I am trying to align a set of equations. However, I would like to align the summation symbols. Now, their subscripts are aligned, which results in the summation symbols being (or at least, looking) unaligned.



This is a minimal working example:



documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath

begindocument

beginalign
&sum_j in mathcalV': (i,j) in mathcalAx_ij^E &le 1, && forall i in mathcalR',\
&sum_i in mathcalN_E backslash mathcalN_342: (i,j) in mathcalAx_ij^E &= 0 && j in mathcalR_s',
endalign

enddocument


which results in the following:



enter image description here



I would like to see the summation symbols aligned. How do I do this?







align






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 5 at 13:09







Mike

















asked Feb 5 at 13:01









MikeMike

334




334







  • 1





    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass... and ending with enddocument. In case the OP posted

    – Stefan Pinnow
    Feb 5 at 13:06






  • 2





    Thank you, I edited the question. Hope this helps!

    – Mike
    Feb 5 at 13:10






  • 1





    Simply remove the &s at the beginning of the lines.

    – Stefan Pinnow
    Feb 5 at 13:14






  • 2





    See the mathtools package. You probably want smashoperator[l] ... around each sum including the limits of the sum.

    – daleif
    Feb 5 at 13:16











  • There is also mathclap (mathtools) for just the arguments.

    – John Kormylo
    Feb 5 at 15:27












  • 1





    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass... and ending with enddocument. In case the OP posted

    – Stefan Pinnow
    Feb 5 at 13:06






  • 2





    Thank you, I edited the question. Hope this helps!

    – Mike
    Feb 5 at 13:10






  • 1





    Simply remove the &s at the beginning of the lines.

    – Stefan Pinnow
    Feb 5 at 13:14






  • 2





    See the mathtools package. You probably want smashoperator[l] ... around each sum including the limits of the sum.

    – daleif
    Feb 5 at 13:16











  • There is also mathclap (mathtools) for just the arguments.

    – John Kormylo
    Feb 5 at 15:27







1




1





Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass... and ending with enddocument. In case the OP posted

– Stefan Pinnow
Feb 5 at 13:06





Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with documentclass... and ending with enddocument. In case the OP posted

– Stefan Pinnow
Feb 5 at 13:06




2




2





Thank you, I edited the question. Hope this helps!

– Mike
Feb 5 at 13:10





Thank you, I edited the question. Hope this helps!

– Mike
Feb 5 at 13:10




1




1





Simply remove the &s at the beginning of the lines.

– Stefan Pinnow
Feb 5 at 13:14





Simply remove the &s at the beginning of the lines.

– Stefan Pinnow
Feb 5 at 13:14




2




2





See the mathtools package. You probably want smashoperator[l] ... around each sum including the limits of the sum.

– daleif
Feb 5 at 13:16





See the mathtools package. You probably want smashoperator[l] ... around each sum including the limits of the sum.

– daleif
Feb 5 at 13:16













There is also mathclap (mathtools) for just the arguments.

– John Kormylo
Feb 5 at 15:27





There is also mathclap (mathtools) for just the arguments.

– John Kormylo
Feb 5 at 15:27










2 Answers
2






active

oldest

votes


















5














You can use smashopeorator[l]... from mathtools for this.
Here I've aligned on the sums, the le,= and the consitions, using alignat for better spacing.



Note also that I use setminus not backslash. setminus has proper status (don't remember if it is a binary operation), whereas backslash is a normal symbol (aka no automatic spacing).



documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath,mathtools

begindocument

beginalignat3
&smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
x_ij^E &le 1, &qquad& forall i in mathcalR',\
&smashoperator[l]sum_i in mathcalN_E setminus
mathcalN_342: (i,j) in mathcalA
x_ij^E &= 0 && j in mathcalR_s',
endalignat

enddocument





share|improve this answer























  • Thanks a lot, this solved my issue

    – Mike
    Feb 5 at 13:24


















7














I would avoid so long subscripts, breaking them into two lines.



You can get the alignment with the help of eqparbox; the first argument to mathbox is a unique identifier, which must be different for every usage.



I'd also use alignat, in order to avoid excessive space between the equation and the related condition.



documentclassarticle
usepackage[utf8]inputenc
usepackageamsmath
usepackageeqparbox

newcommandmathbox[3][mathop]%
#1eqmakebox[#2]$displaystyle#3$%


begindocument

beginalignat2
mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
&le 1,
&qquad& forall i in mathcalR',\
mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
&= 0
&qquad& j in mathcalR_s',
endalignat

enddocument


enter image description here






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',
    autoActivateHeartbeat: false,
    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%2f473476%2fhow-do-i-align-summation-signs-instead-of-their-subscripts%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    You can use smashopeorator[l]... from mathtools for this.
    Here I've aligned on the sums, the le,= and the consitions, using alignat for better spacing.



    Note also that I use setminus not backslash. setminus has proper status (don't remember if it is a binary operation), whereas backslash is a normal symbol (aka no automatic spacing).



    documentclassarticle
    usepackage[utf8]inputenc
    usepackageamsmath,mathtools

    begindocument

    beginalignat3
    &smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
    x_ij^E &le 1, &qquad& forall i in mathcalR',\
    &smashoperator[l]sum_i in mathcalN_E setminus
    mathcalN_342: (i,j) in mathcalA
    x_ij^E &= 0 && j in mathcalR_s',
    endalignat

    enddocument





    share|improve this answer























    • Thanks a lot, this solved my issue

      – Mike
      Feb 5 at 13:24















    5














    You can use smashopeorator[l]... from mathtools for this.
    Here I've aligned on the sums, the le,= and the consitions, using alignat for better spacing.



    Note also that I use setminus not backslash. setminus has proper status (don't remember if it is a binary operation), whereas backslash is a normal symbol (aka no automatic spacing).



    documentclassarticle
    usepackage[utf8]inputenc
    usepackageamsmath,mathtools

    begindocument

    beginalignat3
    &smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
    x_ij^E &le 1, &qquad& forall i in mathcalR',\
    &smashoperator[l]sum_i in mathcalN_E setminus
    mathcalN_342: (i,j) in mathcalA
    x_ij^E &= 0 && j in mathcalR_s',
    endalignat

    enddocument





    share|improve this answer























    • Thanks a lot, this solved my issue

      – Mike
      Feb 5 at 13:24













    5












    5








    5







    You can use smashopeorator[l]... from mathtools for this.
    Here I've aligned on the sums, the le,= and the consitions, using alignat for better spacing.



    Note also that I use setminus not backslash. setminus has proper status (don't remember if it is a binary operation), whereas backslash is a normal symbol (aka no automatic spacing).



    documentclassarticle
    usepackage[utf8]inputenc
    usepackageamsmath,mathtools

    begindocument

    beginalignat3
    &smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
    x_ij^E &le 1, &qquad& forall i in mathcalR',\
    &smashoperator[l]sum_i in mathcalN_E setminus
    mathcalN_342: (i,j) in mathcalA
    x_ij^E &= 0 && j in mathcalR_s',
    endalignat

    enddocument





    share|improve this answer













    You can use smashopeorator[l]... from mathtools for this.
    Here I've aligned on the sums, the le,= and the consitions, using alignat for better spacing.



    Note also that I use setminus not backslash. setminus has proper status (don't remember if it is a binary operation), whereas backslash is a normal symbol (aka no automatic spacing).



    documentclassarticle
    usepackage[utf8]inputenc
    usepackageamsmath,mathtools

    begindocument

    beginalignat3
    &smashoperator[l]sum_j in mathcalV': (i,j) in mathcalA
    x_ij^E &le 1, &qquad& forall i in mathcalR',\
    &smashoperator[l]sum_i in mathcalN_E setminus
    mathcalN_342: (i,j) in mathcalA
    x_ij^E &= 0 && j in mathcalR_s',
    endalignat

    enddocument






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 5 at 13:18









    daleifdaleif

    32.9k253116




    32.9k253116












    • Thanks a lot, this solved my issue

      – Mike
      Feb 5 at 13:24

















    • Thanks a lot, this solved my issue

      – Mike
      Feb 5 at 13:24
















    Thanks a lot, this solved my issue

    – Mike
    Feb 5 at 13:24





    Thanks a lot, this solved my issue

    – Mike
    Feb 5 at 13:24











    7














    I would avoid so long subscripts, breaking them into two lines.



    You can get the alignment with the help of eqparbox; the first argument to mathbox is a unique identifier, which must be different for every usage.



    I'd also use alignat, in order to avoid excessive space between the equation and the related condition.



    documentclassarticle
    usepackage[utf8]inputenc
    usepackageamsmath
    usepackageeqparbox

    newcommandmathbox[3][mathop]%
    #1eqmakebox[#2]$displaystyle#3$%


    begindocument

    beginalignat2
    mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
    &le 1,
    &qquad& forall i in mathcalR',\
    mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
    &= 0
    &qquad& j in mathcalR_s',
    endalignat

    enddocument


    enter image description here






    share|improve this answer



























      7














      I would avoid so long subscripts, breaking them into two lines.



      You can get the alignment with the help of eqparbox; the first argument to mathbox is a unique identifier, which must be different for every usage.



      I'd also use alignat, in order to avoid excessive space between the equation and the related condition.



      documentclassarticle
      usepackage[utf8]inputenc
      usepackageamsmath
      usepackageeqparbox

      newcommandmathbox[3][mathop]%
      #1eqmakebox[#2]$displaystyle#3$%


      begindocument

      beginalignat2
      mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
      &le 1,
      &qquad& forall i in mathcalR',\
      mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
      &= 0
      &qquad& j in mathcalR_s',
      endalignat

      enddocument


      enter image description here






      share|improve this answer

























        7












        7








        7







        I would avoid so long subscripts, breaking them into two lines.



        You can get the alignment with the help of eqparbox; the first argument to mathbox is a unique identifier, which must be different for every usage.



        I'd also use alignat, in order to avoid excessive space between the equation and the related condition.



        documentclassarticle
        usepackage[utf8]inputenc
        usepackageamsmath
        usepackageeqparbox

        newcommandmathbox[3][mathop]%
        #1eqmakebox[#2]$displaystyle#3$%


        begindocument

        beginalignat2
        mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
        &le 1,
        &qquad& forall i in mathcalR',\
        mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
        &= 0
        &qquad& j in mathcalR_s',
        endalignat

        enddocument


        enter image description here






        share|improve this answer













        I would avoid so long subscripts, breaking them into two lines.



        You can get the alignment with the help of eqparbox; the first argument to mathbox is a unique identifier, which must be different for every usage.



        I'd also use alignat, in order to avoid excessive space between the equation and the related condition.



        documentclassarticle
        usepackage[utf8]inputenc
        usepackageamsmath
        usepackageeqparbox

        newcommandmathbox[3][mathop]%
        #1eqmakebox[#2]$displaystyle#3$%


        begindocument

        beginalignat2
        mathboxAsum_substackjinmathcalV' \ (i,j)inmathcalAx_ij^E
        &le 1,
        &qquad& forall i in mathcalR',\
        mathboxAsum_substackiinmathcalN_EsetminusmathcalN_342 \ (i,j)inmathcalA x_ij^E
        &= 0
        &qquad& j in mathcalR_s',
        endalignat

        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 5 at 13:23









        egregegreg

        723k8719163219




        723k8719163219



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473476%2fhow-do-i-align-summation-signs-instead-of-their-subscripts%23new-answer', 'question_page');

            );

            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






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?