How can I label an inline math formula/sentence/word?

How much mayhem could I cause as a fish?

Why does photorec keep finding files after I have filled the disk free space as root?

Why do neural networks need so many training examples to perform?

Premature ending of generator in list comprehension

Does the U.S. Constitution's First Ammendment protect false speech?

Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?

Do "fields" always combine by addition?

How do you catch Smeargle in Pokemon Go?

A Missing Symbol for This Logo

Cat is tipping over bed-side lamps during the night

Why are all my replica super soldiers young adults or old teenagers?

Why does magnet wire need to be insulated?

Separate environment for personal and development use under macOS

How to deal with possible delayed baggage?

Non-Cancer terminal illness that can affect young (age 10-13) girls?

What is the difference between rolling more dice versus fewer dice?

TikZ graph edges not drawn nicely

Looking for a specific 6502 Assembler

Building an exterior wall within an exterior wall for insulation

What is a good reason for every spaceship to carry a weapon on board?

Is the child responsible for the Parent PLUS Loan when the parent has passed away?

How to access internet and run apt-get through a middle server?

Why was Lupin comfortable with saying Voldemort's name?

How do you funnel food off a cutting board?



How can I label an inline math formula/sentence/word?














0















I tried to label a specific inline math formula in the paragraph. For a simple example,



section{This is the third section}
$a^{2}+b^{2}=c^{2}$label{formula:1}
Formula ref{formula:1} is useful!


However, I found that ref{formula:1} corresponds to the number of the section.



So the output by the above codes is 'Formula 3 is useful!' But What I want to label is $a^{2}+b^{2}=c^{2}$, and what I want to get is 'Formula 1 is useful!'. How can I realize it?









share



























    0















    I tried to label a specific inline math formula in the paragraph. For a simple example,



    section{This is the third section}
    $a^{2}+b^{2}=c^{2}$label{formula:1}
    Formula ref{formula:1} is useful!


    However, I found that ref{formula:1} corresponds to the number of the section.



    So the output by the above codes is 'Formula 3 is useful!' But What I want to label is $a^{2}+b^{2}=c^{2}$, and what I want to get is 'Formula 1 is useful!'. How can I realize it?









    share

























      0












      0








      0








      I tried to label a specific inline math formula in the paragraph. For a simple example,



      section{This is the third section}
      $a^{2}+b^{2}=c^{2}$label{formula:1}
      Formula ref{formula:1} is useful!


      However, I found that ref{formula:1} corresponds to the number of the section.



      So the output by the above codes is 'Formula 3 is useful!' But What I want to label is $a^{2}+b^{2}=c^{2}$, and what I want to get is 'Formula 1 is useful!'. How can I realize it?









      share














      I tried to label a specific inline math formula in the paragraph. For a simple example,



      section{This is the third section}
      $a^{2}+b^{2}=c^{2}$label{formula:1}
      Formula ref{formula:1} is useful!


      However, I found that ref{formula:1} corresponds to the number of the section.



      So the output by the above codes is 'Formula 3 is useful!' But What I want to label is $a^{2}+b^{2}=c^{2}$, and what I want to get is 'Formula 1 is useful!'. How can I realize it?







      xetex





      share












      share










      share



      share










      asked 2 mins ago









      ThinkpadThinkpad

      133




      133






















          0






          active

          oldest

          votes











          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%2f476866%2fhow-can-i-label-an-inline-math-formula-sentence-word%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f476866%2fhow-can-i-label-an-inline-math-formula-sentence-word%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

          Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

          Schneeberg (Smreczany) Bibliografia | Menu...

          Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...