Comment Box for Substitution Method of IntegralsTikZ: Cropping the Bounding BoxHow can I put a coloured outline around fraction lines?TikZ: complicated paths, e.g. for complex integralsRotate a node but not its content: the case of the ellipse decorationContour integralsTikZ/ERD: node (=Entity) label on the insideTikZ: Drawing an arc from an intersection to an intersectionHorner's Method for polynomial long divisionsubstitution in tikz calcTikz: Method to color regions

Does multi-classing into Fighter give you heavy armor proficiency?

Help rendering a complicated sum/product formula

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

How does one measure the Fourier components of a signal?

How might a highly intelligent aquatic species (mermaids) communicate underwater?

Am I eligible for the Eurail Youth pass? I am 27.5 years old

What does Deadpool mean by "left the house in that shirt"?

Hausdorff dimension of the boundary of fibres of Lipschitz maps

Why are there no stars visible in cislunar space?

How is the partial sum of a geometric sequence calculated?

What is the significance behind "40 days" that often appears in the Bible?

How to get the n-th line after a grepped one?

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

Are dual Irish/British citizens bound by the 90/180 day rule when travelling in the EU after Brexit?

A Ri-diddley-iley Riddle

I seem to dance, I am not a dancer. Who am I?

Print last inputted byte

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Maths symbols and unicode-math input inside siunitx commands

Do I need to consider instance restrictions when showing a language is in P?

HP P840 HDD RAID 5 many strange drive failures

What are substitutions for coconut in curry?

Tikz: place node leftmost of two nodes of different widths

How can an organ that provides biological immortality be unable to regenerate?



Comment Box for Substitution Method of Integrals


TikZ: Cropping the Bounding BoxHow can I put a coloured outline around fraction lines?TikZ: complicated paths, e.g. for complex integralsRotate a node but not its content: the case of the ellipse decorationContour integralsTikZ/ERD: node (=Entity) label on the insideTikZ: Drawing an arc from an intersection to an intersectionHorner's Method for polynomial long divisionsubstitution in tikz calcTikz: Method to color regions













4















I want to make a comment box like the image below that adjusts in size as I write up different examples. My MWE is not much



documentclassarticle
usepackageamsmath, mathtools,tikz

begindocument

beginalign*
displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
x^3+1)^10 textcolorblue3x^2 dx \
&=int textcolorredu^10
textcolorbluedu
endalign*

enddocument


This outputs:



enter image description here



I am trying to recreate with a black box drawn around the orange shaded area.



enter image description here










share|improve this question


























    4















    I want to make a comment box like the image below that adjusts in size as I write up different examples. My MWE is not much



    documentclassarticle
    usepackageamsmath, mathtools,tikz

    begindocument

    beginalign*
    displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
    x^3+1)^10 textcolorblue3x^2 dx \
    &=int textcolorredu^10
    textcolorbluedu
    endalign*

    enddocument


    This outputs:



    enter image description here



    I am trying to recreate with a black box drawn around the orange shaded area.



    enter image description here










    share|improve this question
























      4












      4








      4


      0






      I want to make a comment box like the image below that adjusts in size as I write up different examples. My MWE is not much



      documentclassarticle
      usepackageamsmath, mathtools,tikz

      begindocument

      beginalign*
      displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
      x^3+1)^10 textcolorblue3x^2 dx \
      &=int textcolorredu^10
      textcolorbluedu
      endalign*

      enddocument


      This outputs:



      enter image description here



      I am trying to recreate with a black box drawn around the orange shaded area.



      enter image description here










      share|improve this question














      I want to make a comment box like the image below that adjusts in size as I write up different examples. My MWE is not much



      documentclassarticle
      usepackageamsmath, mathtools,tikz

      begindocument

      beginalign*
      displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
      x^3+1)^10 textcolorblue3x^2 dx \
      &=int textcolorredu^10
      textcolorbluedu
      endalign*

      enddocument


      This outputs:



      enter image description here



      I am trying to recreate with a black box drawn around the orange shaded area.



      enter image description here







      tikz-pgf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 hours ago









      MathScholarMathScholar

      1,08529




      1,08529




















          2 Answers
          2






          active

          oldest

          votes


















          5














          Using tikzmark, it is not so difficult:



          documentclassarticle
          usepackageamsmath, mathtools,tikz
          usetikzlibrarytikzmark,calc
          begindocument

          beginalign*
          displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred x^3+1)^10 textcolorblue3x^2 dx tikzmarkeqt\
          &=int textcolorredu^10textcolorbluedu
          endalign*

          begintikzpicture[overlay, remember picture]
          coordinate (x) at ($(pic cs:eqt)+(1,0)$);
          draw (x)--($(x)+(3,0)$);
          draw[red] (x) node[above right] Substitution;
          draw ($(x)+(3,0)$) node[right,draw,fill=orange!50] %
          % Remove `draw' option if you don't want the box
          $beginaligned
          u&=x^3+1,\
          du&=3x^2dx
          endaligned$;
          endtikzpicture

          enddocument


          enter image description here




          This very nice and creative solution is by @marmot:



          documentclass[fleqn]article
          usepackageamsmath,tikz
          usetikzlibrarytikzmark
          begindocument

          beginalign*
          displaystyleint 3x^2(x^3+1)^10,mathrmdx
          &tikzmarknodeeq1=int (textcolorred x^3+1)^10
          textcolorblue3x^2, mathrmdx \
          &tikzmarknodeeq2=int textcolorredu^10,textcolorbluemathrmdu
          endalign*

          begintikzpicture[overlay, remember picture]
          path (eq1) -- (eq2) coordinate[midway] (aux);
          draw[latex-] (eq2) -- (aux) -- ++ (5,0) node[above left] substitute
          node[right,fill=orange!30] %
          $beginaligned
          u&=x^3+1\
          mathrmdu&=3x^2,mathrmdx
          endaligned$;
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer
































            4














            Without tikz, I define an extensible xmathline, centred on the math axis, which accepts writing above and below it, like xrightarrow, and add a simple colorbox:



            documentclass[svgnames]article
            usepackageamsmath, mathtools,tikz
            usepackagexcolor
            usepackagebigstrut

            newcommandxmathline[2][]%
            ext@arrow 0099xmathlinefill@#1#2%
            newcommandxmathlinefill@%
            arrowfill@relbarbigstrutrelbarrelbar
            makeatother

            begindocument

            beginalign*
            displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
            x^3+1)^10 textcolorblue3x^2 dx
            quadxmathlinetextcolorCrimsonsubstitutionquadcolorboxNavajoWhite! 60$beginaligned u & = x^3 + 1 \ du & =3x^2,dx endaligned $ \%
            &=int textcolorredu^10
            textcolorbluedu
            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',
              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%2f479930%2fcomment-box-for-substitution-method-of-integrals%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              5














              Using tikzmark, it is not so difficult:



              documentclassarticle
              usepackageamsmath, mathtools,tikz
              usetikzlibrarytikzmark,calc
              begindocument

              beginalign*
              displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred x^3+1)^10 textcolorblue3x^2 dx tikzmarkeqt\
              &=int textcolorredu^10textcolorbluedu
              endalign*

              begintikzpicture[overlay, remember picture]
              coordinate (x) at ($(pic cs:eqt)+(1,0)$);
              draw (x)--($(x)+(3,0)$);
              draw[red] (x) node[above right] Substitution;
              draw ($(x)+(3,0)$) node[right,draw,fill=orange!50] %
              % Remove `draw' option if you don't want the box
              $beginaligned
              u&=x^3+1,\
              du&=3x^2dx
              endaligned$;
              endtikzpicture

              enddocument


              enter image description here




              This very nice and creative solution is by @marmot:



              documentclass[fleqn]article
              usepackageamsmath,tikz
              usetikzlibrarytikzmark
              begindocument

              beginalign*
              displaystyleint 3x^2(x^3+1)^10,mathrmdx
              &tikzmarknodeeq1=int (textcolorred x^3+1)^10
              textcolorblue3x^2, mathrmdx \
              &tikzmarknodeeq2=int textcolorredu^10,textcolorbluemathrmdu
              endalign*

              begintikzpicture[overlay, remember picture]
              path (eq1) -- (eq2) coordinate[midway] (aux);
              draw[latex-] (eq2) -- (aux) -- ++ (5,0) node[above left] substitute
              node[right,fill=orange!30] %
              $beginaligned
              u&=x^3+1\
              mathrmdu&=3x^2,mathrmdx
              endaligned$;
              endtikzpicture
              enddocument


              enter image description here






              share|improve this answer





























                5














                Using tikzmark, it is not so difficult:



                documentclassarticle
                usepackageamsmath, mathtools,tikz
                usetikzlibrarytikzmark,calc
                begindocument

                beginalign*
                displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred x^3+1)^10 textcolorblue3x^2 dx tikzmarkeqt\
                &=int textcolorredu^10textcolorbluedu
                endalign*

                begintikzpicture[overlay, remember picture]
                coordinate (x) at ($(pic cs:eqt)+(1,0)$);
                draw (x)--($(x)+(3,0)$);
                draw[red] (x) node[above right] Substitution;
                draw ($(x)+(3,0)$) node[right,draw,fill=orange!50] %
                % Remove `draw' option if you don't want the box
                $beginaligned
                u&=x^3+1,\
                du&=3x^2dx
                endaligned$;
                endtikzpicture

                enddocument


                enter image description here




                This very nice and creative solution is by @marmot:



                documentclass[fleqn]article
                usepackageamsmath,tikz
                usetikzlibrarytikzmark
                begindocument

                beginalign*
                displaystyleint 3x^2(x^3+1)^10,mathrmdx
                &tikzmarknodeeq1=int (textcolorred x^3+1)^10
                textcolorblue3x^2, mathrmdx \
                &tikzmarknodeeq2=int textcolorredu^10,textcolorbluemathrmdu
                endalign*

                begintikzpicture[overlay, remember picture]
                path (eq1) -- (eq2) coordinate[midway] (aux);
                draw[latex-] (eq2) -- (aux) -- ++ (5,0) node[above left] substitute
                node[right,fill=orange!30] %
                $beginaligned
                u&=x^3+1\
                mathrmdu&=3x^2,mathrmdx
                endaligned$;
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer



























                  5












                  5








                  5







                  Using tikzmark, it is not so difficult:



                  documentclassarticle
                  usepackageamsmath, mathtools,tikz
                  usetikzlibrarytikzmark,calc
                  begindocument

                  beginalign*
                  displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred x^3+1)^10 textcolorblue3x^2 dx tikzmarkeqt\
                  &=int textcolorredu^10textcolorbluedu
                  endalign*

                  begintikzpicture[overlay, remember picture]
                  coordinate (x) at ($(pic cs:eqt)+(1,0)$);
                  draw (x)--($(x)+(3,0)$);
                  draw[red] (x) node[above right] Substitution;
                  draw ($(x)+(3,0)$) node[right,draw,fill=orange!50] %
                  % Remove `draw' option if you don't want the box
                  $beginaligned
                  u&=x^3+1,\
                  du&=3x^2dx
                  endaligned$;
                  endtikzpicture

                  enddocument


                  enter image description here




                  This very nice and creative solution is by @marmot:



                  documentclass[fleqn]article
                  usepackageamsmath,tikz
                  usetikzlibrarytikzmark
                  begindocument

                  beginalign*
                  displaystyleint 3x^2(x^3+1)^10,mathrmdx
                  &tikzmarknodeeq1=int (textcolorred x^3+1)^10
                  textcolorblue3x^2, mathrmdx \
                  &tikzmarknodeeq2=int textcolorredu^10,textcolorbluemathrmdu
                  endalign*

                  begintikzpicture[overlay, remember picture]
                  path (eq1) -- (eq2) coordinate[midway] (aux);
                  draw[latex-] (eq2) -- (aux) -- ++ (5,0) node[above left] substitute
                  node[right,fill=orange!30] %
                  $beginaligned
                  u&=x^3+1\
                  mathrmdu&=3x^2,mathrmdx
                  endaligned$;
                  endtikzpicture
                  enddocument


                  enter image description here






                  share|improve this answer















                  Using tikzmark, it is not so difficult:



                  documentclassarticle
                  usepackageamsmath, mathtools,tikz
                  usetikzlibrarytikzmark,calc
                  begindocument

                  beginalign*
                  displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred x^3+1)^10 textcolorblue3x^2 dx tikzmarkeqt\
                  &=int textcolorredu^10textcolorbluedu
                  endalign*

                  begintikzpicture[overlay, remember picture]
                  coordinate (x) at ($(pic cs:eqt)+(1,0)$);
                  draw (x)--($(x)+(3,0)$);
                  draw[red] (x) node[above right] Substitution;
                  draw ($(x)+(3,0)$) node[right,draw,fill=orange!50] %
                  % Remove `draw' option if you don't want the box
                  $beginaligned
                  u&=x^3+1,\
                  du&=3x^2dx
                  endaligned$;
                  endtikzpicture

                  enddocument


                  enter image description here




                  This very nice and creative solution is by @marmot:



                  documentclass[fleqn]article
                  usepackageamsmath,tikz
                  usetikzlibrarytikzmark
                  begindocument

                  beginalign*
                  displaystyleint 3x^2(x^3+1)^10,mathrmdx
                  &tikzmarknodeeq1=int (textcolorred x^3+1)^10
                  textcolorblue3x^2, mathrmdx \
                  &tikzmarknodeeq2=int textcolorredu^10,textcolorbluemathrmdu
                  endalign*

                  begintikzpicture[overlay, remember picture]
                  path (eq1) -- (eq2) coordinate[midway] (aux);
                  draw[latex-] (eq2) -- (aux) -- ++ (5,0) node[above left] substitute
                  node[right,fill=orange!30] %
                  $beginaligned
                  u&=x^3+1\
                  mathrmdu&=3x^2,mathrmdx
                  endaligned$;
                  endtikzpicture
                  enddocument


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 11 hours ago

























                  answered 12 hours ago









                  JouleVJouleV

                  6,21121650




                  6,21121650





















                      4














                      Without tikz, I define an extensible xmathline, centred on the math axis, which accepts writing above and below it, like xrightarrow, and add a simple colorbox:



                      documentclass[svgnames]article
                      usepackageamsmath, mathtools,tikz
                      usepackagexcolor
                      usepackagebigstrut

                      newcommandxmathline[2][]%
                      ext@arrow 0099xmathlinefill@#1#2%
                      newcommandxmathlinefill@%
                      arrowfill@relbarbigstrutrelbarrelbar
                      makeatother

                      begindocument

                      beginalign*
                      displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
                      x^3+1)^10 textcolorblue3x^2 dx
                      quadxmathlinetextcolorCrimsonsubstitutionquadcolorboxNavajoWhite! 60$beginaligned u & = x^3 + 1 \ du & =3x^2,dx endaligned $ \%
                      &=int textcolorredu^10
                      textcolorbluedu
                      endalign*

                      enddocument


                      enter image description here






                      share|improve this answer





























                        4














                        Without tikz, I define an extensible xmathline, centred on the math axis, which accepts writing above and below it, like xrightarrow, and add a simple colorbox:



                        documentclass[svgnames]article
                        usepackageamsmath, mathtools,tikz
                        usepackagexcolor
                        usepackagebigstrut

                        newcommandxmathline[2][]%
                        ext@arrow 0099xmathlinefill@#1#2%
                        newcommandxmathlinefill@%
                        arrowfill@relbarbigstrutrelbarrelbar
                        makeatother

                        begindocument

                        beginalign*
                        displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
                        x^3+1)^10 textcolorblue3x^2 dx
                        quadxmathlinetextcolorCrimsonsubstitutionquadcolorboxNavajoWhite! 60$beginaligned u & = x^3 + 1 \ du & =3x^2,dx endaligned $ \%
                        &=int textcolorredu^10
                        textcolorbluedu
                        endalign*

                        enddocument


                        enter image description here






                        share|improve this answer



























                          4












                          4








                          4







                          Without tikz, I define an extensible xmathline, centred on the math axis, which accepts writing above and below it, like xrightarrow, and add a simple colorbox:



                          documentclass[svgnames]article
                          usepackageamsmath, mathtools,tikz
                          usepackagexcolor
                          usepackagebigstrut

                          newcommandxmathline[2][]%
                          ext@arrow 0099xmathlinefill@#1#2%
                          newcommandxmathlinefill@%
                          arrowfill@relbarbigstrutrelbarrelbar
                          makeatother

                          begindocument

                          beginalign*
                          displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
                          x^3+1)^10 textcolorblue3x^2 dx
                          quadxmathlinetextcolorCrimsonsubstitutionquadcolorboxNavajoWhite! 60$beginaligned u & = x^3 + 1 \ du & =3x^2,dx endaligned $ \%
                          &=int textcolorredu^10
                          textcolorbluedu
                          endalign*

                          enddocument


                          enter image description here






                          share|improve this answer















                          Without tikz, I define an extensible xmathline, centred on the math axis, which accepts writing above and below it, like xrightarrow, and add a simple colorbox:



                          documentclass[svgnames]article
                          usepackageamsmath, mathtools,tikz
                          usepackagexcolor
                          usepackagebigstrut

                          newcommandxmathline[2][]%
                          ext@arrow 0099xmathlinefill@#1#2%
                          newcommandxmathlinefill@%
                          arrowfill@relbarbigstrutrelbarrelbar
                          makeatother

                          begindocument

                          beginalign*
                          displaystyleint 3x^2(x^3+1)^10 dx &=int (textcolorred
                          x^3+1)^10 textcolorblue3x^2 dx
                          quadxmathlinetextcolorCrimsonsubstitutionquadcolorboxNavajoWhite! 60$beginaligned u & = x^3 + 1 \ du & =3x^2,dx endaligned $ \%
                          &=int textcolorredu^10
                          textcolorbluedu
                          endalign*

                          enddocument


                          enter image description here







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 11 hours ago

























                          answered 11 hours ago









                          BernardBernard

                          173k776204




                          173k776204



























                              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%2f479930%2fcomment-box-for-substitution-method-of-integrals%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 create a command for the “strange m” symbol in latex? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How do you make your own symbol when Detexify fails?Writing bold small caps with mathpazo packageplus-minus symbol with parenthesis around the minus signGreek character in Beamer document titleHow to create dashed right arrow over symbol?Currency symbol: Turkish LiraDouble prec as a single symbol?Plus Sign Too Big; How to Call adfbullet?Is there a TeX macro for three-legged pi?How do I get my integral-like symbol to align like the integral?How to selectively substitute a letter with another symbol representing the same letterHow do I generate a less than symbol and vertical bar that are the same height?

                              Българска екзархия Съдържание История | Български екзарси | Вижте също | Външни препратки | Литература | Бележки | НавигацияУстав за управлението на българската екзархия. Цариград, 1870Слово на Ловешкия митрополит Иларион при откриването на Българския народен събор в Цариград на 23. II. 1870 г.Българската правда и гръцката кривда. От С. М. (= Софийски Мелетий). Цариград, 1872Предстоятели на Българската екзархияПодмененият ВеликденИнформационна агенция „Фокус“Димитър Ризов. Българите в техните исторически, етнографически и политически граници (Атлас съдържащ 40 карти). Berlin, Königliche Hoflithographie, Hof-Buch- und -Steindruckerei Wilhelm Greve, 1917Report of the International Commission to Inquire into the Causes and Conduct of the Balkan Wars

                              Category:Tremithousa Media in category "Tremithousa"Navigation menuUpload media34° 49′ 02.7″ N, 32° 26′ 37.32″ EOpenStreetMapGoogle EarthProximityramaReasonatorScholiaStatisticsWikiShootMe