Is this possible to use two label for same equation












2















Is this possible to use different labels for same equation number, I've tried with the below code:



documentclass{book}
usepackage{amsmath}

begin{document}

begin{align}
label{test}
a+b=clabel{trial}
end{align}

end{document}


but I got error, please advise...










share|improve this question

























  • As far as I know, the result is indeed correct. Because, you cannot use multiple lables for one equation.

    – Raaja
    Nov 26 '18 at 7:41











  • Only one label is possible

    – Saravanan
    Nov 26 '18 at 7:44
















2















Is this possible to use different labels for same equation number, I've tried with the below code:



documentclass{book}
usepackage{amsmath}

begin{document}

begin{align}
label{test}
a+b=clabel{trial}
end{align}

end{document}


but I got error, please advise...










share|improve this question

























  • As far as I know, the result is indeed correct. Because, you cannot use multiple lables for one equation.

    – Raaja
    Nov 26 '18 at 7:41











  • Only one label is possible

    – Saravanan
    Nov 26 '18 at 7:44














2












2








2








Is this possible to use different labels for same equation number, I've tried with the below code:



documentclass{book}
usepackage{amsmath}

begin{document}

begin{align}
label{test}
a+b=clabel{trial}
end{align}

end{document}


but I got error, please advise...










share|improve this question
















Is this possible to use different labels for same equation number, I've tried with the below code:



documentclass{book}
usepackage{amsmath}

begin{document}

begin{align}
label{test}
a+b=clabel{trial}
end{align}

end{document}


but I got error, please advise...







equations labels






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 11:42









TeXnician

24.8k63187




24.8k63187










asked Nov 26 '18 at 7:33









MadyYuviMadyYuvi

2,202311




2,202311













  • As far as I know, the result is indeed correct. Because, you cannot use multiple lables for one equation.

    – Raaja
    Nov 26 '18 at 7:41











  • Only one label is possible

    – Saravanan
    Nov 26 '18 at 7:44



















  • As far as I know, the result is indeed correct. Because, you cannot use multiple lables for one equation.

    – Raaja
    Nov 26 '18 at 7:41











  • Only one label is possible

    – Saravanan
    Nov 26 '18 at 7:44

















As far as I know, the result is indeed correct. Because, you cannot use multiple lables for one equation.

– Raaja
Nov 26 '18 at 7:41





As far as I know, the result is indeed correct. Because, you cannot use multiple lables for one equation.

– Raaja
Nov 26 '18 at 7:41













Only one label is possible

– Saravanan
Nov 26 '18 at 7:44





Only one label is possible

– Saravanan
Nov 26 '18 at 7:44










1 Answer
1






active

oldest

votes


















4














In simple cases, such as begin{equation} you can have any number of label (although there is no real need ever to do so) however in alignments then the code has to make sure that the label works in any cell even though the left and right sides of the equation are really separate groups, so it drops multiple labels with a warning. There would be no real advantage to allowing it as ref{test} would always be the same as ref{trial}






share|improve this answer
























  • As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

    – MadyYuvi
    Nov 26 '18 at 14:05











  • @MadyYuvi no my suggestion was to just have one label why would you ever need two?

    – David Carlisle
    Nov 26 '18 at 14:34











  • Sorry, I misunderstood your words...

    – MadyYuvi
    Nov 27 '18 at 9:18











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%2f461776%2fis-this-possible-to-use-two-label-for-same-equation%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









4














In simple cases, such as begin{equation} you can have any number of label (although there is no real need ever to do so) however in alignments then the code has to make sure that the label works in any cell even though the left and right sides of the equation are really separate groups, so it drops multiple labels with a warning. There would be no real advantage to allowing it as ref{test} would always be the same as ref{trial}






share|improve this answer
























  • As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

    – MadyYuvi
    Nov 26 '18 at 14:05











  • @MadyYuvi no my suggestion was to just have one label why would you ever need two?

    – David Carlisle
    Nov 26 '18 at 14:34











  • Sorry, I misunderstood your words...

    – MadyYuvi
    Nov 27 '18 at 9:18
















4














In simple cases, such as begin{equation} you can have any number of label (although there is no real need ever to do so) however in alignments then the code has to make sure that the label works in any cell even though the left and right sides of the equation are really separate groups, so it drops multiple labels with a warning. There would be no real advantage to allowing it as ref{test} would always be the same as ref{trial}






share|improve this answer
























  • As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

    – MadyYuvi
    Nov 26 '18 at 14:05











  • @MadyYuvi no my suggestion was to just have one label why would you ever need two?

    – David Carlisle
    Nov 26 '18 at 14:34











  • Sorry, I misunderstood your words...

    – MadyYuvi
    Nov 27 '18 at 9:18














4












4








4







In simple cases, such as begin{equation} you can have any number of label (although there is no real need ever to do so) however in alignments then the code has to make sure that the label works in any cell even though the left and right sides of the equation are really separate groups, so it drops multiple labels with a warning. There would be no real advantage to allowing it as ref{test} would always be the same as ref{trial}






share|improve this answer













In simple cases, such as begin{equation} you can have any number of label (although there is no real need ever to do so) however in alignments then the code has to make sure that the label works in any cell even though the left and right sides of the equation are really separate groups, so it drops multiple labels with a warning. There would be no real advantage to allowing it as ref{test} would always be the same as ref{trial}







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 26 '18 at 8:06









David CarlisleDavid Carlisle

486k4111221867




486k4111221867













  • As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

    – MadyYuvi
    Nov 26 '18 at 14:05











  • @MadyYuvi no my suggestion was to just have one label why would you ever need two?

    – David Carlisle
    Nov 26 '18 at 14:34











  • Sorry, I misunderstood your words...

    – MadyYuvi
    Nov 27 '18 at 9:18



















  • As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

    – MadyYuvi
    Nov 26 '18 at 14:05











  • @MadyYuvi no my suggestion was to just have one label why would you ever need two?

    – David Carlisle
    Nov 26 '18 at 14:34











  • Sorry, I misunderstood your words...

    – MadyYuvi
    Nov 27 '18 at 9:18

















As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

– MadyYuvi
Nov 26 '18 at 14:05





As per your suggestion, I've changed align to equation, but still the same problem exists, please advise...

– MadyYuvi
Nov 26 '18 at 14:05













@MadyYuvi no my suggestion was to just have one label why would you ever need two?

– David Carlisle
Nov 26 '18 at 14:34





@MadyYuvi no my suggestion was to just have one label why would you ever need two?

– David Carlisle
Nov 26 '18 at 14:34













Sorry, I misunderstood your words...

– MadyYuvi
Nov 27 '18 at 9:18





Sorry, I misunderstood your words...

– MadyYuvi
Nov 27 '18 at 9:18


















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%2f461776%2fis-this-possible-to-use-two-label-for-same-equation%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?

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

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents