Using tag in aligned embedded within equation environment











up vote
0
down vote

favorite












I want to tag my equations with parallel aligned environment. The code is shown below



begin{equation*}
begin{aligned}
& bold{H}_1^topbold{x}_1^*+bold{K}_1^topbold{y}+bold{U}(omega_t)= bold{r}_1:\
& bold{A}_3^topbold{y}leq bold{b}_3:
end{aligned}
qquad
begin{aligned}
& boldsymbol{gamma}_1(omega_t), \
& boldsymbol{zeta}_1(omega_t),
end{aligned}
end{equation*}


The output should be two aligned equations, and my goal is to tag them using tag.



I have tried to add tag to the first begin{aligned} block and the second block, but they all failed with an error saying "Package amsmath Error: tag not allowed here".



I have searched the forum but there is none regarding to the tag for double aligned equation. I need to use begin{equation*} instead of begin{equation} to allow tag, since I want to make my own tags.



Thank you in advance!



Gabriel










share|improve this question


















  • 1




    it's probably easier to just use 2 minipages similar to Two columns of equations, aligned and just one number per column
    – Troy
    3 hours ago










  • tag only works in math environment which is normally numbered. like equation, align etc and not in equation*
    – Zarko
    2 hours ago










  • Package mathtools has the newtagform and usetagform commands if you want to customise tags.
    – Bernard
    2 hours ago















up vote
0
down vote

favorite












I want to tag my equations with parallel aligned environment. The code is shown below



begin{equation*}
begin{aligned}
& bold{H}_1^topbold{x}_1^*+bold{K}_1^topbold{y}+bold{U}(omega_t)= bold{r}_1:\
& bold{A}_3^topbold{y}leq bold{b}_3:
end{aligned}
qquad
begin{aligned}
& boldsymbol{gamma}_1(omega_t), \
& boldsymbol{zeta}_1(omega_t),
end{aligned}
end{equation*}


The output should be two aligned equations, and my goal is to tag them using tag.



I have tried to add tag to the first begin{aligned} block and the second block, but they all failed with an error saying "Package amsmath Error: tag not allowed here".



I have searched the forum but there is none regarding to the tag for double aligned equation. I need to use begin{equation*} instead of begin{equation} to allow tag, since I want to make my own tags.



Thank you in advance!



Gabriel










share|improve this question


















  • 1




    it's probably easier to just use 2 minipages similar to Two columns of equations, aligned and just one number per column
    – Troy
    3 hours ago










  • tag only works in math environment which is normally numbered. like equation, align etc and not in equation*
    – Zarko
    2 hours ago










  • Package mathtools has the newtagform and usetagform commands if you want to customise tags.
    – Bernard
    2 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to tag my equations with parallel aligned environment. The code is shown below



begin{equation*}
begin{aligned}
& bold{H}_1^topbold{x}_1^*+bold{K}_1^topbold{y}+bold{U}(omega_t)= bold{r}_1:\
& bold{A}_3^topbold{y}leq bold{b}_3:
end{aligned}
qquad
begin{aligned}
& boldsymbol{gamma}_1(omega_t), \
& boldsymbol{zeta}_1(omega_t),
end{aligned}
end{equation*}


The output should be two aligned equations, and my goal is to tag them using tag.



I have tried to add tag to the first begin{aligned} block and the second block, but they all failed with an error saying "Package amsmath Error: tag not allowed here".



I have searched the forum but there is none regarding to the tag for double aligned equation. I need to use begin{equation*} instead of begin{equation} to allow tag, since I want to make my own tags.



Thank you in advance!



Gabriel










share|improve this question













I want to tag my equations with parallel aligned environment. The code is shown below



begin{equation*}
begin{aligned}
& bold{H}_1^topbold{x}_1^*+bold{K}_1^topbold{y}+bold{U}(omega_t)= bold{r}_1:\
& bold{A}_3^topbold{y}leq bold{b}_3:
end{aligned}
qquad
begin{aligned}
& boldsymbol{gamma}_1(omega_t), \
& boldsymbol{zeta}_1(omega_t),
end{aligned}
end{equation*}


The output should be two aligned equations, and my goal is to tag them using tag.



I have tried to add tag to the first begin{aligned} block and the second block, but they all failed with an error saying "Package amsmath Error: tag not allowed here".



I have searched the forum but there is none regarding to the tag for double aligned equation. I need to use begin{equation*} instead of begin{equation} to allow tag, since I want to make my own tags.



Thank you in advance!



Gabriel







equations align tag






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 3 hours ago









Gabriel Yin

1




1








  • 1




    it's probably easier to just use 2 minipages similar to Two columns of equations, aligned and just one number per column
    – Troy
    3 hours ago










  • tag only works in math environment which is normally numbered. like equation, align etc and not in equation*
    – Zarko
    2 hours ago










  • Package mathtools has the newtagform and usetagform commands if you want to customise tags.
    – Bernard
    2 hours ago














  • 1




    it's probably easier to just use 2 minipages similar to Two columns of equations, aligned and just one number per column
    – Troy
    3 hours ago










  • tag only works in math environment which is normally numbered. like equation, align etc and not in equation*
    – Zarko
    2 hours ago










  • Package mathtools has the newtagform and usetagform commands if you want to customise tags.
    – Bernard
    2 hours ago








1




1




it's probably easier to just use 2 minipages similar to Two columns of equations, aligned and just one number per column
– Troy
3 hours ago




it's probably easier to just use 2 minipages similar to Two columns of equations, aligned and just one number per column
– Troy
3 hours ago












tag only works in math environment which is normally numbered. like equation, align etc and not in equation*
– Zarko
2 hours ago




tag only works in math environment which is normally numbered. like equation, align etc and not in equation*
– Zarko
2 hours ago












Package mathtools has the newtagform and usetagform commands if you want to customise tags.
– Bernard
2 hours ago




Package mathtools has the newtagform and usetagform commands if you want to customise tags.
– Bernard
2 hours ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Maybe it is something like this you're after?



documentclass[10pt, a5paper]{book}
usepackage{mathtools, amssymb}
usepackage[showframe]{geometry}
usepackage{tabularx}

makeatletter
newcommand*{compress}{@minipagetrue}
thispagestyle{empty}

begin{document}

noindentbegin{tabularx}{linewidth}{@{}>{hsize=1.2hsize compressarraybackslash}X @{qquad} >{hsize=0.8hsizecompressarraybackslash}X@{}}
{ begin{subequations}begin{align}
& mathbf{H}_1^topmathbf{x}_1^*+mathbf{K}_1^topmathbf{y}+mathbf{U}(omega_t)= mathbf{r}_1:\
& mathbf{A}_3^topmathbf{y}leq mathbf{b}_3:
end{align}
end{subequations}}
&
{ begin{subequations}begin{align}
& boldsymbol{gamma}_1(omega_t), \
& boldsymbol{zeta}_1(omega_t),
end{align}
end{subequations}}
end{tabularx}

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',
    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%2f462483%2fusing-tag-in-aligned-embedded-within-equation-environment%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Maybe it is something like this you're after?



    documentclass[10pt, a5paper]{book}
    usepackage{mathtools, amssymb}
    usepackage[showframe]{geometry}
    usepackage{tabularx}

    makeatletter
    newcommand*{compress}{@minipagetrue}
    thispagestyle{empty}

    begin{document}

    noindentbegin{tabularx}{linewidth}{@{}>{hsize=1.2hsize compressarraybackslash}X @{qquad} >{hsize=0.8hsizecompressarraybackslash}X@{}}
    { begin{subequations}begin{align}
    & mathbf{H}_1^topmathbf{x}_1^*+mathbf{K}_1^topmathbf{y}+mathbf{U}(omega_t)= mathbf{r}_1:\
    & mathbf{A}_3^topmathbf{y}leq mathbf{b}_3:
    end{align}
    end{subequations}}
    &
    { begin{subequations}begin{align}
    & boldsymbol{gamma}_1(omega_t), \
    & boldsymbol{zeta}_1(omega_t),
    end{align}
    end{subequations}}
    end{tabularx}

    end{document}


    enter image description here






    share|improve this answer

























      up vote
      0
      down vote













      Maybe it is something like this you're after?



      documentclass[10pt, a5paper]{book}
      usepackage{mathtools, amssymb}
      usepackage[showframe]{geometry}
      usepackage{tabularx}

      makeatletter
      newcommand*{compress}{@minipagetrue}
      thispagestyle{empty}

      begin{document}

      noindentbegin{tabularx}{linewidth}{@{}>{hsize=1.2hsize compressarraybackslash}X @{qquad} >{hsize=0.8hsizecompressarraybackslash}X@{}}
      { begin{subequations}begin{align}
      & mathbf{H}_1^topmathbf{x}_1^*+mathbf{K}_1^topmathbf{y}+mathbf{U}(omega_t)= mathbf{r}_1:\
      & mathbf{A}_3^topmathbf{y}leq mathbf{b}_3:
      end{align}
      end{subequations}}
      &
      { begin{subequations}begin{align}
      & boldsymbol{gamma}_1(omega_t), \
      & boldsymbol{zeta}_1(omega_t),
      end{align}
      end{subequations}}
      end{tabularx}

      end{document}


      enter image description here






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Maybe it is something like this you're after?



        documentclass[10pt, a5paper]{book}
        usepackage{mathtools, amssymb}
        usepackage[showframe]{geometry}
        usepackage{tabularx}

        makeatletter
        newcommand*{compress}{@minipagetrue}
        thispagestyle{empty}

        begin{document}

        noindentbegin{tabularx}{linewidth}{@{}>{hsize=1.2hsize compressarraybackslash}X @{qquad} >{hsize=0.8hsizecompressarraybackslash}X@{}}
        { begin{subequations}begin{align}
        & mathbf{H}_1^topmathbf{x}_1^*+mathbf{K}_1^topmathbf{y}+mathbf{U}(omega_t)= mathbf{r}_1:\
        & mathbf{A}_3^topmathbf{y}leq mathbf{b}_3:
        end{align}
        end{subequations}}
        &
        { begin{subequations}begin{align}
        & boldsymbol{gamma}_1(omega_t), \
        & boldsymbol{zeta}_1(omega_t),
        end{align}
        end{subequations}}
        end{tabularx}

        end{document}


        enter image description here






        share|improve this answer












        Maybe it is something like this you're after?



        documentclass[10pt, a5paper]{book}
        usepackage{mathtools, amssymb}
        usepackage[showframe]{geometry}
        usepackage{tabularx}

        makeatletter
        newcommand*{compress}{@minipagetrue}
        thispagestyle{empty}

        begin{document}

        noindentbegin{tabularx}{linewidth}{@{}>{hsize=1.2hsize compressarraybackslash}X @{qquad} >{hsize=0.8hsizecompressarraybackslash}X@{}}
        { begin{subequations}begin{align}
        & mathbf{H}_1^topmathbf{x}_1^*+mathbf{K}_1^topmathbf{y}+mathbf{U}(omega_t)= mathbf{r}_1:\
        & mathbf{A}_3^topmathbf{y}leq mathbf{b}_3:
        end{align}
        end{subequations}}
        &
        { begin{subequations}begin{align}
        & boldsymbol{gamma}_1(omega_t), \
        & boldsymbol{zeta}_1(omega_t),
        end{align}
        end{subequations}}
        end{tabularx}

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 hours ago









        Bernard

        162k767192




        162k767192






























            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%2f462483%2fusing-tag-in-aligned-embedded-within-equation-environment%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)