colored math with the align 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 want different colors for the text and math environments. I use the align environment. The code below used to work, but very recently (matter of weeks at most) has broken. Quite frankly, I cannot quite remember why I carry the bit defm@thmathsurroundz@normalcolor, which is now causing a break. I may have read about it there. Because I have forgotten the details, I'm not sure if removing this line of code altogether is the best course.



Objective: To have the math in blue and the text under the braces in black (the braces themselves in black is probably better, but either way will do).



Without the offending code:



enter image description here



With the offending code:



enter image description here



documentclassarticle
usepackageamsmath
usepackagexcolor

everymathcolorblue
makeatletter
defm@thmathsurroundz@normalcolor% Can't remember the reason for this
makeatother

begindocument
Some inline math $C_0$.
beginalign*
y = underbrace
left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
_textgrowth rate times
underbrace
vphantom left(fraca^0.3bright) C_0
_textinitial
endalign*
enddocument









share|improve this question

























    up vote
    3
    down vote

    favorite












    I want different colors for the text and math environments. I use the align environment. The code below used to work, but very recently (matter of weeks at most) has broken. Quite frankly, I cannot quite remember why I carry the bit defm@thmathsurroundz@normalcolor, which is now causing a break. I may have read about it there. Because I have forgotten the details, I'm not sure if removing this line of code altogether is the best course.



    Objective: To have the math in blue and the text under the braces in black (the braces themselves in black is probably better, but either way will do).



    Without the offending code:



    enter image description here



    With the offending code:



    enter image description here



    documentclassarticle
    usepackageamsmath
    usepackagexcolor

    everymathcolorblue
    makeatletter
    defm@thmathsurroundz@normalcolor% Can't remember the reason for this
    makeatother

    begindocument
    Some inline math $C_0$.
    beginalign*
    y = underbrace
    left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
    _textgrowth rate times
    underbrace
    vphantom left(fraca^0.3bright) C_0
    _textinitial
    endalign*
    enddocument









    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I want different colors for the text and math environments. I use the align environment. The code below used to work, but very recently (matter of weeks at most) has broken. Quite frankly, I cannot quite remember why I carry the bit defm@thmathsurroundz@normalcolor, which is now causing a break. I may have read about it there. Because I have forgotten the details, I'm not sure if removing this line of code altogether is the best course.



      Objective: To have the math in blue and the text under the braces in black (the braces themselves in black is probably better, but either way will do).



      Without the offending code:



      enter image description here



      With the offending code:



      enter image description here



      documentclassarticle
      usepackageamsmath
      usepackagexcolor

      everymathcolorblue
      makeatletter
      defm@thmathsurroundz@normalcolor% Can't remember the reason for this
      makeatother

      begindocument
      Some inline math $C_0$.
      beginalign*
      y = underbrace
      left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
      _textgrowth rate times
      underbrace
      vphantom left(fraca^0.3bright) C_0
      _textinitial
      endalign*
      enddocument









      share|improve this question













      I want different colors for the text and math environments. I use the align environment. The code below used to work, but very recently (matter of weeks at most) has broken. Quite frankly, I cannot quite remember why I carry the bit defm@thmathsurroundz@normalcolor, which is now causing a break. I may have read about it there. Because I have forgotten the details, I'm not sure if removing this line of code altogether is the best course.



      Objective: To have the math in blue and the text under the braces in black (the braces themselves in black is probably better, but either way will do).



      Without the offending code:



      enter image description here



      With the offending code:



      enter image description here



      documentclassarticle
      usepackageamsmath
      usepackagexcolor

      everymathcolorblue
      makeatletter
      defm@thmathsurroundz@normalcolor% Can't remember the reason for this
      makeatother

      begindocument
      Some inline math $C_0$.
      beginalign*
      y = underbrace
      left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
      _textgrowth rate times
      underbrace
      vphantom left(fraca^0.3bright) C_0
      _textinitial
      endalign*
      enddocument






      color amsmath






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      PatrickT

      96821022




      96821022




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          3
          down vote













          Redefining m@th is not the best idea. Don't forget everydisplay.



          documentclassarticle
          usepackageamsmath
          usepackagexcolor
          usepackagexpatch

          everymathcolorblue
          everydisplaycolorblue
          xpretocmdupbracefillblacktexteverymathnormalcolor
          xpatchcmdunderbracelimitsblacktextlimits
          makeatletter
          newcommandblacktext%
          xpatchcmdtext@mathchoicenormalcolormathchoice%

          makeatother

          begindocument
          Some inline math $C_0$.
          beginequation
          y = underbrace
          left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
          _textgrowth rate times
          underbrace
          vphantom left(fraca^0.3bright) C_0
          _textinitial
          endequation
          enddocument


          enter image description here






          share|improve this answer



























            up vote
            2
            down vote













            To enforce black-coloured text you can add colorblack to the definition of textdef@ from amsmath.sty.



            To change the colour of the braces you can add that to the definition of upbracefill (for underbrace) and downbracefill (for overbrace). But I would go for defining a command, say, underbraceColor that takes an optional argument to change the color.



            I also changed everymathcolorblue to everymathexpandaftertheeverymathcolorblue to keep possible previous contents of everymath there:




            enter image description here




            documentclassarticle
            usepackageamsmath
            usepackagexcolor

            everymathexpandaftertheeverymathcolorblue
            makeatletter
            % To enforce black text (taken from amstext.sty)
            deftextdef@#1#2#3hboxcolorblack%
            everymath#1%
            letf@size#2selectfont
            #3
            % To make the braces black (taken from fontmath.sty)
            newcommandoverbraceColor[2][.]%
            mathopvboxm@thialign##crcrnoalignkern3p@%
            downbracefillColor#1crcrnoalignkern3p@nointerlineskip%
            $hfildisplaystyle#2hfil$crcrlimits
            newcommandunderbraceColor[2][.]%
            mathopvtopm@thialign##crcr
            $hfildisplaystyle#2hfil$crcr
            noalignkern3p@nointerlineskip%
            upbracefillColor#1crcrnoalignkern3p@limits
            defdownbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
            braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
            braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
            defupbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
            braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
            braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$
            makeatother

            begindocument
            pagenumberinggobble
            Some inline math $C_0$.
            beginalign*
            y = underbraceColor[black]
            left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
            _textgrowth rate times
            underbraceColor
            vphantom left(fraca^0.3bright) C_0
            _textinitial
            endalign*
            enddocument



            If you prefer to set the color of the braces only once you can use this instead:



            % To make the braces black (taken from fontmath.sty)
            defdownbracefill$colorblackm@th setboxz@hbox$braceld$%
            braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
            braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
            defupbracefill$colorblackm@th setboxz@hbox$braceld$%
            braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
            braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$





            share|improve this answer



























              up vote
              1
              down vote













              You can try to pach text as follows (the braces will be in blue but the text in black). The following code needs to replace _textgrowth rate by _textgrowth rate (nevertheless, for me, _textgrowth rate seems strange).



              documentclassarticle
              usepackageamsmath
              usepackagexcolor

              everymathcolorblue
              makeatletter
              letoldtext@text@
              deftext@colorblackoldtext@
              makeatother

              begindocument
              Some inline math $C_0$.
              beginequation
              y = underbrace
              left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
              _textgrowth rate times
              underbrace
              vphantom left(fraca^0.3bright) C_0
              _textinitial
              endequation
              enddocument





              share|improve this answer


















              • 1




                This doesn't work :/
                – Phelype Oleinik
                55 mins ago






              • 1




                @Phelype Oleinik : you're right. I have modified my answer.
                – F. Pantigny
                41 mins ago










              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
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456846%2fcolored-math-with-the-align-environment%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              3
              down vote













              Redefining m@th is not the best idea. Don't forget everydisplay.



              documentclassarticle
              usepackageamsmath
              usepackagexcolor
              usepackagexpatch

              everymathcolorblue
              everydisplaycolorblue
              xpretocmdupbracefillblacktexteverymathnormalcolor
              xpatchcmdunderbracelimitsblacktextlimits
              makeatletter
              newcommandblacktext%
              xpatchcmdtext@mathchoicenormalcolormathchoice%

              makeatother

              begindocument
              Some inline math $C_0$.
              beginequation
              y = underbrace
              left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
              _textgrowth rate times
              underbrace
              vphantom left(fraca^0.3bright) C_0
              _textinitial
              endequation
              enddocument


              enter image description here






              share|improve this answer
























                up vote
                3
                down vote













                Redefining m@th is not the best idea. Don't forget everydisplay.



                documentclassarticle
                usepackageamsmath
                usepackagexcolor
                usepackagexpatch

                everymathcolorblue
                everydisplaycolorblue
                xpretocmdupbracefillblacktexteverymathnormalcolor
                xpatchcmdunderbracelimitsblacktextlimits
                makeatletter
                newcommandblacktext%
                xpatchcmdtext@mathchoicenormalcolormathchoice%

                makeatother

                begindocument
                Some inline math $C_0$.
                beginequation
                y = underbrace
                left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                _textgrowth rate times
                underbrace
                vphantom left(fraca^0.3bright) C_0
                _textinitial
                endequation
                enddocument


                enter image description here






                share|improve this answer






















                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  Redefining m@th is not the best idea. Don't forget everydisplay.



                  documentclassarticle
                  usepackageamsmath
                  usepackagexcolor
                  usepackagexpatch

                  everymathcolorblue
                  everydisplaycolorblue
                  xpretocmdupbracefillblacktexteverymathnormalcolor
                  xpatchcmdunderbracelimitsblacktextlimits
                  makeatletter
                  newcommandblacktext%
                  xpatchcmdtext@mathchoicenormalcolormathchoice%

                  makeatother

                  begindocument
                  Some inline math $C_0$.
                  beginequation
                  y = underbrace
                  left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                  _textgrowth rate times
                  underbrace
                  vphantom left(fraca^0.3bright) C_0
                  _textinitial
                  endequation
                  enddocument


                  enter image description here






                  share|improve this answer












                  Redefining m@th is not the best idea. Don't forget everydisplay.



                  documentclassarticle
                  usepackageamsmath
                  usepackagexcolor
                  usepackagexpatch

                  everymathcolorblue
                  everydisplaycolorblue
                  xpretocmdupbracefillblacktexteverymathnormalcolor
                  xpatchcmdunderbracelimitsblacktextlimits
                  makeatletter
                  newcommandblacktext%
                  xpatchcmdtext@mathchoicenormalcolormathchoice%

                  makeatother

                  begindocument
                  Some inline math $C_0$.
                  beginequation
                  y = underbrace
                  left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                  _textgrowth rate times
                  underbrace
                  vphantom left(fraca^0.3bright) C_0
                  _textinitial
                  endequation
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 20 mins ago









                  egreg

                  692k8518423092




                  692k8518423092




















                      up vote
                      2
                      down vote













                      To enforce black-coloured text you can add colorblack to the definition of textdef@ from amsmath.sty.



                      To change the colour of the braces you can add that to the definition of upbracefill (for underbrace) and downbracefill (for overbrace). But I would go for defining a command, say, underbraceColor that takes an optional argument to change the color.



                      I also changed everymathcolorblue to everymathexpandaftertheeverymathcolorblue to keep possible previous contents of everymath there:




                      enter image description here




                      documentclassarticle
                      usepackageamsmath
                      usepackagexcolor

                      everymathexpandaftertheeverymathcolorblue
                      makeatletter
                      % To enforce black text (taken from amstext.sty)
                      deftextdef@#1#2#3hboxcolorblack%
                      everymath#1%
                      letf@size#2selectfont
                      #3
                      % To make the braces black (taken from fontmath.sty)
                      newcommandoverbraceColor[2][.]%
                      mathopvboxm@thialign##crcrnoalignkern3p@%
                      downbracefillColor#1crcrnoalignkern3p@nointerlineskip%
                      $hfildisplaystyle#2hfil$crcrlimits
                      newcommandunderbraceColor[2][.]%
                      mathopvtopm@thialign##crcr
                      $hfildisplaystyle#2hfil$crcr
                      noalignkern3p@nointerlineskip%
                      upbracefillColor#1crcrnoalignkern3p@limits
                      defdownbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                      braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                      braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                      defupbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                      braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                      braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$
                      makeatother

                      begindocument
                      pagenumberinggobble
                      Some inline math $C_0$.
                      beginalign*
                      y = underbraceColor[black]
                      left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                      _textgrowth rate times
                      underbraceColor
                      vphantom left(fraca^0.3bright) C_0
                      _textinitial
                      endalign*
                      enddocument



                      If you prefer to set the color of the braces only once you can use this instead:



                      % To make the braces black (taken from fontmath.sty)
                      defdownbracefill$colorblackm@th setboxz@hbox$braceld$%
                      braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                      braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                      defupbracefill$colorblackm@th setboxz@hbox$braceld$%
                      braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                      braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$





                      share|improve this answer
























                        up vote
                        2
                        down vote













                        To enforce black-coloured text you can add colorblack to the definition of textdef@ from amsmath.sty.



                        To change the colour of the braces you can add that to the definition of upbracefill (for underbrace) and downbracefill (for overbrace). But I would go for defining a command, say, underbraceColor that takes an optional argument to change the color.



                        I also changed everymathcolorblue to everymathexpandaftertheeverymathcolorblue to keep possible previous contents of everymath there:




                        enter image description here




                        documentclassarticle
                        usepackageamsmath
                        usepackagexcolor

                        everymathexpandaftertheeverymathcolorblue
                        makeatletter
                        % To enforce black text (taken from amstext.sty)
                        deftextdef@#1#2#3hboxcolorblack%
                        everymath#1%
                        letf@size#2selectfont
                        #3
                        % To make the braces black (taken from fontmath.sty)
                        newcommandoverbraceColor[2][.]%
                        mathopvboxm@thialign##crcrnoalignkern3p@%
                        downbracefillColor#1crcrnoalignkern3p@nointerlineskip%
                        $hfildisplaystyle#2hfil$crcrlimits
                        newcommandunderbraceColor[2][.]%
                        mathopvtopm@thialign##crcr
                        $hfildisplaystyle#2hfil$crcr
                        noalignkern3p@nointerlineskip%
                        upbracefillColor#1crcrnoalignkern3p@limits
                        defdownbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                        braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                        braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                        defupbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                        braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                        braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$
                        makeatother

                        begindocument
                        pagenumberinggobble
                        Some inline math $C_0$.
                        beginalign*
                        y = underbraceColor[black]
                        left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                        _textgrowth rate times
                        underbraceColor
                        vphantom left(fraca^0.3bright) C_0
                        _textinitial
                        endalign*
                        enddocument



                        If you prefer to set the color of the braces only once you can use this instead:



                        % To make the braces black (taken from fontmath.sty)
                        defdownbracefill$colorblackm@th setboxz@hbox$braceld$%
                        braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                        braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                        defupbracefill$colorblackm@th setboxz@hbox$braceld$%
                        braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                        braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$





                        share|improve this answer






















                          up vote
                          2
                          down vote










                          up vote
                          2
                          down vote









                          To enforce black-coloured text you can add colorblack to the definition of textdef@ from amsmath.sty.



                          To change the colour of the braces you can add that to the definition of upbracefill (for underbrace) and downbracefill (for overbrace). But I would go for defining a command, say, underbraceColor that takes an optional argument to change the color.



                          I also changed everymathcolorblue to everymathexpandaftertheeverymathcolorblue to keep possible previous contents of everymath there:




                          enter image description here




                          documentclassarticle
                          usepackageamsmath
                          usepackagexcolor

                          everymathexpandaftertheeverymathcolorblue
                          makeatletter
                          % To enforce black text (taken from amstext.sty)
                          deftextdef@#1#2#3hboxcolorblack%
                          everymath#1%
                          letf@size#2selectfont
                          #3
                          % To make the braces black (taken from fontmath.sty)
                          newcommandoverbraceColor[2][.]%
                          mathopvboxm@thialign##crcrnoalignkern3p@%
                          downbracefillColor#1crcrnoalignkern3p@nointerlineskip%
                          $hfildisplaystyle#2hfil$crcrlimits
                          newcommandunderbraceColor[2][.]%
                          mathopvtopm@thialign##crcr
                          $hfildisplaystyle#2hfil$crcr
                          noalignkern3p@nointerlineskip%
                          upbracefillColor#1crcrnoalignkern3p@limits
                          defdownbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                          defupbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$
                          makeatother

                          begindocument
                          pagenumberinggobble
                          Some inline math $C_0$.
                          beginalign*
                          y = underbraceColor[black]
                          left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                          _textgrowth rate times
                          underbraceColor
                          vphantom left(fraca^0.3bright) C_0
                          _textinitial
                          endalign*
                          enddocument



                          If you prefer to set the color of the braces only once you can use this instead:



                          % To make the braces black (taken from fontmath.sty)
                          defdownbracefill$colorblackm@th setboxz@hbox$braceld$%
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                          defupbracefill$colorblackm@th setboxz@hbox$braceld$%
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$





                          share|improve this answer












                          To enforce black-coloured text you can add colorblack to the definition of textdef@ from amsmath.sty.



                          To change the colour of the braces you can add that to the definition of upbracefill (for underbrace) and downbracefill (for overbrace). But I would go for defining a command, say, underbraceColor that takes an optional argument to change the color.



                          I also changed everymathcolorblue to everymathexpandaftertheeverymathcolorblue to keep possible previous contents of everymath there:




                          enter image description here




                          documentclassarticle
                          usepackageamsmath
                          usepackagexcolor

                          everymathexpandaftertheeverymathcolorblue
                          makeatletter
                          % To enforce black text (taken from amstext.sty)
                          deftextdef@#1#2#3hboxcolorblack%
                          everymath#1%
                          letf@size#2selectfont
                          #3
                          % To make the braces black (taken from fontmath.sty)
                          newcommandoverbraceColor[2][.]%
                          mathopvboxm@thialign##crcrnoalignkern3p@%
                          downbracefillColor#1crcrnoalignkern3p@nointerlineskip%
                          $hfildisplaystyle#2hfil$crcrlimits
                          newcommandunderbraceColor[2][.]%
                          mathopvtopm@thialign##crcr
                          $hfildisplaystyle#2hfil$crcr
                          noalignkern3p@nointerlineskip%
                          upbracefillColor#1crcrnoalignkern3p@limits
                          defdownbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                          defupbracefillColor#1$color#1m@th setboxz@hbox$braceld$%
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$
                          makeatother

                          begindocument
                          pagenumberinggobble
                          Some inline math $C_0$.
                          beginalign*
                          y = underbraceColor[black]
                          left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                          _textgrowth rate times
                          underbraceColor
                          vphantom left(fraca^0.3bright) C_0
                          _textinitial
                          endalign*
                          enddocument



                          If you prefer to set the color of the braces only once you can use this instead:



                          % To make the braces black (taken from fontmath.sty)
                          defdownbracefill$colorblackm@th setboxz@hbox$braceld$%
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd$
                          defupbracefill$colorblackm@th setboxz@hbox$braceld$%
                          braceluleadersvrule @heighthtz@ @depthz@hfillbracerd
                          braceldleadersvrule @heighthtz@ @depthz@hfillbraceru$






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 30 mins ago









                          Phelype Oleinik

                          19.3k54275




                          19.3k54275




















                              up vote
                              1
                              down vote













                              You can try to pach text as follows (the braces will be in blue but the text in black). The following code needs to replace _textgrowth rate by _textgrowth rate (nevertheless, for me, _textgrowth rate seems strange).



                              documentclassarticle
                              usepackageamsmath
                              usepackagexcolor

                              everymathcolorblue
                              makeatletter
                              letoldtext@text@
                              deftext@colorblackoldtext@
                              makeatother

                              begindocument
                              Some inline math $C_0$.
                              beginequation
                              y = underbrace
                              left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                              _textgrowth rate times
                              underbrace
                              vphantom left(fraca^0.3bright) C_0
                              _textinitial
                              endequation
                              enddocument





                              share|improve this answer


















                              • 1




                                This doesn't work :/
                                – Phelype Oleinik
                                55 mins ago






                              • 1




                                @Phelype Oleinik : you're right. I have modified my answer.
                                – F. Pantigny
                                41 mins ago














                              up vote
                              1
                              down vote













                              You can try to pach text as follows (the braces will be in blue but the text in black). The following code needs to replace _textgrowth rate by _textgrowth rate (nevertheless, for me, _textgrowth rate seems strange).



                              documentclassarticle
                              usepackageamsmath
                              usepackagexcolor

                              everymathcolorblue
                              makeatletter
                              letoldtext@text@
                              deftext@colorblackoldtext@
                              makeatother

                              begindocument
                              Some inline math $C_0$.
                              beginequation
                              y = underbrace
                              left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                              _textgrowth rate times
                              underbrace
                              vphantom left(fraca^0.3bright) C_0
                              _textinitial
                              endequation
                              enddocument





                              share|improve this answer


















                              • 1




                                This doesn't work :/
                                – Phelype Oleinik
                                55 mins ago






                              • 1




                                @Phelype Oleinik : you're right. I have modified my answer.
                                – F. Pantigny
                                41 mins ago












                              up vote
                              1
                              down vote










                              up vote
                              1
                              down vote









                              You can try to pach text as follows (the braces will be in blue but the text in black). The following code needs to replace _textgrowth rate by _textgrowth rate (nevertheless, for me, _textgrowth rate seems strange).



                              documentclassarticle
                              usepackageamsmath
                              usepackagexcolor

                              everymathcolorblue
                              makeatletter
                              letoldtext@text@
                              deftext@colorblackoldtext@
                              makeatother

                              begindocument
                              Some inline math $C_0$.
                              beginequation
                              y = underbrace
                              left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                              _textgrowth rate times
                              underbrace
                              vphantom left(fraca^0.3bright) C_0
                              _textinitial
                              endequation
                              enddocument





                              share|improve this answer














                              You can try to pach text as follows (the braces will be in blue but the text in black). The following code needs to replace _textgrowth rate by _textgrowth rate (nevertheless, for me, _textgrowth rate seems strange).



                              documentclassarticle
                              usepackageamsmath
                              usepackagexcolor

                              everymathcolorblue
                              makeatletter
                              letoldtext@text@
                              deftext@colorblackoldtext@
                              makeatother

                              begindocument
                              Some inline math $C_0$.
                              beginequation
                              y = underbrace
                              left[ x^2 + r^2 left(a^2+fraca^0.3bright) right]
                              _textgrowth rate times
                              underbrace
                              vphantom left(fraca^0.3bright) C_0
                              _textinitial
                              endequation
                              enddocument






                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited 42 mins ago

























                              answered 1 hour ago









                              F. Pantigny

                              39518




                              39518







                              • 1




                                This doesn't work :/
                                – Phelype Oleinik
                                55 mins ago






                              • 1




                                @Phelype Oleinik : you're right. I have modified my answer.
                                – F. Pantigny
                                41 mins ago












                              • 1




                                This doesn't work :/
                                – Phelype Oleinik
                                55 mins ago






                              • 1




                                @Phelype Oleinik : you're right. I have modified my answer.
                                – F. Pantigny
                                41 mins ago







                              1




                              1




                              This doesn't work :/
                              – Phelype Oleinik
                              55 mins ago




                              This doesn't work :/
                              – Phelype Oleinik
                              55 mins ago




                              1




                              1




                              @Phelype Oleinik : you're right. I have modified my answer.
                              – F. Pantigny
                              41 mins ago




                              @Phelype Oleinik : you're right. I have modified my answer.
                              – F. Pantigny
                              41 mins ago

















                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f456846%2fcolored-math-with-the-align-environment%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              List of Gilmore Girls characters

                              Confectionery