alignat align two sums under each other











up vote
4
down vote

favorite












This



begin{alignat*}{2}
f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y &\
&= lim_{s} frac{1}{3s} &Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y &\
& & sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y &Bigg} \
end{alignat*}


Produces this:
enter image description here



Obviously, the space between the fraction and curly bracket is not intended, what I wanted to do was to align the second sum under the first one like it is done here. What is incorrect? (I want to do it with alignat without getting too complex like nested alignemets)










share|improve this question


















  • 1




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    7 hours ago















up vote
4
down vote

favorite












This



begin{alignat*}{2}
f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y &\
&= lim_{s} frac{1}{3s} &Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y &\
& & sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y &Bigg} \
end{alignat*}


Produces this:
enter image description here



Obviously, the space between the fraction and curly bracket is not intended, what I wanted to do was to align the second sum under the first one like it is done here. What is incorrect? (I want to do it with alignat without getting too complex like nested alignemets)










share|improve this question


















  • 1




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    7 hours ago













up vote
4
down vote

favorite









up vote
4
down vote

favorite











This



begin{alignat*}{2}
f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y &\
&= lim_{s} frac{1}{3s} &Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y &\
& & sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y &Bigg} \
end{alignat*}


Produces this:
enter image description here



Obviously, the space between the fraction and curly bracket is not intended, what I wanted to do was to align the second sum under the first one like it is done here. What is incorrect? (I want to do it with alignat without getting too complex like nested alignemets)










share|improve this question













This



begin{alignat*}{2}
f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y &\
&= lim_{s} frac{1}{3s} &Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y &\
& & sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y &Bigg} \
end{alignat*}


Produces this:
enter image description here



Obviously, the space between the fraction and curly bracket is not intended, what I wanted to do was to align the second sum under the first one like it is done here. What is incorrect? (I want to do it with alignat without getting too complex like nested alignemets)







align amsmath alignat






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 7 hours ago









leosenko

1836




1836








  • 1




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    7 hours ago














  • 1




    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
    – Peter Grill
    7 hours ago








1




1




While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
7 hours ago




While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the documentclass and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
7 hours ago










3 Answers
3






active

oldest

votes

















up vote
3
down vote













A combination of an hphantom{Bigg{} and some additional alignment points gives good results:



enter image description here



Notes:




  • The alignat*= environment produces as many rl (right/left) pairs as specified in the first parameter and does not insert additional space that the align environment does, so you need to insert the space that is desired between the alignment points (this was not needed in this case).

  • The double && ensure that the subsequent columns are also left aligned.


Code



documentclass{article}
usepackage{mathtools}% include amsmath

begin{document}
begin{alignat*}{4}
f(a)
&= lim_{s} frac{1}{2 z} && int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y & \
&= lim_{s} frac{1}{3s} && Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y & \
& && hphantom{Bigg{} sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y & Bigg} \
end{alignat*}
end{document}





share|improve this answer























  • Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
    – leosenko
    4 hours ago










  • @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
    – Peter Grill
    4 hours ago




















up vote
2
down vote













This is a case for split with a nested aligned or multlined environment.



A couple of notes




  1. dx should be preceded by a thin space; it's easy to forget it, so I provide a diff command that adds it automatically;


  2. Bigg is too large and it should be in the Biggl and Biggr varieties anyhow; I used biggl and biggr;


  3. in the aligned solution, there should be a ! before sum to avoid an unwanted thin space.



documentclass{article}
usepackage{amsmath,mathtools}

newcommanddiff{mathop{}!d}

begin{document}

begin{equation*}
begin{split}
f(a)
&= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
\
&= lim_{s} frac{1}{3s} biggl{
begin{aligned}[t]
&!sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
&!sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
biggr}
end{aligned}
end{split}
end{equation*}

begin{equation*}
begin{split}
f(a)
&= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
\
&= lim_{s} frac{1}{3s} biggl{
begin{multlined}[t]
sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
biggr}
end{multlined}
end{split}
end{equation*}

end{document}


enter image description here






share|improve this answer




























    up vote
    1
    down vote













    A solution with an aligned environment nested in a align*. I also propose a different alignment, and an improvement for the spacing of differential symbols:



        documentclass{article}
    usepackage{amsmath}

    begin{document}

    begin{align*}
    f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q), d x,d y &\
    &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{ & sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y \
    & sum_{w} int_{-r}^{+t} g(q)cdot h(q) ,d x, d y , d x, d y, Bigg}end{aligned}
    end{align*}
    bigskip

    begin{align*}
    f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) ,d x,d y &\
    &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y & \
    sum_{w} int_{-r}^{+t} g(q)cdot h(q),d x,d y,d x,d y &,Bigg}end{aligned}
    end{align*}

    end{document}


    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%2f466418%2falignat-align-two-sums-under-each-other%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      A combination of an hphantom{Bigg{} and some additional alignment points gives good results:



      enter image description here



      Notes:




      • The alignat*= environment produces as many rl (right/left) pairs as specified in the first parameter and does not insert additional space that the align environment does, so you need to insert the space that is desired between the alignment points (this was not needed in this case).

      • The double && ensure that the subsequent columns are also left aligned.


      Code



      documentclass{article}
      usepackage{mathtools}% include amsmath

      begin{document}
      begin{alignat*}{4}
      f(a)
      &= lim_{s} frac{1}{2 z} && int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y & \
      &= lim_{s} frac{1}{3s} && Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y & \
      & && hphantom{Bigg{} sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y & Bigg} \
      end{alignat*}
      end{document}





      share|improve this answer























      • Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
        – leosenko
        4 hours ago










      • @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
        – Peter Grill
        4 hours ago

















      up vote
      3
      down vote













      A combination of an hphantom{Bigg{} and some additional alignment points gives good results:



      enter image description here



      Notes:




      • The alignat*= environment produces as many rl (right/left) pairs as specified in the first parameter and does not insert additional space that the align environment does, so you need to insert the space that is desired between the alignment points (this was not needed in this case).

      • The double && ensure that the subsequent columns are also left aligned.


      Code



      documentclass{article}
      usepackage{mathtools}% include amsmath

      begin{document}
      begin{alignat*}{4}
      f(a)
      &= lim_{s} frac{1}{2 z} && int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y & \
      &= lim_{s} frac{1}{3s} && Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y & \
      & && hphantom{Bigg{} sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y & Bigg} \
      end{alignat*}
      end{document}





      share|improve this answer























      • Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
        – leosenko
        4 hours ago










      • @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
        – Peter Grill
        4 hours ago















      up vote
      3
      down vote










      up vote
      3
      down vote









      A combination of an hphantom{Bigg{} and some additional alignment points gives good results:



      enter image description here



      Notes:




      • The alignat*= environment produces as many rl (right/left) pairs as specified in the first parameter and does not insert additional space that the align environment does, so you need to insert the space that is desired between the alignment points (this was not needed in this case).

      • The double && ensure that the subsequent columns are also left aligned.


      Code



      documentclass{article}
      usepackage{mathtools}% include amsmath

      begin{document}
      begin{alignat*}{4}
      f(a)
      &= lim_{s} frac{1}{2 z} && int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y & \
      &= lim_{s} frac{1}{3s} && Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y & \
      & && hphantom{Bigg{} sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y & Bigg} \
      end{alignat*}
      end{document}





      share|improve this answer














      A combination of an hphantom{Bigg{} and some additional alignment points gives good results:



      enter image description here



      Notes:




      • The alignat*= environment produces as many rl (right/left) pairs as specified in the first parameter and does not insert additional space that the align environment does, so you need to insert the space that is desired between the alignment points (this was not needed in this case).

      • The double && ensure that the subsequent columns are also left aligned.


      Code



      documentclass{article}
      usepackage{mathtools}% include amsmath

      begin{document}
      begin{alignat*}{4}
      f(a)
      &= lim_{s} frac{1}{2 z} && int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) d x d y & \
      &= lim_{s} frac{1}{3s} && Bigg{ sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) d x d y d x d y & \
      & && hphantom{Bigg{} sum_{w} int_{-r}^{+t} g(q)cdot h(q) d x d y d x d y & Bigg} \
      end{alignat*}
      end{document}






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited 4 hours ago

























      answered 7 hours ago









      Peter Grill

      163k25433745




      163k25433745












      • Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
        – leosenko
        4 hours ago










      • @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
        – Peter Grill
        4 hours ago




















      • Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
        – leosenko
        4 hours ago










      • @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
        – Peter Grill
        4 hours ago


















      Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
      – leosenko
      4 hours ago




      Why does the solution with simple alignat not work, since i merely copied what works from the link that I mention in the question and just used different content?
      – leosenko
      4 hours ago












      @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
      – Peter Grill
      4 hours ago






      @leosenko: The solution you linked to employs mathrlap so what you have here is not really identical to that solution. There are lots of different way to do alignments -- I only presented what came naturally to me: Select the desired alighnemt points and use a single & where you want the text before to be r aligned and the text following to be l aligned. A double &&skips the r align component and make the text following l aligned. Also updated answer to attempt to explain this.
      – Peter Grill
      4 hours ago












      up vote
      2
      down vote













      This is a case for split with a nested aligned or multlined environment.



      A couple of notes




      1. dx should be preceded by a thin space; it's easy to forget it, so I provide a diff command that adds it automatically;


      2. Bigg is too large and it should be in the Biggl and Biggr varieties anyhow; I used biggl and biggr;


      3. in the aligned solution, there should be a ! before sum to avoid an unwanted thin space.



      documentclass{article}
      usepackage{amsmath,mathtools}

      newcommanddiff{mathop{}!d}

      begin{document}

      begin{equation*}
      begin{split}
      f(a)
      &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
      \
      &= lim_{s} frac{1}{3s} biggl{
      begin{aligned}[t]
      &!sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
      &!sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
      biggr}
      end{aligned}
      end{split}
      end{equation*}

      begin{equation*}
      begin{split}
      f(a)
      &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
      \
      &= lim_{s} frac{1}{3s} biggl{
      begin{multlined}[t]
      sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
      sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
      biggr}
      end{multlined}
      end{split}
      end{equation*}

      end{document}


      enter image description here






      share|improve this answer

























        up vote
        2
        down vote













        This is a case for split with a nested aligned or multlined environment.



        A couple of notes




        1. dx should be preceded by a thin space; it's easy to forget it, so I provide a diff command that adds it automatically;


        2. Bigg is too large and it should be in the Biggl and Biggr varieties anyhow; I used biggl and biggr;


        3. in the aligned solution, there should be a ! before sum to avoid an unwanted thin space.



        documentclass{article}
        usepackage{amsmath,mathtools}

        newcommanddiff{mathop{}!d}

        begin{document}

        begin{equation*}
        begin{split}
        f(a)
        &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
        \
        &= lim_{s} frac{1}{3s} biggl{
        begin{aligned}[t]
        &!sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
        &!sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
        biggr}
        end{aligned}
        end{split}
        end{equation*}

        begin{equation*}
        begin{split}
        f(a)
        &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
        \
        &= lim_{s} frac{1}{3s} biggl{
        begin{multlined}[t]
        sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
        sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
        biggr}
        end{multlined}
        end{split}
        end{equation*}

        end{document}


        enter image description here






        share|improve this answer























          up vote
          2
          down vote










          up vote
          2
          down vote









          This is a case for split with a nested aligned or multlined environment.



          A couple of notes




          1. dx should be preceded by a thin space; it's easy to forget it, so I provide a diff command that adds it automatically;


          2. Bigg is too large and it should be in the Biggl and Biggr varieties anyhow; I used biggl and biggr;


          3. in the aligned solution, there should be a ! before sum to avoid an unwanted thin space.



          documentclass{article}
          usepackage{amsmath,mathtools}

          newcommanddiff{mathop{}!d}

          begin{document}

          begin{equation*}
          begin{split}
          f(a)
          &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
          \
          &= lim_{s} frac{1}{3s} biggl{
          begin{aligned}[t]
          &!sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
          &!sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
          biggr}
          end{aligned}
          end{split}
          end{equation*}

          begin{equation*}
          begin{split}
          f(a)
          &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
          \
          &= lim_{s} frac{1}{3s} biggl{
          begin{multlined}[t]
          sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
          sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
          biggr}
          end{multlined}
          end{split}
          end{equation*}

          end{document}


          enter image description here






          share|improve this answer












          This is a case for split with a nested aligned or multlined environment.



          A couple of notes




          1. dx should be preceded by a thin space; it's easy to forget it, so I provide a diff command that adds it automatically;


          2. Bigg is too large and it should be in the Biggl and Biggr varieties anyhow; I used biggl and biggr;


          3. in the aligned solution, there should be a ! before sum to avoid an unwanted thin space.



          documentclass{article}
          usepackage{amsmath,mathtools}

          newcommanddiff{mathop{}!d}

          begin{document}

          begin{equation*}
          begin{split}
          f(a)
          &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
          \
          &= lim_{s} frac{1}{3s} biggl{
          begin{aligned}[t]
          &!sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
          &!sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
          biggr}
          end{aligned}
          end{split}
          end{equation*}

          begin{equation*}
          begin{split}
          f(a)
          &= lim_{s} frac{1}{2z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q)diff xdiff y
          \
          &= lim_{s} frac{1}{3s} biggl{
          begin{multlined}[t]
          sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) diff x diff y diff x diff y \
          sum_{w} int_{-r}^{+t} g(q)cdot h(q) diff x diff y diff x diff y
          biggr}
          end{multlined}
          end{split}
          end{equation*}

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 3 hours ago









          egreg

          705k8618773157




          705k8618773157






















              up vote
              1
              down vote













              A solution with an aligned environment nested in a align*. I also propose a different alignment, and an improvement for the spacing of differential symbols:



                  documentclass{article}
              usepackage{amsmath}

              begin{document}

              begin{align*}
              f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q), d x,d y &\
              &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{ & sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y \
              & sum_{w} int_{-r}^{+t} g(q)cdot h(q) ,d x, d y , d x, d y, Bigg}end{aligned}
              end{align*}
              bigskip

              begin{align*}
              f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) ,d x,d y &\
              &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y & \
              sum_{w} int_{-r}^{+t} g(q)cdot h(q),d x,d y,d x,d y &,Bigg}end{aligned}
              end{align*}

              end{document}


              enter image description here






              share|improve this answer

























                up vote
                1
                down vote













                A solution with an aligned environment nested in a align*. I also propose a different alignment, and an improvement for the spacing of differential symbols:



                    documentclass{article}
                usepackage{amsmath}

                begin{document}

                begin{align*}
                f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q), d x,d y &\
                &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{ & sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y \
                & sum_{w} int_{-r}^{+t} g(q)cdot h(q) ,d x, d y , d x, d y, Bigg}end{aligned}
                end{align*}
                bigskip

                begin{align*}
                f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) ,d x,d y &\
                &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y & \
                sum_{w} int_{-r}^{+t} g(q)cdot h(q),d x,d y,d x,d y &,Bigg}end{aligned}
                end{align*}

                end{document}


                enter image description here






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  A solution with an aligned environment nested in a align*. I also propose a different alignment, and an improvement for the spacing of differential symbols:



                      documentclass{article}
                  usepackage{amsmath}

                  begin{document}

                  begin{align*}
                  f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q), d x,d y &\
                  &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{ & sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y \
                  & sum_{w} int_{-r}^{+t} g(q)cdot h(q) ,d x, d y , d x, d y, Bigg}end{aligned}
                  end{align*}
                  bigskip

                  begin{align*}
                  f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) ,d x,d y &\
                  &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y & \
                  sum_{w} int_{-r}^{+t} g(q)cdot h(q),d x,d y,d x,d y &,Bigg}end{aligned}
                  end{align*}

                  end{document}


                  enter image description here






                  share|improve this answer












                  A solution with an aligned environment nested in a align*. I also propose a different alignment, and an improvement for the spacing of differential symbols:



                      documentclass{article}
                  usepackage{amsmath}

                  begin{document}

                  begin{align*}
                  f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q), d x,d y &\
                  &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{ & sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y \
                  & sum_{w} int_{-r}^{+t} g(q)cdot h(q) ,d x, d y , d x, d y, Bigg}end{aligned}
                  end{align*}
                  bigskip

                  begin{align*}
                  f(a) &= lim_{s} frac{1}{2 z} int_{-w}^{+e}int_{-r}^{+t} g(q)cdot h(q) ,d x,d y &\
                  &= lim_{s} frac{1}{3s}begin{aligned}[t]Bigg{sum_{w} int_{-r}^{+t} g(q+e)cdot h(q) ,d x,d y,d x,d y & \
                  sum_{w} int_{-r}^{+t} g(q)cdot h(q),d x,d y,d x,d y &,Bigg}end{aligned}
                  end{align*}

                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 6 hours ago









                  Bernard

                  164k769192




                  164k769192






























                      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.





                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466418%2falignat-align-two-sums-under-each-other%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

                      List directoties down one level, excluding some named directories and files

                      list processes belonging to a network namespace

                      list systemd RuntimeDirectory mounts