How can I align equations on the left in this system?











up vote
1
down vote

favorite












I have this code for building an equation system in Latex. I would like to align equation to the left.



begin{equation}
$$$left{ begin{array}{cc}
begin{aligned}
(x_{i},Pa_{j(X_{i})}),\
j=1 \
r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
j=2,...,m
end{aligned}
end{array}
right .$$$
end{equation}









share|improve this question













migrated from stackoverflow.com 6 mins ago


This question came from our site for professional and enthusiast programmers.



















    up vote
    1
    down vote

    favorite












    I have this code for building an equation system in Latex. I would like to align equation to the left.



    begin{equation}
    $$$left{ begin{array}{cc}
    begin{aligned}
    (x_{i},Pa_{j(X_{i})}),\
    j=1 \
    r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
    j=2,...,m
    end{aligned}
    end{array}
    right .$$$
    end{equation}









    share|improve this question













    migrated from stackoverflow.com 6 mins ago


    This question came from our site for professional and enthusiast programmers.

















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have this code for building an equation system in Latex. I would like to align equation to the left.



      begin{equation}
      $$$left{ begin{array}{cc}
      begin{aligned}
      (x_{i},Pa_{j(X_{i})}),\
      j=1 \
      r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
      j=2,...,m
      end{aligned}
      end{array}
      right .$$$
      end{equation}









      share|improve this question













      I have this code for building an equation system in Latex. I would like to align equation to the left.



      begin{equation}
      $$$left{ begin{array}{cc}
      begin{aligned}
      (x_{i},Pa_{j(X_{i})}),\
      j=1 \
      r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
      j=2,...,m
      end{aligned}
      end{array}
      right .$$$
      end{equation}






      equations






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago







      Elisa m











      migrated from stackoverflow.com 6 mins ago


      This question came from our site for professional and enthusiast programmers.






      migrated from stackoverflow.com 6 mins ago


      This question came from our site for professional and enthusiast programmers.
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          You can include an & at the start of each line within the aligned environment, this will align each line with the left edge.



          documentclass{article} 
          usepackage{amsmath}
          begin{document}

          begin{equation}
          $$$left{ begin{array}{cc}
          begin{aligned}
          &(x_{i},Pa_{j(X_{i})}),\
          &j=1 \
          &r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
          &j=2,...,m
          end{aligned}
          end{array}
          right .$$$
          end{equation}

          end{document}


          enter image description here






          share|improve this answer





















          • thank you very much!
            – Elisa m
            7 hours ago










          • Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
            – Werner
            6 hours ago


















          up vote
          0
          down vote













          You can use cases for this, since it aligns the first column on the left:



          enter image description here



          documentclass{article}

          usepackage{amsmath}

          DeclareMathOperator{Pa}{Pa}

          begin{document}

          begin{equation}
          begin{cases}
          (x_i, Pa_j(X_i)), \
          j = 1 \
          r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), \
          j = 2, dots, m
          end{cases}
          end{equation}

          end{document}


          However, based on your layout, you might be interested in



          enter image description here



          documentclass{article}

          usepackage{amsmath}

          DeclareMathOperator{Pa}{Pa}

          begin{document}

          begin{equation}
          begin{cases}
          r(x_i, Pa_j(X_i)), & j = 1, \
          r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), & j = 2, dots, m
          end{cases}
          end{equation}

          end{document}


          where you have conditionals for the cases.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466470%2fhow-can-i-align-equations-on-the-left-in-this-system%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown
























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            You can include an & at the start of each line within the aligned environment, this will align each line with the left edge.



            documentclass{article} 
            usepackage{amsmath}
            begin{document}

            begin{equation}
            $$$left{ begin{array}{cc}
            begin{aligned}
            &(x_{i},Pa_{j(X_{i})}),\
            &j=1 \
            &r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
            &j=2,...,m
            end{aligned}
            end{array}
            right .$$$
            end{equation}

            end{document}


            enter image description here






            share|improve this answer





















            • thank you very much!
              – Elisa m
              7 hours ago










            • Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
              – Werner
              6 hours ago















            up vote
            0
            down vote



            accepted










            You can include an & at the start of each line within the aligned environment, this will align each line with the left edge.



            documentclass{article} 
            usepackage{amsmath}
            begin{document}

            begin{equation}
            $$$left{ begin{array}{cc}
            begin{aligned}
            &(x_{i},Pa_{j(X_{i})}),\
            &j=1 \
            &r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
            &j=2,...,m
            end{aligned}
            end{array}
            right .$$$
            end{equation}

            end{document}


            enter image description here






            share|improve this answer





















            • thank you very much!
              – Elisa m
              7 hours ago










            • Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
              – Werner
              6 hours ago













            up vote
            0
            down vote



            accepted







            up vote
            0
            down vote



            accepted






            You can include an & at the start of each line within the aligned environment, this will align each line with the left edge.



            documentclass{article} 
            usepackage{amsmath}
            begin{document}

            begin{equation}
            $$$left{ begin{array}{cc}
            begin{aligned}
            &(x_{i},Pa_{j(X_{i})}),\
            &j=1 \
            &r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
            &j=2,...,m
            end{aligned}
            end{array}
            right .$$$
            end{equation}

            end{document}


            enter image description here






            share|improve this answer












            You can include an & at the start of each line within the aligned environment, this will align each line with the left edge.



            documentclass{article} 
            usepackage{amsmath}
            begin{document}

            begin{equation}
            $$$left{ begin{array}{cc}
            begin{aligned}
            &(x_{i},Pa_{j(X_{i})}),\
            &j=1 \
            &r(X_{i},Pa_{j}(X_{i}|Pa{1}(X_{i}),...,Pa{j-1}(X_{i}))),\
            &j=2,...,m
            end{aligned}
            end{array}
            right .$$$
            end{equation}

            end{document}


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 8 hours ago









            Matt

            1285




            1285












            • thank you very much!
              – Elisa m
              7 hours ago










            • Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
              – Werner
              6 hours ago


















            • thank you very much!
              – Elisa m
              7 hours ago










            • Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
              – Werner
              6 hours ago
















            thank you very much!
            – Elisa m
            7 hours ago




            thank you very much!
            – Elisa m
            7 hours ago












            Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
            – Werner
            6 hours ago




            Hmmm... what's happening with the equation number being lower than the actual equation? Also, why $$$...$$$?
            – Werner
            6 hours ago










            up vote
            0
            down vote













            You can use cases for this, since it aligns the first column on the left:



            enter image description here



            documentclass{article}

            usepackage{amsmath}

            DeclareMathOperator{Pa}{Pa}

            begin{document}

            begin{equation}
            begin{cases}
            (x_i, Pa_j(X_i)), \
            j = 1 \
            r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), \
            j = 2, dots, m
            end{cases}
            end{equation}

            end{document}


            However, based on your layout, you might be interested in



            enter image description here



            documentclass{article}

            usepackage{amsmath}

            DeclareMathOperator{Pa}{Pa}

            begin{document}

            begin{equation}
            begin{cases}
            r(x_i, Pa_j(X_i)), & j = 1, \
            r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), & j = 2, dots, m
            end{cases}
            end{equation}

            end{document}


            where you have conditionals for the cases.






            share|improve this answer

























              up vote
              0
              down vote













              You can use cases for this, since it aligns the first column on the left:



              enter image description here



              documentclass{article}

              usepackage{amsmath}

              DeclareMathOperator{Pa}{Pa}

              begin{document}

              begin{equation}
              begin{cases}
              (x_i, Pa_j(X_i)), \
              j = 1 \
              r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), \
              j = 2, dots, m
              end{cases}
              end{equation}

              end{document}


              However, based on your layout, you might be interested in



              enter image description here



              documentclass{article}

              usepackage{amsmath}

              DeclareMathOperator{Pa}{Pa}

              begin{document}

              begin{equation}
              begin{cases}
              r(x_i, Pa_j(X_i)), & j = 1, \
              r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), & j = 2, dots, m
              end{cases}
              end{equation}

              end{document}


              where you have conditionals for the cases.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                You can use cases for this, since it aligns the first column on the left:



                enter image description here



                documentclass{article}

                usepackage{amsmath}

                DeclareMathOperator{Pa}{Pa}

                begin{document}

                begin{equation}
                begin{cases}
                (x_i, Pa_j(X_i)), \
                j = 1 \
                r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), \
                j = 2, dots, m
                end{cases}
                end{equation}

                end{document}


                However, based on your layout, you might be interested in



                enter image description here



                documentclass{article}

                usepackage{amsmath}

                DeclareMathOperator{Pa}{Pa}

                begin{document}

                begin{equation}
                begin{cases}
                r(x_i, Pa_j(X_i)), & j = 1, \
                r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), & j = 2, dots, m
                end{cases}
                end{equation}

                end{document}


                where you have conditionals for the cases.






                share|improve this answer












                You can use cases for this, since it aligns the first column on the left:



                enter image description here



                documentclass{article}

                usepackage{amsmath}

                DeclareMathOperator{Pa}{Pa}

                begin{document}

                begin{equation}
                begin{cases}
                (x_i, Pa_j(X_i)), \
                j = 1 \
                r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), \
                j = 2, dots, m
                end{cases}
                end{equation}

                end{document}


                However, based on your layout, you might be interested in



                enter image description here



                documentclass{article}

                usepackage{amsmath}

                DeclareMathOperator{Pa}{Pa}

                begin{document}

                begin{equation}
                begin{cases}
                r(x_i, Pa_j(X_i)), & j = 1, \
                r(X_i, Pa_j(X_i mid Pa_1(X_i), dots, Pa_{j - 1}(X_i))), & j = 2, dots, m
                end{cases}
                end{equation}

                end{document}


                where you have conditionals for the cases.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 6 hours ago









                Werner

                435k629571645




                435k629571645






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466470%2fhow-can-i-align-equations-on-the-left-in-this-system%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

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                    Calculate evaluation metrics using cross_val_predict sklearn

                    Insert data from modal to MySQL (multiple modal on website)