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

Can I say "fingers" when referring to toes?

Is there a RAID 0 Equivalent for RAM?

Can I run 125kHz RF circuit on a breadboard?

Integral Notations in Quantum Mechanics

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?

what Does apple's new app store requirement mean

Get first value that matches condition (loop too slow)

Why the "ls" command is showing the permissions of files in a FAT32 partition?

How to make money from a browser who sees 5 seconds into the future of any web page?

How much do grades matter for a future academia position?

PTIJ: Which Dr. Seuss books should one obtain?

Difference between shutdown options

On definitions and explicit examples of pure-injective modules

Is there any evidence that Cleopatra and Caesarion considered fleeing to India to escape the Romans?

what is the name of this formula derived from Poisson Distribution?

Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

How to convince somebody that he is fit for something else, but not this job?

Is there a distance limit for minecart tracks?

What is the English pronunciation of pain au chocolat?

GNU awk ERRNO not set on command failure

Why does a 97 / 92 key piano exist by Bösendorfer?

Does the reader need to like the PoV character?

Giving feedback to someone without sounding prejudiced



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













6















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


























    6















    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
























      6












      6








      6


      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 Mar 17 at 14:14









      MathScholarMathScholar

      1,09529




      1,09529




















          2 Answers
          2






          active

          oldest

          votes


















          6














          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














            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









              6














              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





























                6














                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



























                  6












                  6








                  6







                  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 Mar 17 at 15:42

























                  answered Mar 17 at 14:35









                  JouleVJouleV

                  6,91021951




                  6,91021951





















                      5














                      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





























                        5














                        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



























                          5












                          5








                          5







                          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 Mar 17 at 15:51

























                          answered Mar 17 at 15:14









                          BernardBernard

                          173k776205




                          173k776205



























                              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

                              Identifying “long and narrow” polygons in with PostGISlength and width of polygonWhy postgis st_overlaps reports Qgis' “avoid intersections” generated polygon as overlapping with others?Adjusting polygons to boundary and filling holesDrawing polygons with fixed area?How to remove spikes in Polygons with PostGISDeleting sliver polygons after difference operation in QGIS?Snapping boundaries in PostGISSplit polygon into parts adding attributes based on underlying polygon in QGISSplitting overlap between polygons and assign to nearest polygon using PostGIS?Expanding polygons and clipping at midpoint?Removing Intersection of Buffers in Same Layers

                              Masuk log Menu navigasi

                              อาณาจักร (ชีววิทยา) ดูเพิ่ม อ้างอิง รายการเลือกการนำทาง10.1086/39456810.5962/bhl.title.447410.1126/science.163.3863.150576276010.1007/BF01796092408502"Phylogenetic structure of the prokaryotic domain: the primary kingdoms"10.1073/pnas.74.11.5088432104270744"Towards a natural system of organisms: proposal for the domains Archaea, Bacteria, and Eucarya"1990PNAS...87.4576W10.1073/pnas.87.12.4576541592112744PubMedJump the queueexpand by handPubMedJump the queueexpand by handPubMedJump the queueexpand by hand"A revised six-kingdom system of life"10.1111/j.1469-185X.1998.tb00030.x9809012"Only six kingdoms of life"10.1098/rspb.2004.2705169172415306349"Kingdoms Protozoa and Chromista and the eozoan root of the eukaryotic tree"10.1098/rsbl.2009.0948288006020031978เพิ่มข้อมูล