Syntax in align environment












3















Take a look at this here:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{align*}
Leftrightarrow qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{align*}
end{document}


Is it possible to have the equivalences below each other like the equations are?



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{alignat*}{4}
P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
Leftrightarrow &&qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow && e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{alignat*}
end{document}


This almost works but i have the mention problem that the first line is pulled to the very left.










share|improve this question




















  • 2





    Of course, you don't want to add the equation number manually, do you?

    – egreg
    Dec 14 '18 at 8:45
















3















Take a look at this here:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{align*}
Leftrightarrow qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{align*}
end{document}


Is it possible to have the equivalences below each other like the equations are?



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{alignat*}{4}
P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
Leftrightarrow &&qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow && e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{alignat*}
end{document}


This almost works but i have the mention problem that the first line is pulled to the very left.










share|improve this question




















  • 2





    Of course, you don't want to add the equation number manually, do you?

    – egreg
    Dec 14 '18 at 8:45














3












3








3








Take a look at this here:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{align*}
Leftrightarrow qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{align*}
end{document}


Is it possible to have the equivalences below each other like the equations are?



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{alignat*}{4}
P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
Leftrightarrow &&qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow && e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{alignat*}
end{document}


This almost works but i have the mention problem that the first line is pulled to the very left.










share|improve this question
















Take a look at this here:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{align*}
Leftrightarrow qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{align*}
end{document}


Is it possible to have the equivalences below each other like the equations are?



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
begin{document}
begin{alignat*}{4}
P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
Leftrightarrow &&qquad P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} && (2.6)\
Leftrightarrow && e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{alignat*}
end{document}


This almost works but i have the mention problem that the first line is pulled to the very left.







align syntax






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '18 at 8:30







chri11

















asked Dec 14 '18 at 8:33









chri11chri11

384




384








  • 2





    Of course, you don't want to add the equation number manually, do you?

    – egreg
    Dec 14 '18 at 8:45














  • 2





    Of course, you don't want to add the equation number manually, do you?

    – egreg
    Dec 14 '18 at 8:45








2




2





Of course, you don't want to add the equation number manually, do you?

– egreg
Dec 14 '18 at 8:45





Of course, you don't want to add the equation number manually, do you?

– egreg
Dec 14 '18 at 8:45










4 Answers
4






active

oldest

votes


















3














Like so?



documentclass{article}

usepackage{amsmath}
begin{document}
begin{align}
Leftrightarrow&& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} tag{2.6} \
Leftrightarrow&& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda notag
end{align}
end{document}


enter image description here






share|improve this answer


























  • Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

    – chri11
    Dec 14 '18 at 8:57



















3














You also might be interested in the ArrowBetweenLines from mathtools:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{mathtools}
usepackage{amssymb}

numberwithin{equation}{section}

begin{document}

setcounter{section}{2}setcounter{equation}{5}

begin{equation}label{equivalenteqs}
begin{alignedat}{2}
& & abc & =def \
ArrowBetweenLines &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
ArrowBetweenLines &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
&=lambda e^{lambda t} e^{-lambda t}=lambda \
end{alignedat}
end{equation}
As we see in equation~eqref{equivalenteqs} we can blah blah.

end{document}


enter image description here






share|improve this answer































    3














    You don't want to manually number your equations and not because of the fact that the numbers would be unaligned to each other, but because maintaining manual numbering is essentially impossible.



    Use the label-ref mechanism for this.



    Your problem can be solved with alignedat:



    documentclass[10pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage{amsmath}
    usepackage{amssymb}

    numberwithin{equation}{section}

    begin{document}

    % let's emulate being in section 2 with five
    % numbered equations before this one; a real document
    % will have nothing like this
    setcounter{section}{2}setcounter{equation}{5}

    begin{equation}label{equivalenteqs}
    begin{alignedat}{2}
    Leftrightarrow &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
    Leftrightarrow &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
    &=lambda e^{lambda t} e^{-lambda t}=lambda \
    end{alignedat}
    end{equation}
    As we see in equation~eqref{equivalenteqs} we can blah blah.

    end{document}


    enter image description here



    If you happen to have a first line without the arrows, just add the suitable number of alignment points:



    documentclass[10pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage{amsmath}
    usepackage{amssymb}

    numberwithin{equation}{section}

    begin{document}

    % let's emulate being in section 2 with five
    % numbered equations before this one
    setcounter{section}{2}setcounter{equation}{5}

    begin{equation}
    begin{alignedat}{2}
    &qquad& P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
    Leftrightarrow & & P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
    Leftrightarrow & & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
    Leftrightarrow & & frac{d}{dt}(e^{lambda t}P_1(t))&=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
    end{alignedat}
    end{equation}
    As we see in equation~eqref{equivalenteqs} we can blah blah.

    end{document}


    enter image description here



    On the other hand, I see no reason for aligning at the equals signs.



    documentclass[10pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage{amsmath}
    usepackage{amssymb}

    numberwithin{equation}{section}

    begin{document}

    % let's emulate being in section 2 with five
    % numbered equations before this one
    setcounter{section}{2}setcounter{equation}{5}

    begin{equation}label{equivalenteqs}
    begin{aligned}
    && & P'_1(t)=-lambda P_1(t)+lambda P_0(t)\
    Leftrightarrow && & P'_1(t)+lambda P_1(t)=lambda e^{-lambda t} \
    Leftrightarrow && & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda e^{lambda t} e^{-lambda t}=lambda \
    Leftrightarrow && & frac{d}{dt}(e^{lambda t}P_1(t))=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
    end{aligned}
    end{equation}
    As we see in equation~eqref{equivalenteqs} we can blah blah.

    end{document}


    enter image description here






    share|improve this answer

































      2














      You can also use alignat:



      enter image description here



      Code:



      documentclass[10pt,a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      begin{document}
      begin{alignat*}{4}
      Leftrightarrow &&qquad P'_1(t)+lambda P_1(t) &=lambda e^{-lambda t} && (2.6) \
      Leftrightarrow &&qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t) &=lambda e^{lambda t} e^{-lambda t}=lambda
      end{alignat*}
      end{document}





      share|improve this answer


























      • Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

        – chri11
        Dec 14 '18 at 9:06











      • Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

        – Peter Grill
        Dec 14 '18 at 17:21











      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%2f464802%2fsyntax-in-align-environment%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      Like so?



      documentclass{article}

      usepackage{amsmath}
      begin{document}
      begin{align}
      Leftrightarrow&& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} tag{2.6} \
      Leftrightarrow&& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda notag
      end{align}
      end{document}


      enter image description here






      share|improve this answer


























      • Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

        – chri11
        Dec 14 '18 at 8:57
















      3














      Like so?



      documentclass{article}

      usepackage{amsmath}
      begin{document}
      begin{align}
      Leftrightarrow&& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} tag{2.6} \
      Leftrightarrow&& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda notag
      end{align}
      end{document}


      enter image description here






      share|improve this answer


























      • Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

        – chri11
        Dec 14 '18 at 8:57














      3












      3








      3







      Like so?



      documentclass{article}

      usepackage{amsmath}
      begin{document}
      begin{align}
      Leftrightarrow&& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} tag{2.6} \
      Leftrightarrow&& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda notag
      end{align}
      end{document}


      enter image description here






      share|improve this answer















      Like so?



      documentclass{article}

      usepackage{amsmath}
      begin{document}
      begin{align}
      Leftrightarrow&& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} tag{2.6} \
      Leftrightarrow&& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda notag
      end{align}
      end{document}


      enter image description here







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 14 '18 at 8:53









      Bernard

      167k769194




      167k769194










      answered Dec 14 '18 at 8:40









      Henri MenkeHenri Menke

      70.8k8157264




      70.8k8157264













      • Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

        – chri11
        Dec 14 '18 at 8:57



















      • Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

        – chri11
        Dec 14 '18 at 8:57

















      Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

      – chri11
      Dec 14 '18 at 8:57





      Almost - if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

      – chri11
      Dec 14 '18 at 8:57











      3














      You also might be interested in the ArrowBetweenLines from mathtools:



      documentclass[10pt,a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage{mathtools}
      usepackage{amssymb}

      numberwithin{equation}{section}

      begin{document}

      setcounter{section}{2}setcounter{equation}{5}

      begin{equation}label{equivalenteqs}
      begin{alignedat}{2}
      & & abc & =def \
      ArrowBetweenLines &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
      ArrowBetweenLines &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
      &=lambda e^{lambda t} e^{-lambda t}=lambda \
      end{alignedat}
      end{equation}
      As we see in equation~eqref{equivalenteqs} we can blah blah.

      end{document}


      enter image description here






      share|improve this answer




























        3














        You also might be interested in the ArrowBetweenLines from mathtools:



        documentclass[10pt,a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage{mathtools}
        usepackage{amssymb}

        numberwithin{equation}{section}

        begin{document}

        setcounter{section}{2}setcounter{equation}{5}

        begin{equation}label{equivalenteqs}
        begin{alignedat}{2}
        & & abc & =def \
        ArrowBetweenLines &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
        ArrowBetweenLines &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
        &=lambda e^{lambda t} e^{-lambda t}=lambda \
        end{alignedat}
        end{equation}
        As we see in equation~eqref{equivalenteqs} we can blah blah.

        end{document}


        enter image description here






        share|improve this answer


























          3












          3








          3







          You also might be interested in the ArrowBetweenLines from mathtools:



          documentclass[10pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{mathtools}
          usepackage{amssymb}

          numberwithin{equation}{section}

          begin{document}

          setcounter{section}{2}setcounter{equation}{5}

          begin{equation}label{equivalenteqs}
          begin{alignedat}{2}
          & & abc & =def \
          ArrowBetweenLines &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
          ArrowBetweenLines &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
          &=lambda e^{lambda t} e^{-lambda t}=lambda \
          end{alignedat}
          end{equation}
          As we see in equation~eqref{equivalenteqs} we can blah blah.

          end{document}


          enter image description here






          share|improve this answer













          You also might be interested in the ArrowBetweenLines from mathtools:



          documentclass[10pt,a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{mathtools}
          usepackage{amssymb}

          numberwithin{equation}{section}

          begin{document}

          setcounter{section}{2}setcounter{equation}{5}

          begin{equation}label{equivalenteqs}
          begin{alignedat}{2}
          & & abc & =def \
          ArrowBetweenLines &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
          ArrowBetweenLines &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
          &=lambda e^{lambda t} e^{-lambda t}=lambda \
          end{alignedat}
          end{equation}
          As we see in equation~eqref{equivalenteqs} we can blah blah.

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 14 '18 at 9:09









          BernardBernard

          167k769194




          167k769194























              3














              You don't want to manually number your equations and not because of the fact that the numbers would be unaligned to each other, but because maintaining manual numbering is essentially impossible.



              Use the label-ref mechanism for this.



              Your problem can be solved with alignedat:



              documentclass[10pt,a4paper]{article}
              usepackage[utf8]{inputenc}
              usepackage{amsmath}
              usepackage{amssymb}

              numberwithin{equation}{section}

              begin{document}

              % let's emulate being in section 2 with five
              % numbered equations before this one; a real document
              % will have nothing like this
              setcounter{section}{2}setcounter{equation}{5}

              begin{equation}label{equivalenteqs}
              begin{alignedat}{2}
              Leftrightarrow &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
              Leftrightarrow &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
              &=lambda e^{lambda t} e^{-lambda t}=lambda \
              end{alignedat}
              end{equation}
              As we see in equation~eqref{equivalenteqs} we can blah blah.

              end{document}


              enter image description here



              If you happen to have a first line without the arrows, just add the suitable number of alignment points:



              documentclass[10pt,a4paper]{article}
              usepackage[utf8]{inputenc}
              usepackage{amsmath}
              usepackage{amssymb}

              numberwithin{equation}{section}

              begin{document}

              % let's emulate being in section 2 with five
              % numbered equations before this one
              setcounter{section}{2}setcounter{equation}{5}

              begin{equation}
              begin{alignedat}{2}
              &qquad& P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
              Leftrightarrow & & P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
              Leftrightarrow & & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
              Leftrightarrow & & frac{d}{dt}(e^{lambda t}P_1(t))&=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
              end{alignedat}
              end{equation}
              As we see in equation~eqref{equivalenteqs} we can blah blah.

              end{document}


              enter image description here



              On the other hand, I see no reason for aligning at the equals signs.



              documentclass[10pt,a4paper]{article}
              usepackage[utf8]{inputenc}
              usepackage{amsmath}
              usepackage{amssymb}

              numberwithin{equation}{section}

              begin{document}

              % let's emulate being in section 2 with five
              % numbered equations before this one
              setcounter{section}{2}setcounter{equation}{5}

              begin{equation}label{equivalenteqs}
              begin{aligned}
              && & P'_1(t)=-lambda P_1(t)+lambda P_0(t)\
              Leftrightarrow && & P'_1(t)+lambda P_1(t)=lambda e^{-lambda t} \
              Leftrightarrow && & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda e^{lambda t} e^{-lambda t}=lambda \
              Leftrightarrow && & frac{d}{dt}(e^{lambda t}P_1(t))=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
              end{aligned}
              end{equation}
              As we see in equation~eqref{equivalenteqs} we can blah blah.

              end{document}


              enter image description here






              share|improve this answer






























                3














                You don't want to manually number your equations and not because of the fact that the numbers would be unaligned to each other, but because maintaining manual numbering is essentially impossible.



                Use the label-ref mechanism for this.



                Your problem can be solved with alignedat:



                documentclass[10pt,a4paper]{article}
                usepackage[utf8]{inputenc}
                usepackage{amsmath}
                usepackage{amssymb}

                numberwithin{equation}{section}

                begin{document}

                % let's emulate being in section 2 with five
                % numbered equations before this one; a real document
                % will have nothing like this
                setcounter{section}{2}setcounter{equation}{5}

                begin{equation}label{equivalenteqs}
                begin{alignedat}{2}
                Leftrightarrow &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
                Leftrightarrow &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
                &=lambda e^{lambda t} e^{-lambda t}=lambda \
                end{alignedat}
                end{equation}
                As we see in equation~eqref{equivalenteqs} we can blah blah.

                end{document}


                enter image description here



                If you happen to have a first line without the arrows, just add the suitable number of alignment points:



                documentclass[10pt,a4paper]{article}
                usepackage[utf8]{inputenc}
                usepackage{amsmath}
                usepackage{amssymb}

                numberwithin{equation}{section}

                begin{document}

                % let's emulate being in section 2 with five
                % numbered equations before this one
                setcounter{section}{2}setcounter{equation}{5}

                begin{equation}
                begin{alignedat}{2}
                &qquad& P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
                Leftrightarrow & & P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
                Leftrightarrow & & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
                Leftrightarrow & & frac{d}{dt}(e^{lambda t}P_1(t))&=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
                end{alignedat}
                end{equation}
                As we see in equation~eqref{equivalenteqs} we can blah blah.

                end{document}


                enter image description here



                On the other hand, I see no reason for aligning at the equals signs.



                documentclass[10pt,a4paper]{article}
                usepackage[utf8]{inputenc}
                usepackage{amsmath}
                usepackage{amssymb}

                numberwithin{equation}{section}

                begin{document}

                % let's emulate being in section 2 with five
                % numbered equations before this one
                setcounter{section}{2}setcounter{equation}{5}

                begin{equation}label{equivalenteqs}
                begin{aligned}
                && & P'_1(t)=-lambda P_1(t)+lambda P_0(t)\
                Leftrightarrow && & P'_1(t)+lambda P_1(t)=lambda e^{-lambda t} \
                Leftrightarrow && & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda e^{lambda t} e^{-lambda t}=lambda \
                Leftrightarrow && & frac{d}{dt}(e^{lambda t}P_1(t))=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
                end{aligned}
                end{equation}
                As we see in equation~eqref{equivalenteqs} we can blah blah.

                end{document}


                enter image description here






                share|improve this answer




























                  3












                  3








                  3







                  You don't want to manually number your equations and not because of the fact that the numbers would be unaligned to each other, but because maintaining manual numbering is essentially impossible.



                  Use the label-ref mechanism for this.



                  Your problem can be solved with alignedat:



                  documentclass[10pt,a4paper]{article}
                  usepackage[utf8]{inputenc}
                  usepackage{amsmath}
                  usepackage{amssymb}

                  numberwithin{equation}{section}

                  begin{document}

                  % let's emulate being in section 2 with five
                  % numbered equations before this one; a real document
                  % will have nothing like this
                  setcounter{section}{2}setcounter{equation}{5}

                  begin{equation}label{equivalenteqs}
                  begin{alignedat}{2}
                  Leftrightarrow &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
                  Leftrightarrow &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
                  &=lambda e^{lambda t} e^{-lambda t}=lambda \
                  end{alignedat}
                  end{equation}
                  As we see in equation~eqref{equivalenteqs} we can blah blah.

                  end{document}


                  enter image description here



                  If you happen to have a first line without the arrows, just add the suitable number of alignment points:



                  documentclass[10pt,a4paper]{article}
                  usepackage[utf8]{inputenc}
                  usepackage{amsmath}
                  usepackage{amssymb}

                  numberwithin{equation}{section}

                  begin{document}

                  % let's emulate being in section 2 with five
                  % numbered equations before this one
                  setcounter{section}{2}setcounter{equation}{5}

                  begin{equation}
                  begin{alignedat}{2}
                  &qquad& P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
                  Leftrightarrow & & P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
                  Leftrightarrow & & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
                  Leftrightarrow & & frac{d}{dt}(e^{lambda t}P_1(t))&=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
                  end{alignedat}
                  end{equation}
                  As we see in equation~eqref{equivalenteqs} we can blah blah.

                  end{document}


                  enter image description here



                  On the other hand, I see no reason for aligning at the equals signs.



                  documentclass[10pt,a4paper]{article}
                  usepackage[utf8]{inputenc}
                  usepackage{amsmath}
                  usepackage{amssymb}

                  numberwithin{equation}{section}

                  begin{document}

                  % let's emulate being in section 2 with five
                  % numbered equations before this one
                  setcounter{section}{2}setcounter{equation}{5}

                  begin{equation}label{equivalenteqs}
                  begin{aligned}
                  && & P'_1(t)=-lambda P_1(t)+lambda P_0(t)\
                  Leftrightarrow && & P'_1(t)+lambda P_1(t)=lambda e^{-lambda t} \
                  Leftrightarrow && & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda e^{lambda t} e^{-lambda t}=lambda \
                  Leftrightarrow && & frac{d}{dt}(e^{lambda t}P_1(t))=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
                  end{aligned}
                  end{equation}
                  As we see in equation~eqref{equivalenteqs} we can blah blah.

                  end{document}


                  enter image description here






                  share|improve this answer















                  You don't want to manually number your equations and not because of the fact that the numbers would be unaligned to each other, but because maintaining manual numbering is essentially impossible.



                  Use the label-ref mechanism for this.



                  Your problem can be solved with alignedat:



                  documentclass[10pt,a4paper]{article}
                  usepackage[utf8]{inputenc}
                  usepackage{amsmath}
                  usepackage{amssymb}

                  numberwithin{equation}{section}

                  begin{document}

                  % let's emulate being in section 2 with five
                  % numbered equations before this one; a real document
                  % will have nothing like this
                  setcounter{section}{2}setcounter{equation}{5}

                  begin{equation}label{equivalenteqs}
                  begin{alignedat}{2}
                  Leftrightarrow &qquad& P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
                  Leftrightarrow &qquad& e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)
                  &=lambda e^{lambda t} e^{-lambda t}=lambda \
                  end{alignedat}
                  end{equation}
                  As we see in equation~eqref{equivalenteqs} we can blah blah.

                  end{document}


                  enter image description here



                  If you happen to have a first line without the arrows, just add the suitable number of alignment points:



                  documentclass[10pt,a4paper]{article}
                  usepackage[utf8]{inputenc}
                  usepackage{amsmath}
                  usepackage{amssymb}

                  numberwithin{equation}{section}

                  begin{document}

                  % let's emulate being in section 2 with five
                  % numbered equations before this one
                  setcounter{section}{2}setcounter{equation}{5}

                  begin{equation}
                  begin{alignedat}{2}
                  &qquad& P'_1(t)&=-lambda P_1(t)+lambda P_0(t)\
                  Leftrightarrow & & P'_1(t)+lambda P_1(t)&=lambda e^{-lambda t} \
                  Leftrightarrow & & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)&=lambda e^{lambda t} e^{-lambda t}=lambda \
                  Leftrightarrow & & frac{d}{dt}(e^{lambda t}P_1(t))&=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
                  end{alignedat}
                  end{equation}
                  As we see in equation~eqref{equivalenteqs} we can blah blah.

                  end{document}


                  enter image description here



                  On the other hand, I see no reason for aligning at the equals signs.



                  documentclass[10pt,a4paper]{article}
                  usepackage[utf8]{inputenc}
                  usepackage{amsmath}
                  usepackage{amssymb}

                  numberwithin{equation}{section}

                  begin{document}

                  % let's emulate being in section 2 with five
                  % numbered equations before this one
                  setcounter{section}{2}setcounter{equation}{5}

                  begin{equation}label{equivalenteqs}
                  begin{aligned}
                  && & P'_1(t)=-lambda P_1(t)+lambda P_0(t)\
                  Leftrightarrow && & P'_1(t)+lambda P_1(t)=lambda e^{-lambda t} \
                  Leftrightarrow && & e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda e^{lambda t} e^{-lambda t}=lambda \
                  Leftrightarrow && & frac{d}{dt}(e^{lambda t}P_1(t))=e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t)=lambda\
                  end{aligned}
                  end{equation}
                  As we see in equation~eqref{equivalenteqs} we can blah blah.

                  end{document}


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 15 '18 at 14:31

























                  answered Dec 14 '18 at 8:54









                  egregegreg

                  712k8618913175




                  712k8618913175























                      2














                      You can also use alignat:



                      enter image description here



                      Code:



                      documentclass[10pt,a4paper]{article}
                      usepackage[utf8]{inputenc}
                      usepackage{amsmath}
                      usepackage{amsfonts}
                      usepackage{amssymb}
                      begin{document}
                      begin{alignat*}{4}
                      Leftrightarrow &&qquad P'_1(t)+lambda P_1(t) &=lambda e^{-lambda t} && (2.6) \
                      Leftrightarrow &&qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t) &=lambda e^{lambda t} e^{-lambda t}=lambda
                      end{alignat*}
                      end{document}





                      share|improve this answer


























                      • Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

                        – chri11
                        Dec 14 '18 at 9:06











                      • Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

                        – Peter Grill
                        Dec 14 '18 at 17:21
















                      2














                      You can also use alignat:



                      enter image description here



                      Code:



                      documentclass[10pt,a4paper]{article}
                      usepackage[utf8]{inputenc}
                      usepackage{amsmath}
                      usepackage{amsfonts}
                      usepackage{amssymb}
                      begin{document}
                      begin{alignat*}{4}
                      Leftrightarrow &&qquad P'_1(t)+lambda P_1(t) &=lambda e^{-lambda t} && (2.6) \
                      Leftrightarrow &&qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t) &=lambda e^{lambda t} e^{-lambda t}=lambda
                      end{alignat*}
                      end{document}





                      share|improve this answer


























                      • Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

                        – chri11
                        Dec 14 '18 at 9:06











                      • Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

                        – Peter Grill
                        Dec 14 '18 at 17:21














                      2












                      2








                      2







                      You can also use alignat:



                      enter image description here



                      Code:



                      documentclass[10pt,a4paper]{article}
                      usepackage[utf8]{inputenc}
                      usepackage{amsmath}
                      usepackage{amsfonts}
                      usepackage{amssymb}
                      begin{document}
                      begin{alignat*}{4}
                      Leftrightarrow &&qquad P'_1(t)+lambda P_1(t) &=lambda e^{-lambda t} && (2.6) \
                      Leftrightarrow &&qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t) &=lambda e^{lambda t} e^{-lambda t}=lambda
                      end{alignat*}
                      end{document}





                      share|improve this answer















                      You can also use alignat:



                      enter image description here



                      Code:



                      documentclass[10pt,a4paper]{article}
                      usepackage[utf8]{inputenc}
                      usepackage{amsmath}
                      usepackage{amsfonts}
                      usepackage{amssymb}
                      begin{document}
                      begin{alignat*}{4}
                      Leftrightarrow &&qquad P'_1(t)+lambda P_1(t) &=lambda e^{-lambda t} && (2.6) \
                      Leftrightarrow &&qquad e^{lambda t}P'_1(t)+lambda e^{lambda t}P_1(t) &=lambda e^{lambda t} e^{-lambda t}=lambda
                      end{alignat*}
                      end{document}






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Dec 14 '18 at 8:52









                      Bernard

                      167k769194




                      167k769194










                      answered Dec 14 '18 at 8:44









                      Peter GrillPeter Grill

                      164k25437749




                      164k25437749













                      • Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

                        – chri11
                        Dec 14 '18 at 9:06











                      • Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

                        – Peter Grill
                        Dec 14 '18 at 17:21



















                      • Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

                        – chri11
                        Dec 14 '18 at 9:06











                      • Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

                        – Peter Grill
                        Dec 14 '18 at 17:21

















                      Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

                      – chri11
                      Dec 14 '18 at 9:06





                      Same problem here: if i have another line above the first Leftrightarrow - Line it pulls the term to the very left "&&"-sign :/

                      – chri11
                      Dec 14 '18 at 9:06













                      Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

                      – Peter Grill
                      Dec 14 '18 at 17:21





                      Each & provide right alignment for the text before and left alignment for the left after, but without knowing more details it is difficult to help you further. Please update your test case in the question to more accurately reflect the issue you are having.

                      – Peter Grill
                      Dec 14 '18 at 17:21


















                      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%2f464802%2fsyntax-in-align-environment%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

                      Bressuire

                      Cabo Verde

                      Gyllenstierna