How do I align multiple equations together at different points












1















If I have a document as shown



documentclass{article}
usepackage{amsmath}

begin{document}

begin{align*}
&y= 3x +2\
&implies x &&= 48 \
&&= sin{x}
end{align*}

end{document}


and I want to align the places with double & together and the points with & together how do I do them both at the same time?










share|improve this question

























  • How do I add a sketch?

    – user61882
    Feb 17 at 16:45











  • It is a picture showing what you need.

    – JouleV
    Feb 17 at 16:53
















1















If I have a document as shown



documentclass{article}
usepackage{amsmath}

begin{document}

begin{align*}
&y= 3x +2\
&implies x &&= 48 \
&&= sin{x}
end{align*}

end{document}


and I want to align the places with double & together and the points with & together how do I do them both at the same time?










share|improve this question

























  • How do I add a sketch?

    – user61882
    Feb 17 at 16:45











  • It is a picture showing what you need.

    – JouleV
    Feb 17 at 16:53














1












1








1








If I have a document as shown



documentclass{article}
usepackage{amsmath}

begin{document}

begin{align*}
&y= 3x +2\
&implies x &&= 48 \
&&= sin{x}
end{align*}

end{document}


and I want to align the places with double & together and the points with & together how do I do them both at the same time?










share|improve this question
















If I have a document as shown



documentclass{article}
usepackage{amsmath}

begin{document}

begin{align*}
&y= 3x +2\
&implies x &&= 48 \
&&= sin{x}
end{align*}

end{document}


and I want to align the places with double & together and the points with & together how do I do them both at the same time?







alignment






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 16:40









AndréC

9,28111447




9,28111447










asked Feb 17 at 16:37









user61882user61882

162




162













  • How do I add a sketch?

    – user61882
    Feb 17 at 16:45











  • It is a picture showing what you need.

    – JouleV
    Feb 17 at 16:53



















  • How do I add a sketch?

    – user61882
    Feb 17 at 16:45











  • It is a picture showing what you need.

    – JouleV
    Feb 17 at 16:53

















How do I add a sketch?

– user61882
Feb 17 at 16:45





How do I add a sketch?

– user61882
Feb 17 at 16:45













It is a picture showing what you need.

– JouleV
Feb 17 at 16:53





It is a picture showing what you need.

– JouleV
Feb 17 at 16:53










3 Answers
3






active

oldest

votes


















2














Here are three other possibilities, with mathtools (which extends amsmath) and makebox:



documentclass{article}
usepackage{mathtools}
usepackage{makebox}

begin{document}

begin{alignat*}{2}
& & y & = 3x +2\
ArrowBetweenLines[Downarrow] & & x &= 48 \
& & & = sin{x}
end{alignat*}

begin{alignat*}{2}
y & = 3x +2 & & \
ArrowBetweenLines*[Downarrow] x &= 48 & &\
& = sin{x}& &
end{alignat*}

begin{align*}
y & = 3x +2\[-0.5ex]
&makebox*{${}= {}$}{$ Downarrow $}\[-0.5ex]
x &= 48 \
&= sin{x}
end{align*}

end{document}


enter image description here






share|improve this answer































    2














    If I understood the question correctly:



    Quick hack (corrected by John Kormylo in his comment)



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    begin{align*}
    &y= 3x +2\
    &implies x = 48 \
    & phantom{nullimplies x}= sin{x}
    end{align*}

    end{document}


    screenshot



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    begin{align*}
    &y= 3x +2\
    &implies x &&= 48 \
    &&&= sin{x}
    end{align*}

    end{document}


    screenshot






    share|improve this answer


























    • That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

      – user61882
      Feb 17 at 16:46








    • 1





      Is a quick hack like this suitable for you?

      – AndréC
      Feb 17 at 16:53











    • Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

      – John Kormylo
      Feb 17 at 20:34



















    1














    Another kind of alignment. It concerns the alignment of the symbol =



    enter image description here



    documentclass{article}
    usepackage{amsmath}
    begin{document}
    begin{align*}
    y&= 3x +2 implies\
    x &= 48 \
    &= sin{x}
    end{align*}
    end{document}





    share|improve this answer
























    • That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

      – user61882
      Feb 17 at 17:00











    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%2f475348%2fhow-do-i-align-multiple-equations-together-at-different-points%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









    2














    Here are three other possibilities, with mathtools (which extends amsmath) and makebox:



    documentclass{article}
    usepackage{mathtools}
    usepackage{makebox}

    begin{document}

    begin{alignat*}{2}
    & & y & = 3x +2\
    ArrowBetweenLines[Downarrow] & & x &= 48 \
    & & & = sin{x}
    end{alignat*}

    begin{alignat*}{2}
    y & = 3x +2 & & \
    ArrowBetweenLines*[Downarrow] x &= 48 & &\
    & = sin{x}& &
    end{alignat*}

    begin{align*}
    y & = 3x +2\[-0.5ex]
    &makebox*{${}= {}$}{$ Downarrow $}\[-0.5ex]
    x &= 48 \
    &= sin{x}
    end{align*}

    end{document}


    enter image description here






    share|improve this answer




























      2














      Here are three other possibilities, with mathtools (which extends amsmath) and makebox:



      documentclass{article}
      usepackage{mathtools}
      usepackage{makebox}

      begin{document}

      begin{alignat*}{2}
      & & y & = 3x +2\
      ArrowBetweenLines[Downarrow] & & x &= 48 \
      & & & = sin{x}
      end{alignat*}

      begin{alignat*}{2}
      y & = 3x +2 & & \
      ArrowBetweenLines*[Downarrow] x &= 48 & &\
      & = sin{x}& &
      end{alignat*}

      begin{align*}
      y & = 3x +2\[-0.5ex]
      &makebox*{${}= {}$}{$ Downarrow $}\[-0.5ex]
      x &= 48 \
      &= sin{x}
      end{align*}

      end{document}


      enter image description here






      share|improve this answer


























        2












        2








        2







        Here are three other possibilities, with mathtools (which extends amsmath) and makebox:



        documentclass{article}
        usepackage{mathtools}
        usepackage{makebox}

        begin{document}

        begin{alignat*}{2}
        & & y & = 3x +2\
        ArrowBetweenLines[Downarrow] & & x &= 48 \
        & & & = sin{x}
        end{alignat*}

        begin{alignat*}{2}
        y & = 3x +2 & & \
        ArrowBetweenLines*[Downarrow] x &= 48 & &\
        & = sin{x}& &
        end{alignat*}

        begin{align*}
        y & = 3x +2\[-0.5ex]
        &makebox*{${}= {}$}{$ Downarrow $}\[-0.5ex]
        x &= 48 \
        &= sin{x}
        end{align*}

        end{document}


        enter image description here






        share|improve this answer













        Here are three other possibilities, with mathtools (which extends amsmath) and makebox:



        documentclass{article}
        usepackage{mathtools}
        usepackage{makebox}

        begin{document}

        begin{alignat*}{2}
        & & y & = 3x +2\
        ArrowBetweenLines[Downarrow] & & x &= 48 \
        & & & = sin{x}
        end{alignat*}

        begin{alignat*}{2}
        y & = 3x +2 & & \
        ArrowBetweenLines*[Downarrow] x &= 48 & &\
        & = sin{x}& &
        end{alignat*}

        begin{align*}
        y & = 3x +2\[-0.5ex]
        &makebox*{${}= {}$}{$ Downarrow $}\[-0.5ex]
        x &= 48 \
        &= sin{x}
        end{align*}

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 17 at 18:09









        BernardBernard

        171k775202




        171k775202























            2














            If I understood the question correctly:



            Quick hack (corrected by John Kormylo in his comment)



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x = 48 \
            & phantom{nullimplies x}= sin{x}
            end{align*}

            end{document}


            screenshot



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x &&= 48 \
            &&&= sin{x}
            end{align*}

            end{document}


            screenshot






            share|improve this answer


























            • That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

              – user61882
              Feb 17 at 16:46








            • 1





              Is a quick hack like this suitable for you?

              – AndréC
              Feb 17 at 16:53











            • Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

              – John Kormylo
              Feb 17 at 20:34
















            2














            If I understood the question correctly:



            Quick hack (corrected by John Kormylo in his comment)



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x = 48 \
            & phantom{nullimplies x}= sin{x}
            end{align*}

            end{document}


            screenshot



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x &&= 48 \
            &&&= sin{x}
            end{align*}

            end{document}


            screenshot






            share|improve this answer


























            • That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

              – user61882
              Feb 17 at 16:46








            • 1





              Is a quick hack like this suitable for you?

              – AndréC
              Feb 17 at 16:53











            • Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

              – John Kormylo
              Feb 17 at 20:34














            2












            2








            2







            If I understood the question correctly:



            Quick hack (corrected by John Kormylo in his comment)



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x = 48 \
            & phantom{nullimplies x}= sin{x}
            end{align*}

            end{document}


            screenshot



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x &&= 48 \
            &&&= sin{x}
            end{align*}

            end{document}


            screenshot






            share|improve this answer















            If I understood the question correctly:



            Quick hack (corrected by John Kormylo in his comment)



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x = 48 \
            & phantom{nullimplies x}= sin{x}
            end{align*}

            end{document}


            screenshot



            documentclass{article}
            usepackage{amsmath}

            begin{document}

            begin{align*}
            &y= 3x +2\
            &implies x &&= 48 \
            &&&= sin{x}
            end{align*}

            end{document}


            screenshot







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 18 at 4:17

























            answered Feb 17 at 16:42









            AndréCAndréC

            9,28111447




            9,28111447













            • That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

              – user61882
              Feb 17 at 16:46








            • 1





              Is a quick hack like this suitable for you?

              – AndréC
              Feb 17 at 16:53











            • Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

              – John Kormylo
              Feb 17 at 20:34



















            • That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

              – user61882
              Feb 17 at 16:46








            • 1





              Is a quick hack like this suitable for you?

              – AndréC
              Feb 17 at 16:53











            • Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

              – John Kormylo
              Feb 17 at 20:34

















            That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

            – user61882
            Feb 17 at 16:46







            That is sort of it, I would like the 48 to be next to the x though like ` $x=48$` and the $sin{x}$ underneath the 48

            – user61882
            Feb 17 at 16:46






            1




            1





            Is a quick hack like this suitable for you?

            – AndréC
            Feb 17 at 16:53





            Is a quick hack like this suitable for you?

            – AndréC
            Feb 17 at 16:53













            Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

            – John Kormylo
            Feb 17 at 20:34





            Use phantom{nullimplies x}. Operators need operands (or &) on both sides.

            – John Kormylo
            Feb 17 at 20:34











            1














            Another kind of alignment. It concerns the alignment of the symbol =



            enter image description here



            documentclass{article}
            usepackage{amsmath}
            begin{document}
            begin{align*}
            y&= 3x +2 implies\
            x &= 48 \
            &= sin{x}
            end{align*}
            end{document}





            share|improve this answer
























            • That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

              – user61882
              Feb 17 at 17:00
















            1














            Another kind of alignment. It concerns the alignment of the symbol =



            enter image description here



            documentclass{article}
            usepackage{amsmath}
            begin{document}
            begin{align*}
            y&= 3x +2 implies\
            x &= 48 \
            &= sin{x}
            end{align*}
            end{document}





            share|improve this answer
























            • That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

              – user61882
              Feb 17 at 17:00














            1












            1








            1







            Another kind of alignment. It concerns the alignment of the symbol =



            enter image description here



            documentclass{article}
            usepackage{amsmath}
            begin{document}
            begin{align*}
            y&= 3x +2 implies\
            x &= 48 \
            &= sin{x}
            end{align*}
            end{document}





            share|improve this answer













            Another kind of alignment. It concerns the alignment of the symbol =



            enter image description here



            documentclass{article}
            usepackage{amsmath}
            begin{document}
            begin{align*}
            y&= 3x +2 implies\
            x &= 48 \
            &= sin{x}
            end{align*}
            end{document}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 17 at 16:41









            SebastianoSebastiano

            10.2k41960




            10.2k41960













            • That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

              – user61882
              Feb 17 at 17:00



















            • That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

              – user61882
              Feb 17 at 17:00

















            That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

            – user61882
            Feb 17 at 17:00





            That is closer but imagine that I wanted only the $sin{x}$ and 48 aligned together and the $implies$ aligned with the $y$

            – user61882
            Feb 17 at 17:00


















            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%2f475348%2fhow-do-i-align-multiple-equations-together-at-different-points%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?