How to label equation with particular format?












3















I have several equations, I want to label equation 1 and 2 to be (eqt1) and (eqt2), any other equations after it use normal equation number, say (1), (2), (3),... How to do it in latex?



E.g.



begin{align}
1+1=2 (eqt1)
end{align}

begin{align}
2+3=5 (eqt2)
end{align}

begin{align}
3+3=6 (1)
end{align}

begin{align}
4+3=7 (2)
end{align}









share|improve this question









New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • That's the work for tag{hello}

    – JouleV
    2 days ago











  • please have a look at tex.stackexchange.com/questions/28894/modify-eqref-command

    – Yorgos
    2 days ago











  • @Yorgos We can straightaway achieve it with tag{...} (which is part of amsmath package) to customise the label of equations and then use the normal way of cross-referencing the equations with eqref{...}.

    – Raaja
    2 days ago








  • 1





    @Raaja oo nice... i didn't know this command, since i am using mathtools instead of amsmath

    – Yorgos
    2 days ago











  • @Yorgos [Fun-fact] It is applicable for mathtools as well ;)

    – Raaja
    2 days ago
















3















I have several equations, I want to label equation 1 and 2 to be (eqt1) and (eqt2), any other equations after it use normal equation number, say (1), (2), (3),... How to do it in latex?



E.g.



begin{align}
1+1=2 (eqt1)
end{align}

begin{align}
2+3=5 (eqt2)
end{align}

begin{align}
3+3=6 (1)
end{align}

begin{align}
4+3=7 (2)
end{align}









share|improve this question









New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • That's the work for tag{hello}

    – JouleV
    2 days ago











  • please have a look at tex.stackexchange.com/questions/28894/modify-eqref-command

    – Yorgos
    2 days ago











  • @Yorgos We can straightaway achieve it with tag{...} (which is part of amsmath package) to customise the label of equations and then use the normal way of cross-referencing the equations with eqref{...}.

    – Raaja
    2 days ago








  • 1





    @Raaja oo nice... i didn't know this command, since i am using mathtools instead of amsmath

    – Yorgos
    2 days ago











  • @Yorgos [Fun-fact] It is applicable for mathtools as well ;)

    – Raaja
    2 days ago














3












3








3








I have several equations, I want to label equation 1 and 2 to be (eqt1) and (eqt2), any other equations after it use normal equation number, say (1), (2), (3),... How to do it in latex?



E.g.



begin{align}
1+1=2 (eqt1)
end{align}

begin{align}
2+3=5 (eqt2)
end{align}

begin{align}
3+3=6 (1)
end{align}

begin{align}
4+3=7 (2)
end{align}









share|improve this question









New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have several equations, I want to label equation 1 and 2 to be (eqt1) and (eqt2), any other equations after it use normal equation number, say (1), (2), (3),... How to do it in latex?



E.g.



begin{align}
1+1=2 (eqt1)
end{align}

begin{align}
2+3=5 (eqt2)
end{align}

begin{align}
3+3=6 (1)
end{align}

begin{align}
4+3=7 (2)
end{align}






equations numbering






share|improve this question









New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









Raaja

2,4552732




2,4552732






New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









will_cheukwill_cheuk

161




161




New contributor




will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






will_cheuk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • That's the work for tag{hello}

    – JouleV
    2 days ago











  • please have a look at tex.stackexchange.com/questions/28894/modify-eqref-command

    – Yorgos
    2 days ago











  • @Yorgos We can straightaway achieve it with tag{...} (which is part of amsmath package) to customise the label of equations and then use the normal way of cross-referencing the equations with eqref{...}.

    – Raaja
    2 days ago








  • 1





    @Raaja oo nice... i didn't know this command, since i am using mathtools instead of amsmath

    – Yorgos
    2 days ago











  • @Yorgos [Fun-fact] It is applicable for mathtools as well ;)

    – Raaja
    2 days ago



















  • That's the work for tag{hello}

    – JouleV
    2 days ago











  • please have a look at tex.stackexchange.com/questions/28894/modify-eqref-command

    – Yorgos
    2 days ago











  • @Yorgos We can straightaway achieve it with tag{...} (which is part of amsmath package) to customise the label of equations and then use the normal way of cross-referencing the equations with eqref{...}.

    – Raaja
    2 days ago








  • 1





    @Raaja oo nice... i didn't know this command, since i am using mathtools instead of amsmath

    – Yorgos
    2 days ago











  • @Yorgos [Fun-fact] It is applicable for mathtools as well ;)

    – Raaja
    2 days ago

















That's the work for tag{hello}

– JouleV
2 days ago





That's the work for tag{hello}

– JouleV
2 days ago













please have a look at tex.stackexchange.com/questions/28894/modify-eqref-command

– Yorgos
2 days ago





please have a look at tex.stackexchange.com/questions/28894/modify-eqref-command

– Yorgos
2 days ago













@Yorgos We can straightaway achieve it with tag{...} (which is part of amsmath package) to customise the label of equations and then use the normal way of cross-referencing the equations with eqref{...}.

– Raaja
2 days ago







@Yorgos We can straightaway achieve it with tag{...} (which is part of amsmath package) to customise the label of equations and then use the normal way of cross-referencing the equations with eqref{...}.

– Raaja
2 days ago






1




1





@Raaja oo nice... i didn't know this command, since i am using mathtools instead of amsmath

– Yorgos
2 days ago





@Raaja oo nice... i didn't know this command, since i am using mathtools instead of amsmath

– Yorgos
2 days ago













@Yorgos [Fun-fact] It is applicable for mathtools as well ;)

– Raaja
2 days ago





@Yorgos [Fun-fact] It is applicable for mathtools as well ;)

– Raaja
2 days ago










2 Answers
2






active

oldest

votes


















6














With amsmath package, you can achieve it with tag environment.



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

begin{document}
begin{align}
label{e1} 1+1=2 tag{eqt1}
end{align}

begin{align}
label{e2} 2+3=5 tag{eqt2}
end{align}

begin{align}
label{e3} 3+3=6
end{align}

begin{align}
label{e4} 4+3=7
end{align}
I am referring eqref{e1}, eqref{e2}, eqref{e3}, eqref{e4}.
end{document}


Which would give you



enter image description here






share|improve this answer































    4














    Another possibility, using the same equation counter as the default: mathtools has a newtagform command, which can be used to customise the appearance of the equation number, and a usetagform command which can be used within the document body:



    documentclass[10pt,a4paper]{article}
    usepackage{mathtools}
    newtagform{eqt}{(eqt,}{)}

    begin{document}

    usetagform{eqt}
    begin{align}
    label{e1} 1+1=2
    end{align}

    begin{align}
    label{e2} 2+3=5
    end{align}

    usetagform{default}
    begin{align}
    label{e3} 3+3=6
    end{align}

    begin{align}
    label{e4} 4+3=7
    end{align}

    end{document}


    enter image description here






    share|improve this answer


























    • The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

      – lioness99a
      2 days ago








    • 1





      This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

      – Bernard
      2 days ago











    • They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

      – lioness99a
      2 days ago













    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
    });


    }
    });






    will_cheuk is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469677%2fhow-to-label-equation-with-particular-format%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









    6














    With amsmath package, you can achieve it with tag environment.



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

    begin{document}
    begin{align}
    label{e1} 1+1=2 tag{eqt1}
    end{align}

    begin{align}
    label{e2} 2+3=5 tag{eqt2}
    end{align}

    begin{align}
    label{e3} 3+3=6
    end{align}

    begin{align}
    label{e4} 4+3=7
    end{align}
    I am referring eqref{e1}, eqref{e2}, eqref{e3}, eqref{e4}.
    end{document}


    Which would give you



    enter image description here






    share|improve this answer




























      6














      With amsmath package, you can achieve it with tag environment.



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

      begin{document}
      begin{align}
      label{e1} 1+1=2 tag{eqt1}
      end{align}

      begin{align}
      label{e2} 2+3=5 tag{eqt2}
      end{align}

      begin{align}
      label{e3} 3+3=6
      end{align}

      begin{align}
      label{e4} 4+3=7
      end{align}
      I am referring eqref{e1}, eqref{e2}, eqref{e3}, eqref{e4}.
      end{document}


      Which would give you



      enter image description here






      share|improve this answer


























        6












        6








        6







        With amsmath package, you can achieve it with tag environment.



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

        begin{document}
        begin{align}
        label{e1} 1+1=2 tag{eqt1}
        end{align}

        begin{align}
        label{e2} 2+3=5 tag{eqt2}
        end{align}

        begin{align}
        label{e3} 3+3=6
        end{align}

        begin{align}
        label{e4} 4+3=7
        end{align}
        I am referring eqref{e1}, eqref{e2}, eqref{e3}, eqref{e4}.
        end{document}


        Which would give you



        enter image description here






        share|improve this answer













        With amsmath package, you can achieve it with tag environment.



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

        begin{document}
        begin{align}
        label{e1} 1+1=2 tag{eqt1}
        end{align}

        begin{align}
        label{e2} 2+3=5 tag{eqt2}
        end{align}

        begin{align}
        label{e3} 3+3=6
        end{align}

        begin{align}
        label{e4} 4+3=7
        end{align}
        I am referring eqref{e1}, eqref{e2}, eqref{e3}, eqref{e4}.
        end{document}


        Which would give you



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        RaajaRaaja

        2,4552732




        2,4552732























            4














            Another possibility, using the same equation counter as the default: mathtools has a newtagform command, which can be used to customise the appearance of the equation number, and a usetagform command which can be used within the document body:



            documentclass[10pt,a4paper]{article}
            usepackage{mathtools}
            newtagform{eqt}{(eqt,}{)}

            begin{document}

            usetagform{eqt}
            begin{align}
            label{e1} 1+1=2
            end{align}

            begin{align}
            label{e2} 2+3=5
            end{align}

            usetagform{default}
            begin{align}
            label{e3} 3+3=6
            end{align}

            begin{align}
            label{e4} 4+3=7
            end{align}

            end{document}


            enter image description here






            share|improve this answer


























            • The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

              – lioness99a
              2 days ago








            • 1





              This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

              – Bernard
              2 days ago











            • They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

              – lioness99a
              2 days ago


















            4














            Another possibility, using the same equation counter as the default: mathtools has a newtagform command, which can be used to customise the appearance of the equation number, and a usetagform command which can be used within the document body:



            documentclass[10pt,a4paper]{article}
            usepackage{mathtools}
            newtagform{eqt}{(eqt,}{)}

            begin{document}

            usetagform{eqt}
            begin{align}
            label{e1} 1+1=2
            end{align}

            begin{align}
            label{e2} 2+3=5
            end{align}

            usetagform{default}
            begin{align}
            label{e3} 3+3=6
            end{align}

            begin{align}
            label{e4} 4+3=7
            end{align}

            end{document}


            enter image description here






            share|improve this answer


























            • The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

              – lioness99a
              2 days ago








            • 1





              This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

              – Bernard
              2 days ago











            • They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

              – lioness99a
              2 days ago
















            4












            4








            4







            Another possibility, using the same equation counter as the default: mathtools has a newtagform command, which can be used to customise the appearance of the equation number, and a usetagform command which can be used within the document body:



            documentclass[10pt,a4paper]{article}
            usepackage{mathtools}
            newtagform{eqt}{(eqt,}{)}

            begin{document}

            usetagform{eqt}
            begin{align}
            label{e1} 1+1=2
            end{align}

            begin{align}
            label{e2} 2+3=5
            end{align}

            usetagform{default}
            begin{align}
            label{e3} 3+3=6
            end{align}

            begin{align}
            label{e4} 4+3=7
            end{align}

            end{document}


            enter image description here






            share|improve this answer















            Another possibility, using the same equation counter as the default: mathtools has a newtagform command, which can be used to customise the appearance of the equation number, and a usetagform command which can be used within the document body:



            documentclass[10pt,a4paper]{article}
            usepackage{mathtools}
            newtagform{eqt}{(eqt,}{)}

            begin{document}

            usetagform{eqt}
            begin{align}
            label{e1} 1+1=2
            end{align}

            begin{align}
            label{e2} 2+3=5
            end{align}

            usetagform{default}
            begin{align}
            label{e3} 3+3=6
            end{align}

            begin{align}
            label{e4} 4+3=7
            end{align}

            end{document}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 2 days ago









            Raaja

            2,4552732




            2,4552732










            answered 2 days ago









            BernardBernard

            167k769194




            167k769194













            • The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

              – lioness99a
              2 days ago








            • 1





              This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

              – Bernard
              2 days ago











            • They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

              – lioness99a
              2 days ago





















            • The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

              – lioness99a
              2 days ago








            • 1





              This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

              – Bernard
              2 days ago











            • They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

              – lioness99a
              2 days ago



















            The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

            – lioness99a
            2 days ago







            The OP asked for (eqt1), (eqt2), (1), (2). You have given them (eqt1), (eqt2), (3), (4). You would need to reset the counter after (eqt2) to give the behaviour asked for

            – lioness99a
            2 days ago






            1




            1





            This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

            – Bernard
            2 days ago





            This was not quite clear to me. I indeed mentioned that in what I propose, both types of equation share the same counter – only the formatting differs.

            – Bernard
            2 days ago













            They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

            – lioness99a
            2 days ago







            They said they wanted to have (eqt1) and (eqt2) and then start counting from (1) again. Your answer continues counting after (eqt2) with (3) so you need to include setcounter{equation}{0} at that point to get the behaviour the OP wanted

            – lioness99a
            2 days ago












            will_cheuk is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            will_cheuk is a new contributor. Be nice, and check out our Code of Conduct.













            will_cheuk is a new contributor. Be nice, and check out our Code of Conduct.












            will_cheuk is a new contributor. Be nice, and check out our Code of Conduct.
















            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%2f469677%2fhow-to-label-equation-with-particular-format%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

            If I really need a card on my start hand, how many mulligans make sense? [duplicate]

            Alcedinidae

            Can an atomic nucleus contain both particles and antiparticles? [duplicate]