Append text to equation tags Announcing the arrival of Valued Associate #679: Cesar Manara ...

Gastric acid as a weapon

Is there a concise way to say "all of the X, one of each"?

Right-skewed distribution with mean equals to mode?

Is high blood pressure ever a symptom attributable solely to dehydration?

When -s is used with third person singular. What's its use in this context?

If Jon Snow became King of the Seven Kingdoms what would his regnal number be?

IndentationError when pasting code in Python 3 interpreter mode

How discoverable are IPv6 addresses and AAAA names by potential attackers?

How can players work together to take actions that are otherwise impossible?

How to assign captions for two tables in LaTeX?

What happens to sewage if there is no river near by?

Why does Python start at index 1 when iterating an array backwards?

Can a non-EU citizen traveling with me come with me through the EU passport line?

How can whole tone melodies sound more interesting?

Is 1 ppb equal to 1 μg/kg?

Is the argument below valid?

Letter Boxed validator

Does surprise arrest existing movement?

Stars Make Stars

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Why are there no cargo aircraft with "flying wing" design?

∞ symbol in external pdf disappears when used as figure

Area of a 2D convex hull

Single word antonym of "flightless"



Append text to equation tags



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Placing equation number on left with reqno option in amsart document classEquation tags in lining numeralsTemporarily undefining a “starred” commandLyx handling of begin{align} and duplicate tag with amsmath?Left aligning equations without align characterDoes amsmath treat double dollars and `[' `]' delimiters differently?Latex equation tagsReference equations with eqref while using different tag forms throughout documentWhy are tags missing in alignment sublevels?Manual Tag without amsmath












0















I want to append the current section to equation tags, even if I use the tag command to override it. I would guess this entails creating some custom command like appendtag.



I know I can use numberwithin{equation}{section} to add the section number to the tags. I actually use
renewcommand{theequation}{arabic{section}--arabic{equation}}, because I prefer a dash over the dot.
However, if I use the tag command, I override the whole tag (as in equation (Ex) below). What I wish to do is just append some text, so that the equation tag reads (1-Ex).



documentclass{article}
usepackage{amsmath}
renewcommand{theequation}{arabic{section}--arabic{equation}}

begin{document}

section{First}

We have an untagged equation like
begin{equation}
y = Xbeta + varepsilon,
end{equation}
with a second untagged equation like
begin{equation}
E(varepsilon_i | X) = 0. tag{Ex}
end{equation}

end{document}


enter image description here









share



























    0















    I want to append the current section to equation tags, even if I use the tag command to override it. I would guess this entails creating some custom command like appendtag.



    I know I can use numberwithin{equation}{section} to add the section number to the tags. I actually use
    renewcommand{theequation}{arabic{section}--arabic{equation}}, because I prefer a dash over the dot.
    However, if I use the tag command, I override the whole tag (as in equation (Ex) below). What I wish to do is just append some text, so that the equation tag reads (1-Ex).



    documentclass{article}
    usepackage{amsmath}
    renewcommand{theequation}{arabic{section}--arabic{equation}}

    begin{document}

    section{First}

    We have an untagged equation like
    begin{equation}
    y = Xbeta + varepsilon,
    end{equation}
    with a second untagged equation like
    begin{equation}
    E(varepsilon_i | X) = 0. tag{Ex}
    end{equation}

    end{document}


    enter image description here









    share

























      0












      0








      0








      I want to append the current section to equation tags, even if I use the tag command to override it. I would guess this entails creating some custom command like appendtag.



      I know I can use numberwithin{equation}{section} to add the section number to the tags. I actually use
      renewcommand{theequation}{arabic{section}--arabic{equation}}, because I prefer a dash over the dot.
      However, if I use the tag command, I override the whole tag (as in equation (Ex) below). What I wish to do is just append some text, so that the equation tag reads (1-Ex).



      documentclass{article}
      usepackage{amsmath}
      renewcommand{theequation}{arabic{section}--arabic{equation}}

      begin{document}

      section{First}

      We have an untagged equation like
      begin{equation}
      y = Xbeta + varepsilon,
      end{equation}
      with a second untagged equation like
      begin{equation}
      E(varepsilon_i | X) = 0. tag{Ex}
      end{equation}

      end{document}


      enter image description here









      share














      I want to append the current section to equation tags, even if I use the tag command to override it. I would guess this entails creating some custom command like appendtag.



      I know I can use numberwithin{equation}{section} to add the section number to the tags. I actually use
      renewcommand{theequation}{arabic{section}--arabic{equation}}, because I prefer a dash over the dot.
      However, if I use the tag command, I override the whole tag (as in equation (Ex) below). What I wish to do is just append some text, so that the equation tag reads (1-Ex).



      documentclass{article}
      usepackage{amsmath}
      renewcommand{theequation}{arabic{section}--arabic{equation}}

      begin{document}

      section{First}

      We have an untagged equation like
      begin{equation}
      y = Xbeta + varepsilon,
      end{equation}
      with a second untagged equation like
      begin{equation}
      E(varepsilon_i | X) = 0. tag{Ex}
      end{equation}

      end{document}


      enter image description here







      amsmath tags





      share












      share










      share



      share










      asked 4 mins ago









      han-tyumihan-tyumi

      801713




      801713






















          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%2f485051%2fappend-text-to-equation-tags%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%2f485051%2fappend-text-to-equation-tags%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

          IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

          Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

          Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...