Using numcases with cases












0















I have an equation like so:



   [ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]


This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between [] or the-like.
Is there a way to do this?



Patrick










share|improve this question























  • Where did you get numcases? It isn't in amsmath or mathtools.

    – John Kormylo
    Feb 23 at 15:29
















0















I have an equation like so:



   [ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]


This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between [] or the-like.
Is there a way to do this?



Patrick










share|improve this question























  • Where did you get numcases? It isn't in amsmath or mathtools.

    – John Kormylo
    Feb 23 at 15:29














0












0








0








I have an equation like so:



   [ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]


This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between [] or the-like.
Is there a way to do this?



Patrick










share|improve this question














I have an equation like so:



   [ begin{cases}
Eqn1 &= 0,\
Eqn2 &= 0,
end{cases} iff
begin{cases}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{cases}
]


This works all nice and good, however, I would like to numerate the "right side" of those (in this case 3) equations. Naively, I thought I could use numcases for the second "block", but of course this is good as numcases for some reason cannot be between [] or the-like.
Is there a way to do this?



Patrick







math-mode equations labels cases






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 23 at 15:21









Patrick.BPatrick.B

82




82













  • Where did you get numcases? It isn't in amsmath or mathtools.

    – John Kormylo
    Feb 23 at 15:29



















  • Where did you get numcases? It isn't in amsmath or mathtools.

    – John Kormylo
    Feb 23 at 15:29

















Where did you get numcases? It isn't in amsmath or mathtools.

– John Kormylo
Feb 23 at 15:29





Where did you get numcases? It isn't in amsmath or mathtools.

– John Kormylo
Feb 23 at 15:29










2 Answers
2






active

oldest

votes


















2














I'm not sure your readers will understand what the numbers refer to.



documentclass{article}
usepackage{empheq} % also loads amsmath

begin{document}

begin{empheq}[
left=
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases}} iff
empheqlbrace
]{align}
Eqn3 &= 0,\
Eqn4 &= 0,\
Eqn5 &= 0.
end{empheq}

end{document}


The additional braces around begin{cases}...end{cases} are needed because there are commas in the code. Note that you shouldn't use &= inside cases (thanks to Bernard for noting).



enter image description here






share|improve this answer





















  • 1





    The spacing of = is not correct in the cases envritonment.

    – Bernard
    Feb 23 at 16:13











  • @Bernard Right. Fixed with acknowledgment.

    – egreg
    Feb 23 at 16:16











  • If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

    – manooooh
    Feb 23 at 16:29





















1














To disambiguate to which equalities the numbers refer to, one may use theadjustwidth environment, to have the numbers closer. Also, one can nest cases in the left-side argument of numcases:



documentclass{article}
usepackage{cases}
usepackage{changepage}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}

begin{document}

begin{adjustwidth}{6em}{6em}
begin{numcases}
{begin{cases}
Eqn1 = 0,\
Eqn2 = 0,
end{cases} iff}
Eqn3 = 0,\
Eqn4 = 0,\
Eqn5 = 0.
end{numcases}
end{adjustwidth}

end{document}


enter image description here






share|improve this answer























    Your Answer








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

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

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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476343%2fusing-numcases-with-cases%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









    2














    I'm not sure your readers will understand what the numbers refer to.



    documentclass{article}
    usepackage{empheq} % also loads amsmath

    begin{document}

    begin{empheq}[
    left=
    {begin{cases}
    Eqn1 = 0,\
    Eqn2 = 0,
    end{cases}} iff
    empheqlbrace
    ]{align}
    Eqn3 &= 0,\
    Eqn4 &= 0,\
    Eqn5 &= 0.
    end{empheq}

    end{document}


    The additional braces around begin{cases}...end{cases} are needed because there are commas in the code. Note that you shouldn't use &= inside cases (thanks to Bernard for noting).



    enter image description here






    share|improve this answer





















    • 1





      The spacing of = is not correct in the cases envritonment.

      – Bernard
      Feb 23 at 16:13











    • @Bernard Right. Fixed with acknowledgment.

      – egreg
      Feb 23 at 16:16











    • If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

      – manooooh
      Feb 23 at 16:29


















    2














    I'm not sure your readers will understand what the numbers refer to.



    documentclass{article}
    usepackage{empheq} % also loads amsmath

    begin{document}

    begin{empheq}[
    left=
    {begin{cases}
    Eqn1 = 0,\
    Eqn2 = 0,
    end{cases}} iff
    empheqlbrace
    ]{align}
    Eqn3 &= 0,\
    Eqn4 &= 0,\
    Eqn5 &= 0.
    end{empheq}

    end{document}


    The additional braces around begin{cases}...end{cases} are needed because there are commas in the code. Note that you shouldn't use &= inside cases (thanks to Bernard for noting).



    enter image description here






    share|improve this answer





















    • 1





      The spacing of = is not correct in the cases envritonment.

      – Bernard
      Feb 23 at 16:13











    • @Bernard Right. Fixed with acknowledgment.

      – egreg
      Feb 23 at 16:16











    • If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

      – manooooh
      Feb 23 at 16:29
















    2












    2








    2







    I'm not sure your readers will understand what the numbers refer to.



    documentclass{article}
    usepackage{empheq} % also loads amsmath

    begin{document}

    begin{empheq}[
    left=
    {begin{cases}
    Eqn1 = 0,\
    Eqn2 = 0,
    end{cases}} iff
    empheqlbrace
    ]{align}
    Eqn3 &= 0,\
    Eqn4 &= 0,\
    Eqn5 &= 0.
    end{empheq}

    end{document}


    The additional braces around begin{cases}...end{cases} are needed because there are commas in the code. Note that you shouldn't use &= inside cases (thanks to Bernard for noting).



    enter image description here






    share|improve this answer















    I'm not sure your readers will understand what the numbers refer to.



    documentclass{article}
    usepackage{empheq} % also loads amsmath

    begin{document}

    begin{empheq}[
    left=
    {begin{cases}
    Eqn1 = 0,\
    Eqn2 = 0,
    end{cases}} iff
    empheqlbrace
    ]{align}
    Eqn3 &= 0,\
    Eqn4 &= 0,\
    Eqn5 &= 0.
    end{empheq}

    end{document}


    The additional braces around begin{cases}...end{cases} are needed because there are commas in the code. Note that you shouldn't use &= inside cases (thanks to Bernard for noting).



    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 23 at 16:16

























    answered Feb 23 at 15:52









    egregegreg

    723k8819173221




    723k8819173221








    • 1





      The spacing of = is not correct in the cases envritonment.

      – Bernard
      Feb 23 at 16:13











    • @Bernard Right. Fixed with acknowledgment.

      – egreg
      Feb 23 at 16:16











    • If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

      – manooooh
      Feb 23 at 16:29
















    • 1





      The spacing of = is not correct in the cases envritonment.

      – Bernard
      Feb 23 at 16:13











    • @Bernard Right. Fixed with acknowledgment.

      – egreg
      Feb 23 at 16:16











    • If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

      – manooooh
      Feb 23 at 16:29










    1




    1





    The spacing of = is not correct in the cases envritonment.

    – Bernard
    Feb 23 at 16:13





    The spacing of = is not correct in the cases envritonment.

    – Bernard
    Feb 23 at 16:13













    @Bernard Right. Fixed with acknowledgment.

    – egreg
    Feb 23 at 16:16





    @Bernard Right. Fixed with acknowledgment.

    – egreg
    Feb 23 at 16:16













    If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

    – manooooh
    Feb 23 at 16:29







    If the OP wants to get a proper space between system of equations I suggest follow this @egreg's answer: How to get rid of & in cases environment but still get the same space in the surroundings.

    – manooooh
    Feb 23 at 16:29













    1














    To disambiguate to which equalities the numbers refer to, one may use theadjustwidth environment, to have the numbers closer. Also, one can nest cases in the left-side argument of numcases:



    documentclass{article}
    usepackage{cases}
    usepackage{changepage}
    usepackage{showframe}
    renewcommand{ShowFrameLinethickness}{0.3pt}

    begin{document}

    begin{adjustwidth}{6em}{6em}
    begin{numcases}
    {begin{cases}
    Eqn1 = 0,\
    Eqn2 = 0,
    end{cases} iff}
    Eqn3 = 0,\
    Eqn4 = 0,\
    Eqn5 = 0.
    end{numcases}
    end{adjustwidth}

    end{document}


    enter image description here






    share|improve this answer




























      1














      To disambiguate to which equalities the numbers refer to, one may use theadjustwidth environment, to have the numbers closer. Also, one can nest cases in the left-side argument of numcases:



      documentclass{article}
      usepackage{cases}
      usepackage{changepage}
      usepackage{showframe}
      renewcommand{ShowFrameLinethickness}{0.3pt}

      begin{document}

      begin{adjustwidth}{6em}{6em}
      begin{numcases}
      {begin{cases}
      Eqn1 = 0,\
      Eqn2 = 0,
      end{cases} iff}
      Eqn3 = 0,\
      Eqn4 = 0,\
      Eqn5 = 0.
      end{numcases}
      end{adjustwidth}

      end{document}


      enter image description here






      share|improve this answer


























        1












        1








        1







        To disambiguate to which equalities the numbers refer to, one may use theadjustwidth environment, to have the numbers closer. Also, one can nest cases in the left-side argument of numcases:



        documentclass{article}
        usepackage{cases}
        usepackage{changepage}
        usepackage{showframe}
        renewcommand{ShowFrameLinethickness}{0.3pt}

        begin{document}

        begin{adjustwidth}{6em}{6em}
        begin{numcases}
        {begin{cases}
        Eqn1 = 0,\
        Eqn2 = 0,
        end{cases} iff}
        Eqn3 = 0,\
        Eqn4 = 0,\
        Eqn5 = 0.
        end{numcases}
        end{adjustwidth}

        end{document}


        enter image description here






        share|improve this answer













        To disambiguate to which equalities the numbers refer to, one may use theadjustwidth environment, to have the numbers closer. Also, one can nest cases in the left-side argument of numcases:



        documentclass{article}
        usepackage{cases}
        usepackage{changepage}
        usepackage{showframe}
        renewcommand{ShowFrameLinethickness}{0.3pt}

        begin{document}

        begin{adjustwidth}{6em}{6em}
        begin{numcases}
        {begin{cases}
        Eqn1 = 0,\
        Eqn2 = 0,
        end{cases} iff}
        Eqn3 = 0,\
        Eqn4 = 0,\
        Eqn5 = 0.
        end{numcases}
        end{adjustwidth}

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 23 at 16:23









        BernardBernard

        172k775203




        172k775203






























            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%2f476343%2fusing-numcases-with-cases%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

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?