How to have equation number at top with intertext in split environment

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I have some split equations with intertext, like this:



documentclassarticle
usepackageamsmath

begindocument
beginequation
beginsplit
y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
intertextwhere
C_-2&=-frac335,C_1=frac1235,textetc.
endsplit
endequation
enddocument


And I need the equation number to display vertically aligned with the top line, however my in the current output the equation number is at the bottom:
equation



How would I go about this?



Thanks in advance.










share|improve this question







New contributor




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















  • 1




    Welcome to TeX.SE! Any reason why you do not use align here?
    – marmot
    41 mins ago










  • I can't see a reason for aligning two completely unrelated equals signs.
    – egreg
    33 mins ago














up vote
3
down vote

favorite












I have some split equations with intertext, like this:



documentclassarticle
usepackageamsmath

begindocument
beginequation
beginsplit
y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
intertextwhere
C_-2&=-frac335,C_1=frac1235,textetc.
endsplit
endequation
enddocument


And I need the equation number to display vertically aligned with the top line, however my in the current output the equation number is at the bottom:
equation



How would I go about this?



Thanks in advance.










share|improve this question







New contributor




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















  • 1




    Welcome to TeX.SE! Any reason why you do not use align here?
    – marmot
    41 mins ago










  • I can't see a reason for aligning two completely unrelated equals signs.
    – egreg
    33 mins ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I have some split equations with intertext, like this:



documentclassarticle
usepackageamsmath

begindocument
beginequation
beginsplit
y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
intertextwhere
C_-2&=-frac335,C_1=frac1235,textetc.
endsplit
endequation
enddocument


And I need the equation number to display vertically aligned with the top line, however my in the current output the equation number is at the bottom:
equation



How would I go about this?



Thanks in advance.










share|improve this question







New contributor




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











I have some split equations with intertext, like this:



documentclassarticle
usepackageamsmath

begindocument
beginequation
beginsplit
y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
intertextwhere
C_-2&=-frac335,C_1=frac1235,textetc.
endsplit
endequation
enddocument


And I need the equation number to display vertically aligned with the top line, however my in the current output the equation number is at the bottom:
equation



How would I go about this?



Thanks in advance.







formatting vertical-alignment amsmath






share|improve this question







New contributor




jburke4126 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




jburke4126 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






New contributor




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









asked 1 hour ago









jburke4126

161




161




New contributor




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





New contributor





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






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







  • 1




    Welcome to TeX.SE! Any reason why you do not use align here?
    – marmot
    41 mins ago










  • I can't see a reason for aligning two completely unrelated equals signs.
    – egreg
    33 mins ago












  • 1




    Welcome to TeX.SE! Any reason why you do not use align here?
    – marmot
    41 mins ago










  • I can't see a reason for aligning two completely unrelated equals signs.
    – egreg
    33 mins ago







1




1




Welcome to TeX.SE! Any reason why you do not use align here?
– marmot
41 mins ago




Welcome to TeX.SE! Any reason why you do not use align here?
– marmot
41 mins ago












I can't see a reason for aligning two completely unrelated equals signs.
– egreg
33 mins ago




I can't see a reason for aligning two completely unrelated equals signs.
– egreg
33 mins ago










2 Answers
2






active

oldest

votes

















up vote
2
down vote













I'd propose to use align here.



documentclass[fleqn]article
usepackageamsmath

begindocument
beginalign
y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
intertextwhere
C_-2&=-frac335,quad C_1=frac1235, quadtextetc.notag
endalign
enddocument


enter image description here






share|improve this answer



























    up vote
    0
    down vote













    By default, the equation number is centered with respect to a split; if the tbtags option is passed to amsmath, the number will be aligned with the top line (if on the left) or with the bottom line (if on the right).



    Therefore split is the wrong tool, not to mention that intertext makes a line as wide as columnwidth, so the whole split appears to be too wide for the equation number to fit, which is the reason it is lowered below the second line.



    You could use align, with notag in the second line, but I see no reason for aligning unrelated = symbols.



    documentclassarticle
    usepackageamsmath

    begindocument

    beginequation
    y_j = frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2),
    endequation
    where
    beginequation*
    C_-2=-frac335,quad C_1=frac1235,quadtextetc.
    endequation*

    enddocument


    enter image description here



    If you really want to do the alignment, use shortintertext from mathtools:



    documentclassarticle
    usepackageamsmath,mathtools

    begindocument

    beginalign
    y_j &= frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2), \
    shortintertextwhere
    C_-2&=-frac335,quad C_1=frac1235,quadtextetc. notag
    endalign

    enddocument


    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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );






      jburke4126 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%2f455177%2fhow-to-have-equation-number-at-top-with-intertext-in-split-environment%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      I'd propose to use align here.



      documentclass[fleqn]article
      usepackageamsmath

      begindocument
      beginalign
      y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
      intertextwhere
      C_-2&=-frac335,quad C_1=frac1235, quadtextetc.notag
      endalign
      enddocument


      enter image description here






      share|improve this answer
























        up vote
        2
        down vote













        I'd propose to use align here.



        documentclass[fleqn]article
        usepackageamsmath

        begindocument
        beginalign
        y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
        intertextwhere
        C_-2&=-frac335,quad C_1=frac1235, quadtextetc.notag
        endalign
        enddocument


        enter image description here






        share|improve this answer






















          up vote
          2
          down vote










          up vote
          2
          down vote









          I'd propose to use align here.



          documentclass[fleqn]article
          usepackageamsmath

          begindocument
          beginalign
          y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
          intertextwhere
          C_-2&=-frac335,quad C_1=frac1235, quadtextetc.notag
          endalign
          enddocument


          enter image description here






          share|improve this answer












          I'd propose to use align here.



          documentclass[fleqn]article
          usepackageamsmath

          begindocument
          beginalign
          y_j &= frac135left(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2right),\
          intertextwhere
          C_-2&=-frac335,quad C_1=frac1235, quadtextetc.notag
          endalign
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 38 mins ago









          marmot

          65.3k471140




          65.3k471140




















              up vote
              0
              down vote













              By default, the equation number is centered with respect to a split; if the tbtags option is passed to amsmath, the number will be aligned with the top line (if on the left) or with the bottom line (if on the right).



              Therefore split is the wrong tool, not to mention that intertext makes a line as wide as columnwidth, so the whole split appears to be too wide for the equation number to fit, which is the reason it is lowered below the second line.



              You could use align, with notag in the second line, but I see no reason for aligning unrelated = symbols.



              documentclassarticle
              usepackageamsmath

              begindocument

              beginequation
              y_j = frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2),
              endequation
              where
              beginequation*
              C_-2=-frac335,quad C_1=frac1235,quadtextetc.
              endequation*

              enddocument


              enter image description here



              If you really want to do the alignment, use shortintertext from mathtools:



              documentclassarticle
              usepackageamsmath,mathtools

              begindocument

              beginalign
              y_j &= frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2), \
              shortintertextwhere
              C_-2&=-frac335,quad C_1=frac1235,quadtextetc. notag
              endalign

              enddocument


              enter image description here






              share|improve this answer
























                up vote
                0
                down vote













                By default, the equation number is centered with respect to a split; if the tbtags option is passed to amsmath, the number will be aligned with the top line (if on the left) or with the bottom line (if on the right).



                Therefore split is the wrong tool, not to mention that intertext makes a line as wide as columnwidth, so the whole split appears to be too wide for the equation number to fit, which is the reason it is lowered below the second line.



                You could use align, with notag in the second line, but I see no reason for aligning unrelated = symbols.



                documentclassarticle
                usepackageamsmath

                begindocument

                beginequation
                y_j = frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2),
                endequation
                where
                beginequation*
                C_-2=-frac335,quad C_1=frac1235,quadtextetc.
                endequation*

                enddocument


                enter image description here



                If you really want to do the alignment, use shortintertext from mathtools:



                documentclassarticle
                usepackageamsmath,mathtools

                begindocument

                beginalign
                y_j &= frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2), \
                shortintertextwhere
                C_-2&=-frac335,quad C_1=frac1235,quadtextetc. notag
                endalign

                enddocument


                enter image description here






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  By default, the equation number is centered with respect to a split; if the tbtags option is passed to amsmath, the number will be aligned with the top line (if on the left) or with the bottom line (if on the right).



                  Therefore split is the wrong tool, not to mention that intertext makes a line as wide as columnwidth, so the whole split appears to be too wide for the equation number to fit, which is the reason it is lowered below the second line.



                  You could use align, with notag in the second line, but I see no reason for aligning unrelated = symbols.



                  documentclassarticle
                  usepackageamsmath

                  begindocument

                  beginequation
                  y_j = frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2),
                  endequation
                  where
                  beginequation*
                  C_-2=-frac335,quad C_1=frac1235,quadtextetc.
                  endequation*

                  enddocument


                  enter image description here



                  If you really want to do the alignment, use shortintertext from mathtools:



                  documentclassarticle
                  usepackageamsmath,mathtools

                  begindocument

                  beginalign
                  y_j &= frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2), \
                  shortintertextwhere
                  C_-2&=-frac335,quad C_1=frac1235,quadtextetc. notag
                  endalign

                  enddocument


                  enter image description here






                  share|improve this answer












                  By default, the equation number is centered with respect to a split; if the tbtags option is passed to amsmath, the number will be aligned with the top line (if on the left) or with the bottom line (if on the right).



                  Therefore split is the wrong tool, not to mention that intertext makes a line as wide as columnwidth, so the whole split appears to be too wide for the equation number to fit, which is the reason it is lowered below the second line.



                  You could use align, with notag in the second line, but I see no reason for aligning unrelated = symbols.



                  documentclassarticle
                  usepackageamsmath

                  begindocument

                  beginequation
                  y_j = frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2),
                  endequation
                  where
                  beginequation*
                  C_-2=-frac335,quad C_1=frac1235,quadtextetc.
                  endequation*

                  enddocument


                  enter image description here



                  If you really want to do the alignment, use shortintertext from mathtools:



                  documentclassarticle
                  usepackageamsmath,mathtools

                  begindocument

                  beginalign
                  y_j &= frac135(-3y_j-2+12y_j-1+17y_j+12y_j+1-3y_j+2), \
                  shortintertextwhere
                  C_-2&=-frac335,quad C_1=frac1235,quadtextetc. notag
                  endalign

                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 20 mins ago









                  egreg

                  689k8518333082




                  689k8518333082




















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









                       

                      draft saved


                      draft discarded


















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












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











                      jburke4126 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%2f455177%2fhow-to-have-equation-number-at-top-with-intertext-in-split-environment%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      Long meetings (6-7 hours a day): Being “babysat” by supervisor

                      Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                      Confectionery