Alignment of terms within align environment

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











up vote
2
down vote

favorite












Problem



I have several lines in a proof of mine, and I want to align several terms as shown:



Output



enter image description here



I can achieve the following using phantom where needed:



MWE



documentclassextarticle

usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

% For usage in align environments.
newcommandphantomrel[1]mathrelphantom#1
newcommandphantombin[1]mathbinphantom#1

begindocument
beginalign*
A
& = textseveral short lines\
& = textsome very long line which takes up most of the width of the page \
& = textseveral short lines \
& = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
& leq B + mathbbE(absa) \ % Using the triangle inequality.
& phantomrelleq phantomB + mathbbE(absb) \
& phantomrelleq phantomB + mathbbE(absc) \
& phantomrelleq phantomB + mathbbE(absd) \
endalign*
enddocument


However, I am weary that this doesn't seem very scalable if I were to find an error and need to change B to a wider set of symbols, and would like to avoid falling into a copy/paste loop.




I am using phantomrel and phantombin because of a previous question of mine




Thinking of a better writing pattern my first two thoughts were:



  • Use an aligned within the original align.

  • Use an array.

Using an array?



beginalign*
A
& = textseveral short lines\
& = textsome very long line which takes up most of the width of the page \
& = textseveral short lines \
& = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
& leq B
beginarray[t]r
+ mathbbE(absa) \
+ mathbbE(absb) \
+ mathbbE(absc) \
+ mathbbE(absd) \
endarray
endalign*


enter image description here



Although this has the + symbols too far offset because of the array margin.



Use aligned?



beginalign*
A
& = textseveral short lines\
& = textsome very long line which takes up most of the width of the page \
& = textseveral short lines \
& = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
&
beginaligned
leq B & + mathbbE(absa) \ % Using the triangle inequality.
& + mathbbE(absb) \
& + mathbbE(absc) \
& + mathbbE(absd)
endaligned
endalign*


enter image description here



Almost, but the alignment is a bit off and I am not sure why.



Why not just use aligned for the whole thing?



I can't figure out how I would handle the very long lines without some selective use of mathclap (or similar), and would rather keep my use of ampersands to a minimum.










share|improve this question

























    up vote
    2
    down vote

    favorite












    Problem



    I have several lines in a proof of mine, and I want to align several terms as shown:



    Output



    enter image description here



    I can achieve the following using phantom where needed:



    MWE



    documentclassextarticle

    usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

    % For usage in align environments.
    newcommandphantomrel[1]mathrelphantom#1
    newcommandphantombin[1]mathbinphantom#1

    begindocument
    beginalign*
    A
    & = textseveral short lines\
    & = textsome very long line which takes up most of the width of the page \
    & = textseveral short lines \
    & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
    & leq B + mathbbE(absa) \ % Using the triangle inequality.
    & phantomrelleq phantomB + mathbbE(absb) \
    & phantomrelleq phantomB + mathbbE(absc) \
    & phantomrelleq phantomB + mathbbE(absd) \
    endalign*
    enddocument


    However, I am weary that this doesn't seem very scalable if I were to find an error and need to change B to a wider set of symbols, and would like to avoid falling into a copy/paste loop.




    I am using phantomrel and phantombin because of a previous question of mine




    Thinking of a better writing pattern my first two thoughts were:



    • Use an aligned within the original align.

    • Use an array.

    Using an array?



    beginalign*
    A
    & = textseveral short lines\
    & = textsome very long line which takes up most of the width of the page \
    & = textseveral short lines \
    & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
    & leq B
    beginarray[t]r
    + mathbbE(absa) \
    + mathbbE(absb) \
    + mathbbE(absc) \
    + mathbbE(absd) \
    endarray
    endalign*


    enter image description here



    Although this has the + symbols too far offset because of the array margin.



    Use aligned?



    beginalign*
    A
    & = textseveral short lines\
    & = textsome very long line which takes up most of the width of the page \
    & = textseveral short lines \
    & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
    &
    beginaligned
    leq B & + mathbbE(absa) \ % Using the triangle inequality.
    & + mathbbE(absb) \
    & + mathbbE(absc) \
    & + mathbbE(absd)
    endaligned
    endalign*


    enter image description here



    Almost, but the alignment is a bit off and I am not sure why.



    Why not just use aligned for the whole thing?



    I can't figure out how I would handle the very long lines without some selective use of mathclap (or similar), and would rather keep my use of ampersands to a minimum.










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Problem



      I have several lines in a proof of mine, and I want to align several terms as shown:



      Output



      enter image description here



      I can achieve the following using phantom where needed:



      MWE



      documentclassextarticle

      usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

      % For usage in align environments.
      newcommandphantomrel[1]mathrelphantom#1
      newcommandphantombin[1]mathbinphantom#1

      begindocument
      beginalign*
      A
      & = textseveral short lines\
      & = textsome very long line which takes up most of the width of the page \
      & = textseveral short lines \
      & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
      & leq B + mathbbE(absa) \ % Using the triangle inequality.
      & phantomrelleq phantomB + mathbbE(absb) \
      & phantomrelleq phantomB + mathbbE(absc) \
      & phantomrelleq phantomB + mathbbE(absd) \
      endalign*
      enddocument


      However, I am weary that this doesn't seem very scalable if I were to find an error and need to change B to a wider set of symbols, and would like to avoid falling into a copy/paste loop.




      I am using phantomrel and phantombin because of a previous question of mine




      Thinking of a better writing pattern my first two thoughts were:



      • Use an aligned within the original align.

      • Use an array.

      Using an array?



      beginalign*
      A
      & = textseveral short lines\
      & = textsome very long line which takes up most of the width of the page \
      & = textseveral short lines \
      & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
      & leq B
      beginarray[t]r
      + mathbbE(absa) \
      + mathbbE(absb) \
      + mathbbE(absc) \
      + mathbbE(absd) \
      endarray
      endalign*


      enter image description here



      Although this has the + symbols too far offset because of the array margin.



      Use aligned?



      beginalign*
      A
      & = textseveral short lines\
      & = textsome very long line which takes up most of the width of the page \
      & = textseveral short lines \
      & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
      &
      beginaligned
      leq B & + mathbbE(absa) \ % Using the triangle inequality.
      & + mathbbE(absb) \
      & + mathbbE(absc) \
      & + mathbbE(absd)
      endaligned
      endalign*


      enter image description here



      Almost, but the alignment is a bit off and I am not sure why.



      Why not just use aligned for the whole thing?



      I can't figure out how I would handle the very long lines without some selective use of mathclap (or similar), and would rather keep my use of ampersands to a minimum.










      share|improve this question













      Problem



      I have several lines in a proof of mine, and I want to align several terms as shown:



      Output



      enter image description here



      I can achieve the following using phantom where needed:



      MWE



      documentclassextarticle

      usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

      % For usage in align environments.
      newcommandphantomrel[1]mathrelphantom#1
      newcommandphantombin[1]mathbinphantom#1

      begindocument
      beginalign*
      A
      & = textseveral short lines\
      & = textsome very long line which takes up most of the width of the page \
      & = textseveral short lines \
      & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
      & leq B + mathbbE(absa) \ % Using the triangle inequality.
      & phantomrelleq phantomB + mathbbE(absb) \
      & phantomrelleq phantomB + mathbbE(absc) \
      & phantomrelleq phantomB + mathbbE(absd) \
      endalign*
      enddocument


      However, I am weary that this doesn't seem very scalable if I were to find an error and need to change B to a wider set of symbols, and would like to avoid falling into a copy/paste loop.




      I am using phantomrel and phantombin because of a previous question of mine




      Thinking of a better writing pattern my first two thoughts were:



      • Use an aligned within the original align.

      • Use an array.

      Using an array?



      beginalign*
      A
      & = textseveral short lines\
      & = textsome very long line which takes up most of the width of the page \
      & = textseveral short lines \
      & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
      & leq B
      beginarray[t]r
      + mathbbE(absa) \
      + mathbbE(absb) \
      + mathbbE(absc) \
      + mathbbE(absd) \
      endarray
      endalign*


      enter image description here



      Although this has the + symbols too far offset because of the array margin.



      Use aligned?



      beginalign*
      A
      & = textseveral short lines\
      & = textsome very long line which takes up most of the width of the page \
      & = textseveral short lines \
      & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
      &
      beginaligned
      leq B & + mathbbE(absa) \ % Using the triangle inequality.
      & + mathbbE(absb) \
      & + mathbbE(absc) \
      & + mathbbE(absd)
      endaligned
      endalign*


      enter image description here



      Almost, but the alignment is a bit off and I am not sure why.



      Why not just use aligned for the whole thing?



      I can't figure out how I would handle the very long lines without some selective use of mathclap (or similar), and would rather keep my use of ampersands to a minimum.







      align arrays best-practices phantom






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 49 mins ago









      oliversm

      35029




      35029




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote













          enter image description here



          I added so you get relation spacing



          documentclassextarticle

          usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

          % For usage in align environments.
          newcommandphantomrel[1]mathrelphantom#1
          newcommandphantombin[1]mathbinphantom#1

          begindocument
          beginalign*
          A
          & = textseveral short lines\
          & = textsome very long line which takes up most of the width of the page \
          & = textseveral short lines \
          & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
          &
          beginaligned
          leq B & + mathbbE(absa) \ % Using the triangle inequality.
          & + mathbbE(absb) \
          & + mathbbE(absc) \
          & + mathbbE(absd)
          endaligned
          endalign*enddocument





          share|improve this answer



























            up vote
            1
            down vote













            I have no problem with aligned (measure precision: 0.1pt) and this very code. Unrelated: I removed the unnecessary packages.



            documentclassextarticle

            usepackagebm,amssymb, amsthm, mathtools, cleveref, physics, letltxmacro

            % For usage in align environments.
            newcommandphantomrel[1]mathrelphantom#1
            newcommandphantombin[1]mathbinphantom#1

            begindocument

            beginalign*
            A
            & = textseveral short lines\
            & = textsome very long line which takes up most of the width of the page \
            & = textseveral short lines \
            & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
            & leq B beginaligned[t] & + mathbbE(absa) \ % Using the triangle inequality.
            & + mathbbE(absb) \
            & + mathbbE(absc) \
            & + mathbbE(absd)
            endaligned
            endalign*

            enddocument


            enter image description here






            share|improve this answer



























              up vote
              1
              down vote













              I would use a top-aligned aligned environment (pun intended) inside the align* environment.



              Separately, I would also try to de-clutter the appearance of the equations by using fewer pairs of parentheses.



              enter image description here



              documentclassextarticle

              usepackagemathtools,bbm,bm,amssymb,amsthm,physics,
              letltxmacro,cleveref % load 'cleveref' last
              DeclareMathOperatorEmathbbE % expectation operator

              begindocument
              beginalign*
              A
              &= textseveral short lines\
              &= textsome very long line which takes up most of the width of the page \
              &= textseveral short lines \
              &= B + Eabsa + b + c + d qquad text(typically too long for a single line) \
              &leq B
              beginaligned[t]
              &+ E absa \ % by triangle inequality
              &+ E absb \
              &+ E absc \
              &+ E absd
              endaligned
              endalign*
              enddocument





              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%2f455727%2falignment-of-terms-within-align-environment%23new-answer', 'question_page');

                );

                Post as a guest






























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                2
                down vote













                enter image description here



                I added so you get relation spacing



                documentclassextarticle

                usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

                % For usage in align environments.
                newcommandphantomrel[1]mathrelphantom#1
                newcommandphantombin[1]mathbinphantom#1

                begindocument
                beginalign*
                A
                & = textseveral short lines\
                & = textsome very long line which takes up most of the width of the page \
                & = textseveral short lines \
                & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                &
                beginaligned
                leq B & + mathbbE(absa) \ % Using the triangle inequality.
                & + mathbbE(absb) \
                & + mathbbE(absc) \
                & + mathbbE(absd)
                endaligned
                endalign*enddocument





                share|improve this answer
























                  up vote
                  2
                  down vote













                  enter image description here



                  I added so you get relation spacing



                  documentclassextarticle

                  usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

                  % For usage in align environments.
                  newcommandphantomrel[1]mathrelphantom#1
                  newcommandphantombin[1]mathbinphantom#1

                  begindocument
                  beginalign*
                  A
                  & = textseveral short lines\
                  & = textsome very long line which takes up most of the width of the page \
                  & = textseveral short lines \
                  & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                  &
                  beginaligned
                  leq B & + mathbbE(absa) \ % Using the triangle inequality.
                  & + mathbbE(absb) \
                  & + mathbbE(absc) \
                  & + mathbbE(absd)
                  endaligned
                  endalign*enddocument





                  share|improve this answer






















                    up vote
                    2
                    down vote










                    up vote
                    2
                    down vote









                    enter image description here



                    I added so you get relation spacing



                    documentclassextarticle

                    usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

                    % For usage in align environments.
                    newcommandphantomrel[1]mathrelphantom#1
                    newcommandphantombin[1]mathbinphantom#1

                    begindocument
                    beginalign*
                    A
                    & = textseveral short lines\
                    & = textsome very long line which takes up most of the width of the page \
                    & = textseveral short lines \
                    & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                    &
                    beginaligned
                    leq B & + mathbbE(absa) \ % Using the triangle inequality.
                    & + mathbbE(absb) \
                    & + mathbbE(absc) \
                    & + mathbbE(absd)
                    endaligned
                    endalign*enddocument





                    share|improve this answer












                    enter image description here



                    I added so you get relation spacing



                    documentclassextarticle

                    usepackageamsmath,bbm,bm,amssymb,amsthm,mathtools,cleveref,physics,letltxmacro

                    % For usage in align environments.
                    newcommandphantomrel[1]mathrelphantom#1
                    newcommandphantombin[1]mathbinphantom#1

                    begindocument
                    beginalign*
                    A
                    & = textseveral short lines\
                    & = textsome very long line which takes up most of the width of the page \
                    & = textseveral short lines \
                    & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                    &
                    beginaligned
                    leq B & + mathbbE(absa) \ % Using the triangle inequality.
                    & + mathbbE(absb) \
                    & + mathbbE(absc) \
                    & + mathbbE(absd)
                    endaligned
                    endalign*enddocument






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 28 mins ago









                    David Carlisle

                    472k3811001829




                    472k3811001829




















                        up vote
                        1
                        down vote













                        I have no problem with aligned (measure precision: 0.1pt) and this very code. Unrelated: I removed the unnecessary packages.



                        documentclassextarticle

                        usepackagebm,amssymb, amsthm, mathtools, cleveref, physics, letltxmacro

                        % For usage in align environments.
                        newcommandphantomrel[1]mathrelphantom#1
                        newcommandphantombin[1]mathbinphantom#1

                        begindocument

                        beginalign*
                        A
                        & = textseveral short lines\
                        & = textsome very long line which takes up most of the width of the page \
                        & = textseveral short lines \
                        & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                        & leq B beginaligned[t] & + mathbbE(absa) \ % Using the triangle inequality.
                        & + mathbbE(absb) \
                        & + mathbbE(absc) \
                        & + mathbbE(absd)
                        endaligned
                        endalign*

                        enddocument


                        enter image description here






                        share|improve this answer
























                          up vote
                          1
                          down vote













                          I have no problem with aligned (measure precision: 0.1pt) and this very code. Unrelated: I removed the unnecessary packages.



                          documentclassextarticle

                          usepackagebm,amssymb, amsthm, mathtools, cleveref, physics, letltxmacro

                          % For usage in align environments.
                          newcommandphantomrel[1]mathrelphantom#1
                          newcommandphantombin[1]mathbinphantom#1

                          begindocument

                          beginalign*
                          A
                          & = textseveral short lines\
                          & = textsome very long line which takes up most of the width of the page \
                          & = textseveral short lines \
                          & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                          & leq B beginaligned[t] & + mathbbE(absa) \ % Using the triangle inequality.
                          & + mathbbE(absb) \
                          & + mathbbE(absc) \
                          & + mathbbE(absd)
                          endaligned
                          endalign*

                          enddocument


                          enter image description here






                          share|improve this answer






















                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            I have no problem with aligned (measure precision: 0.1pt) and this very code. Unrelated: I removed the unnecessary packages.



                            documentclassextarticle

                            usepackagebm,amssymb, amsthm, mathtools, cleveref, physics, letltxmacro

                            % For usage in align environments.
                            newcommandphantomrel[1]mathrelphantom#1
                            newcommandphantombin[1]mathbinphantom#1

                            begindocument

                            beginalign*
                            A
                            & = textseveral short lines\
                            & = textsome very long line which takes up most of the width of the page \
                            & = textseveral short lines \
                            & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                            & leq B beginaligned[t] & + mathbbE(absa) \ % Using the triangle inequality.
                            & + mathbbE(absb) \
                            & + mathbbE(absc) \
                            & + mathbbE(absd)
                            endaligned
                            endalign*

                            enddocument


                            enter image description here






                            share|improve this answer












                            I have no problem with aligned (measure precision: 0.1pt) and this very code. Unrelated: I removed the unnecessary packages.



                            documentclassextarticle

                            usepackagebm,amssymb, amsthm, mathtools, cleveref, physics, letltxmacro

                            % For usage in align environments.
                            newcommandphantomrel[1]mathrelphantom#1
                            newcommandphantombin[1]mathbinphantom#1

                            begindocument

                            beginalign*
                            A
                            & = textseveral short lines\
                            & = textsome very long line which takes up most of the width of the page \
                            & = textseveral short lines \
                            & = B + mathbbE(absa + b + c + d) qquad text(typically too long for a single line) \
                            & leq B beginaligned[t] & + mathbbE(absa) \ % Using the triangle inequality.
                            & + mathbbE(absb) \
                            & + mathbbE(absc) \
                            & + mathbbE(absd)
                            endaligned
                            endalign*

                            enddocument


                            enter image description here







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 26 mins ago









                            Bernard

                            158k764191




                            158k764191




















                                up vote
                                1
                                down vote













                                I would use a top-aligned aligned environment (pun intended) inside the align* environment.



                                Separately, I would also try to de-clutter the appearance of the equations by using fewer pairs of parentheses.



                                enter image description here



                                documentclassextarticle

                                usepackagemathtools,bbm,bm,amssymb,amsthm,physics,
                                letltxmacro,cleveref % load 'cleveref' last
                                DeclareMathOperatorEmathbbE % expectation operator

                                begindocument
                                beginalign*
                                A
                                &= textseveral short lines\
                                &= textsome very long line which takes up most of the width of the page \
                                &= textseveral short lines \
                                &= B + Eabsa + b + c + d qquad text(typically too long for a single line) \
                                &leq B
                                beginaligned[t]
                                &+ E absa \ % by triangle inequality
                                &+ E absb \
                                &+ E absc \
                                &+ E absd
                                endaligned
                                endalign*
                                enddocument





                                share|improve this answer
























                                  up vote
                                  1
                                  down vote













                                  I would use a top-aligned aligned environment (pun intended) inside the align* environment.



                                  Separately, I would also try to de-clutter the appearance of the equations by using fewer pairs of parentheses.



                                  enter image description here



                                  documentclassextarticle

                                  usepackagemathtools,bbm,bm,amssymb,amsthm,physics,
                                  letltxmacro,cleveref % load 'cleveref' last
                                  DeclareMathOperatorEmathbbE % expectation operator

                                  begindocument
                                  beginalign*
                                  A
                                  &= textseveral short lines\
                                  &= textsome very long line which takes up most of the width of the page \
                                  &= textseveral short lines \
                                  &= B + Eabsa + b + c + d qquad text(typically too long for a single line) \
                                  &leq B
                                  beginaligned[t]
                                  &+ E absa \ % by triangle inequality
                                  &+ E absb \
                                  &+ E absc \
                                  &+ E absd
                                  endaligned
                                  endalign*
                                  enddocument





                                  share|improve this answer






















                                    up vote
                                    1
                                    down vote










                                    up vote
                                    1
                                    down vote









                                    I would use a top-aligned aligned environment (pun intended) inside the align* environment.



                                    Separately, I would also try to de-clutter the appearance of the equations by using fewer pairs of parentheses.



                                    enter image description here



                                    documentclassextarticle

                                    usepackagemathtools,bbm,bm,amssymb,amsthm,physics,
                                    letltxmacro,cleveref % load 'cleveref' last
                                    DeclareMathOperatorEmathbbE % expectation operator

                                    begindocument
                                    beginalign*
                                    A
                                    &= textseveral short lines\
                                    &= textsome very long line which takes up most of the width of the page \
                                    &= textseveral short lines \
                                    &= B + Eabsa + b + c + d qquad text(typically too long for a single line) \
                                    &leq B
                                    beginaligned[t]
                                    &+ E absa \ % by triangle inequality
                                    &+ E absb \
                                    &+ E absc \
                                    &+ E absd
                                    endaligned
                                    endalign*
                                    enddocument





                                    share|improve this answer












                                    I would use a top-aligned aligned environment (pun intended) inside the align* environment.



                                    Separately, I would also try to de-clutter the appearance of the equations by using fewer pairs of parentheses.



                                    enter image description here



                                    documentclassextarticle

                                    usepackagemathtools,bbm,bm,amssymb,amsthm,physics,
                                    letltxmacro,cleveref % load 'cleveref' last
                                    DeclareMathOperatorEmathbbE % expectation operator

                                    begindocument
                                    beginalign*
                                    A
                                    &= textseveral short lines\
                                    &= textsome very long line which takes up most of the width of the page \
                                    &= textseveral short lines \
                                    &= B + Eabsa + b + c + d qquad text(typically too long for a single line) \
                                    &leq B
                                    beginaligned[t]
                                    &+ E absa \ % by triangle inequality
                                    &+ E absb \
                                    &+ E absc \
                                    &+ E absd
                                    endaligned
                                    endalign*
                                    enddocument






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 25 mins ago









                                    Mico

                                    266k30360746




                                    266k30360746



























                                         

                                        draft saved


                                        draft discarded















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455727%2falignment-of-terms-within-align-environment%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