How do you use decimal as labels in sub-equations instead of only whole numbers in align?












3















In the align environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align environments. Is there a way to do this?










share|improve this question




















  • 1





    may be you need the subequations environment

    – Hafid Boukhoulda
    Mar 4 at 19:14


















3















In the align environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align environments. Is there a way to do this?










share|improve this question




















  • 1





    may be you need the subequations environment

    – Hafid Boukhoulda
    Mar 4 at 19:14
















3












3








3








In the align environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align environments. Is there a way to do this?










share|improve this question
















In the align environment, it automatically labels consecutive lines within the same environment as (1),(2),...,(n), line by line. But I want it to organize equations more properly and use (1.0), (1.1), (1.2)... for the first equation in the first align environment, and then (2.0), (2.1), (2.2)... and etc for consecutive equations in following separate align environments. Is there a way to do this?







numbering align subequations






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 4 at 21:43









Mico

282k31386774




282k31386774










asked Mar 4 at 19:06









Vane VoeVane Voe

282




282








  • 1





    may be you need the subequations environment

    – Hafid Boukhoulda
    Mar 4 at 19:14
















  • 1





    may be you need the subequations environment

    – Hafid Boukhoulda
    Mar 4 at 19:14










1




1





may be you need the subequations environment

– Hafid Boukhoulda
Mar 4 at 19:14







may be you need the subequations environment

– Hafid Boukhoulda
Mar 4 at 19:14












2 Answers
2






active

oldest

votes


















4














I suggest you load the etoolbox package and use the patchcmd macro to "patch" the subequations environment in two places.



enter image description here



documentclass{article}
usepackage{amsmath} % for 'align' and 'subequations' environments
usepackage{etoolbox} % for 'patchcmd' macro
patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter

begin{document}

begin{subequations}
begin{align}
1+1=2\
2+2=4\
3+3=6
end{align}
end{subequations}

begin{subequations}
begin{align}
4+4=8\
0+0=0\
1-1=0
end{align}
end{subequations}
end{document}





share|improve this answer































    1














    enter image description here



    Use mathtools package to edit equation brackets. Use patchcmd from etoolbox to customize the way subequations tags will look like.



    Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment from etoolbox



    documentclass{book}

    usepackage{amsmath}
    renewcommand{theequation}{arabic{equation}}

    usepackage{amssymb, amsfonts}
    usepackage{adjustbox}
    usepackage{mathtools}

    newtagform{eqbrackets}{(}{)}
    usetagform{eqbrackets}


    usepackage{etoolbox}
    patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
    AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}


    begin{document}



    begin{subequations}


    begin{alignat}{3}
    I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
    label{eq:SubEq1}
    \
    %
    V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
    label{eq:SubEq2}
    \
    %
    P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
    label{eq:SubEq3}
    end{alignat}

    end{subequations}

    See SubEq. ref{eq:SubEq1}

    begin{subequations}

    begin{alignat}{3}
    I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
    label{eq:SubEq4}
    \
    %
    V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
    label{eq:SubEq5}
    \
    %
    P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
    label{eq:SubEq6}
    end{alignat}

    end{subequations}

    See SubEq. ref{eq:SubEq5}

    begin{subequations}

    begin{alignat}{3}
    I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
    \
    %
    V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
    \
    %
    P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
    end{alignat}

    end{subequations}



    end{document}





    share|improve this answer
























    • Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

      – Mico
      Mar 4 at 21:39













    • I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

      – Al-Motasem Aldaoudeyeh
      Mar 4 at 22:10











    • In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

      – Mico
      Mar 4 at 22:31











    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%2f477757%2fhow-do-you-use-decimal-as-labels-in-sub-equations-instead-of-only-whole-numbers%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









    4














    I suggest you load the etoolbox package and use the patchcmd macro to "patch" the subequations environment in two places.



    enter image description here



    documentclass{article}
    usepackage{amsmath} % for 'align' and 'subequations' environments
    usepackage{etoolbox} % for 'patchcmd' macro
    patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
    patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter

    begin{document}

    begin{subequations}
    begin{align}
    1+1=2\
    2+2=4\
    3+3=6
    end{align}
    end{subequations}

    begin{subequations}
    begin{align}
    4+4=8\
    0+0=0\
    1-1=0
    end{align}
    end{subequations}
    end{document}





    share|improve this answer




























      4














      I suggest you load the etoolbox package and use the patchcmd macro to "patch" the subequations environment in two places.



      enter image description here



      documentclass{article}
      usepackage{amsmath} % for 'align' and 'subequations' environments
      usepackage{etoolbox} % for 'patchcmd' macro
      patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
      patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter

      begin{document}

      begin{subequations}
      begin{align}
      1+1=2\
      2+2=4\
      3+3=6
      end{align}
      end{subequations}

      begin{subequations}
      begin{align}
      4+4=8\
      0+0=0\
      1-1=0
      end{align}
      end{subequations}
      end{document}





      share|improve this answer


























        4












        4








        4







        I suggest you load the etoolbox package and use the patchcmd macro to "patch" the subequations environment in two places.



        enter image description here



        documentclass{article}
        usepackage{amsmath} % for 'align' and 'subequations' environments
        usepackage{etoolbox} % for 'patchcmd' macro
        patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
        patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter

        begin{document}

        begin{subequations}
        begin{align}
        1+1=2\
        2+2=4\
        3+3=6
        end{align}
        end{subequations}

        begin{subequations}
        begin{align}
        4+4=8\
        0+0=0\
        1-1=0
        end{align}
        end{subequations}
        end{document}





        share|improve this answer













        I suggest you load the etoolbox package and use the patchcmd macro to "patch" the subequations environment in two places.



        enter image description here



        documentclass{article}
        usepackage{amsmath} % for 'align' and 'subequations' environments
        usepackage{etoolbox} % for 'patchcmd' macro
        patchcmd{subequations}{{0}}{{-1}}{}{} % decrement the equation counter
        patchcmd{subequations}{alph}{.arabic}{}{} % change display format of eq. counter

        begin{document}

        begin{subequations}
        begin{align}
        1+1=2\
        2+2=4\
        3+3=6
        end{align}
        end{subequations}

        begin{subequations}
        begin{align}
        4+4=8\
        0+0=0\
        1-1=0
        end{align}
        end{subequations}
        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 4 at 21:36









        MicoMico

        282k31386774




        282k31386774























            1














            enter image description here



            Use mathtools package to edit equation brackets. Use patchcmd from etoolbox to customize the way subequations tags will look like.



            Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment from etoolbox



            documentclass{book}

            usepackage{amsmath}
            renewcommand{theequation}{arabic{equation}}

            usepackage{amssymb, amsfonts}
            usepackage{adjustbox}
            usepackage{mathtools}

            newtagform{eqbrackets}{(}{)}
            usetagform{eqbrackets}


            usepackage{etoolbox}
            patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
            AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}


            begin{document}



            begin{subequations}


            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq1}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq2}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq3}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq1}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq4}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq5}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq6}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq5}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            end{alignat}

            end{subequations}



            end{document}





            share|improve this answer
























            • Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

              – Mico
              Mar 4 at 21:39













            • I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

              – Al-Motasem Aldaoudeyeh
              Mar 4 at 22:10











            • In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

              – Mico
              Mar 4 at 22:31
















            1














            enter image description here



            Use mathtools package to edit equation brackets. Use patchcmd from etoolbox to customize the way subequations tags will look like.



            Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment from etoolbox



            documentclass{book}

            usepackage{amsmath}
            renewcommand{theequation}{arabic{equation}}

            usepackage{amssymb, amsfonts}
            usepackage{adjustbox}
            usepackage{mathtools}

            newtagform{eqbrackets}{(}{)}
            usetagform{eqbrackets}


            usepackage{etoolbox}
            patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
            AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}


            begin{document}



            begin{subequations}


            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq1}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq2}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq3}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq1}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq4}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq5}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq6}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq5}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            end{alignat}

            end{subequations}



            end{document}





            share|improve this answer
























            • Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

              – Mico
              Mar 4 at 21:39













            • I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

              – Al-Motasem Aldaoudeyeh
              Mar 4 at 22:10











            • In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

              – Mico
              Mar 4 at 22:31














            1












            1








            1







            enter image description here



            Use mathtools package to edit equation brackets. Use patchcmd from etoolbox to customize the way subequations tags will look like.



            Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment from etoolbox



            documentclass{book}

            usepackage{amsmath}
            renewcommand{theequation}{arabic{equation}}

            usepackage{amssymb, amsfonts}
            usepackage{adjustbox}
            usepackage{mathtools}

            newtagform{eqbrackets}{(}{)}
            usetagform{eqbrackets}


            usepackage{etoolbox}
            patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
            AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}


            begin{document}



            begin{subequations}


            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq1}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq2}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq3}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq1}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq4}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq5}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq6}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq5}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            end{alignat}

            end{subequations}



            end{document}





            share|improve this answer













            enter image description here



            Use mathtools package to edit equation brackets. Use patchcmd from etoolbox to customize the way subequations tags will look like.



            Equations and subequations start at 1 when numbered. To change this behavior, use AtBeginEnvironment from etoolbox



            documentclass{book}

            usepackage{amsmath}
            renewcommand{theequation}{arabic{equation}}

            usepackage{amssymb, amsfonts}
            usepackage{adjustbox}
            usepackage{mathtools}

            newtagform{eqbrackets}{(}{)}
            usetagform{eqbrackets}


            usepackage{etoolbox}
            patchcmd{subequations}{alph{equation}}{.arabic{equation}}{}{}
            AtBeginEnvironment{alignat}{addtocounter{equation}{-1}}


            begin{document}



            begin{subequations}


            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq1}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq2}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq3}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq1}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq4}
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq5}
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            label{eq:SubEq6}
            end{alignat}

            end{subequations}

            See SubEq. ref{eq:SubEq5}

            begin{subequations}

            begin{alignat}{3}
            I_{sc} & = I_{sc,ref} & bigg[ 1 + frac{alpha}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            V_{oc} & = V_{oc,ref} & bigg[ 1 + frac{beta}{100} (T_{op}-T_{ref}) biggl]
            \
            %
            P_{mp} & = P_{mp,ref} & bigg[ 1 + frac{gamma}{100} (T_{op}-T_{ref}) biggl]
            end{alignat}

            end{subequations}



            end{document}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 4 at 21:27









            Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh

            1,666413




            1,666413













            • Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

              – Mico
              Mar 4 at 21:39













            • I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

              – Al-Motasem Aldaoudeyeh
              Mar 4 at 22:10











            • In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

              – Mico
              Mar 4 at 22:31



















            • Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

              – Mico
              Mar 4 at 21:39













            • I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

              – Al-Motasem Aldaoudeyeh
              Mar 4 at 22:10











            • In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

              – Mico
              Mar 4 at 22:31

















            Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

            – Mico
            Mar 4 at 21:39







            Your solution would appear to work at present only for alignat environments. How would you generalize the solution to deal with align environments as well (which are employed by the OP) or, for that matter, for any numbered multi-line math environment?

            – Mico
            Mar 4 at 21:39















            I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

            – Al-Motasem Aldaoudeyeh
            Mar 4 at 22:10





            I was just trying to offer the best help I can. In your solution you identified {1} refers to the subequation number when starting subequations and replaced it with {0} which leads to setting subequations number to 0 in align or alignedat. But how did you know that {1} in subequations exist only once and refers to subeqiations numbering and decided that it is safe to replace it?

            – Al-Motasem Aldaoudeyeh
            Mar 4 at 22:10













            In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

            – Mico
            Mar 4 at 22:31





            In the code for the subequations environment in the file amsmath.sty, there is the following instruction: setcounter{equation}{0}. It's the only instance of {0}; that's why it's "safe" to replace it with {-1}.

            – Mico
            Mar 4 at 22:31


















            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%2f477757%2fhow-do-you-use-decimal-as-labels-in-sub-equations-instead-of-only-whole-numbers%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 change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

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