Put additional features for elementary row operations in latex











up vote
0
down vote

favorite












During preparing a note about elementary row operations, I did the following as similar as I had found through the site:



documentclass[a4paper,12pt]{book}‎
usepackage{amsmath,amssymb,amsthm,amsfonts}‎
begin{document}‎‎
‎‎begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
3 & circled{7}
end{pmatrix}‎
‎‎xrightarrow ‎{‎tfrac{-12}{2}‎R_1+ R_3‎mapsto ‎R_3}‎‎
begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
-21 & circled{5-‎}‎
end{pmatrix}
‎end{document}‎



Is it possible to do it as the picture?



enter image description here



I think, If I can do that, they will be illustrated nicely.










share|improve this question
























  • Hi. Please a compilable MWE. You have been on this network for more than 4 years, you must know what a MWE is.
    – Dũng Vũ
    46 mins ago










  • @DũngVũ: Thanks. Sorry for that.
    – mrs
    32 mins ago










  • Which package do you use for the circled command?
    – Dũng Vũ
    28 mins ago















up vote
0
down vote

favorite












During preparing a note about elementary row operations, I did the following as similar as I had found through the site:



documentclass[a4paper,12pt]{book}‎
usepackage{amsmath,amssymb,amsthm,amsfonts}‎
begin{document}‎‎
‎‎begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
3 & circled{7}
end{pmatrix}‎
‎‎xrightarrow ‎{‎tfrac{-12}{2}‎R_1+ R_3‎mapsto ‎R_3}‎‎
begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
-21 & circled{5-‎}‎
end{pmatrix}
‎end{document}‎



Is it possible to do it as the picture?



enter image description here



I think, If I can do that, they will be illustrated nicely.










share|improve this question
























  • Hi. Please a compilable MWE. You have been on this network for more than 4 years, you must know what a MWE is.
    – Dũng Vũ
    46 mins ago










  • @DũngVũ: Thanks. Sorry for that.
    – mrs
    32 mins ago










  • Which package do you use for the circled command?
    – Dũng Vũ
    28 mins ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











During preparing a note about elementary row operations, I did the following as similar as I had found through the site:



documentclass[a4paper,12pt]{book}‎
usepackage{amsmath,amssymb,amsthm,amsfonts}‎
begin{document}‎‎
‎‎begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
3 & circled{7}
end{pmatrix}‎
‎‎xrightarrow ‎{‎tfrac{-12}{2}‎R_1+ R_3‎mapsto ‎R_3}‎‎
begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
-21 & circled{5-‎}‎
end{pmatrix}
‎end{document}‎



Is it possible to do it as the picture?



enter image description here



I think, If I can do that, they will be illustrated nicely.










share|improve this question















During preparing a note about elementary row operations, I did the following as similar as I had found through the site:



documentclass[a4paper,12pt]{book}‎
usepackage{amsmath,amssymb,amsthm,amsfonts}‎
begin{document}‎‎
‎‎begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
3 & circled{7}
end{pmatrix}‎
‎‎xrightarrow ‎{‎tfrac{-12}{2}‎R_1+ R_3‎mapsto ‎R_3}‎‎
begin{pmatrix}
‎2‎‎ & 1 \
1 & -5\‎
-21 & circled{5-‎}‎
end{pmatrix}
‎end{document}‎



Is it possible to do it as the picture?



enter image description here



I think, If I can do that, they will be illustrated nicely.







matrices






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 33 mins ago

























asked 58 mins ago









mrs

1546




1546












  • Hi. Please a compilable MWE. You have been on this network for more than 4 years, you must know what a MWE is.
    – Dũng Vũ
    46 mins ago










  • @DũngVũ: Thanks. Sorry for that.
    – mrs
    32 mins ago










  • Which package do you use for the circled command?
    – Dũng Vũ
    28 mins ago


















  • Hi. Please a compilable MWE. You have been on this network for more than 4 years, you must know what a MWE is.
    – Dũng Vũ
    46 mins ago










  • @DũngVũ: Thanks. Sorry for that.
    – mrs
    32 mins ago










  • Which package do you use for the circled command?
    – Dũng Vũ
    28 mins ago
















Hi. Please a compilable MWE. You have been on this network for more than 4 years, you must know what a MWE is.
– Dũng Vũ
46 mins ago




Hi. Please a compilable MWE. You have been on this network for more than 4 years, you must know what a MWE is.
– Dũng Vũ
46 mins ago












@DũngVũ: Thanks. Sorry for that.
– mrs
32 mins ago




@DũngVũ: Thanks. Sorry for that.
– mrs
32 mins ago












Which package do you use for the circled command?
– Dũng Vũ
28 mins ago




Which package do you use for the circled command?
– Dũng Vũ
28 mins ago










2 Answers
2






active

oldest

votes

















up vote
1
down vote













Since you didn't provide a complete MWE, I used a circled command found here.



By the way, the parts already written in your MWE don't exactly correspond to the image, I've replicated the image.



Is this what you what to achieve?



documentclass[a4paper,12pt]{book}
usepackage{amsmath,amssymb,amsthm,amsfonts}
usepackage{tikz}
newcommand*circled[1]{tikz[baseline=(A.base)]{node[circle,draw,inner sep=1](A){$#1$};}}% code from: https://tex.stackexchange.com/a/304891/101651
usepackage{array}
newcolumntype{R}{>{$}r<{$}}
usepackage{booktabs}
begin{document}
[
begin{pmatrix}
2 & 1 \
1 & -5\
3 & circled{7}
end{pmatrix}
xrightarrow[scriptsizebegin{tabular}{R!{:}RR}
-12R_{1} & -24 & -12\
R_{3} & 3 & 7\
cmidrule(lr){2-3}
text{(new) } R_{3} & -21 & -5
end{tabular}]{-12R_1+ R_3mapsto R_3}
begin{pmatrix}
2 & 1 \
1 & -5\
-2 & circled{-5}
end{pmatrix}
]
end{document}


enter image description here






share|improve this answer




























    up vote
    0
    down vote













    documentclass[a4paper,12pt]{book}
    usepackage{amsmath,amssymb,amsthm,amsfonts}
    usepackage{array}
    begin{document}
    [
    left(begin{array}{cc}
    2 & 1\
    1 & -5\
    3 & 7
    end{array}right)xrightarrow[
    begin{scriptsize}
    begin{array}{rrr}
    -12R_1: & -24 & -12\
    R_3: & 3 & 7\
    cline{2-3}
    text{(new) }R_3: & -21 & -5
    end{array}
    end{scriptsize}
    ]{-12R_1+R_3rightarrow R_3}left(begin{array}{cc}
    2 & 1\
    1 & -5\
    -21 & -5
    end{array}right)
    ]
    end{document}


    enter image description here






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "85"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: 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%2f462924%2fput-additional-features-for-elementary-row-operations-in-latex%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








      up vote
      1
      down vote













      Since you didn't provide a complete MWE, I used a circled command found here.



      By the way, the parts already written in your MWE don't exactly correspond to the image, I've replicated the image.



      Is this what you what to achieve?



      documentclass[a4paper,12pt]{book}
      usepackage{amsmath,amssymb,amsthm,amsfonts}
      usepackage{tikz}
      newcommand*circled[1]{tikz[baseline=(A.base)]{node[circle,draw,inner sep=1](A){$#1$};}}% code from: https://tex.stackexchange.com/a/304891/101651
      usepackage{array}
      newcolumntype{R}{>{$}r<{$}}
      usepackage{booktabs}
      begin{document}
      [
      begin{pmatrix}
      2 & 1 \
      1 & -5\
      3 & circled{7}
      end{pmatrix}
      xrightarrow[scriptsizebegin{tabular}{R!{:}RR}
      -12R_{1} & -24 & -12\
      R_{3} & 3 & 7\
      cmidrule(lr){2-3}
      text{(new) } R_{3} & -21 & -5
      end{tabular}]{-12R_1+ R_3mapsto R_3}
      begin{pmatrix}
      2 & 1 \
      1 & -5\
      -2 & circled{-5}
      end{pmatrix}
      ]
      end{document}


      enter image description here






      share|improve this answer

























        up vote
        1
        down vote













        Since you didn't provide a complete MWE, I used a circled command found here.



        By the way, the parts already written in your MWE don't exactly correspond to the image, I've replicated the image.



        Is this what you what to achieve?



        documentclass[a4paper,12pt]{book}
        usepackage{amsmath,amssymb,amsthm,amsfonts}
        usepackage{tikz}
        newcommand*circled[1]{tikz[baseline=(A.base)]{node[circle,draw,inner sep=1](A){$#1$};}}% code from: https://tex.stackexchange.com/a/304891/101651
        usepackage{array}
        newcolumntype{R}{>{$}r<{$}}
        usepackage{booktabs}
        begin{document}
        [
        begin{pmatrix}
        2 & 1 \
        1 & -5\
        3 & circled{7}
        end{pmatrix}
        xrightarrow[scriptsizebegin{tabular}{R!{:}RR}
        -12R_{1} & -24 & -12\
        R_{3} & 3 & 7\
        cmidrule(lr){2-3}
        text{(new) } R_{3} & -21 & -5
        end{tabular}]{-12R_1+ R_3mapsto R_3}
        begin{pmatrix}
        2 & 1 \
        1 & -5\
        -2 & circled{-5}
        end{pmatrix}
        ]
        end{document}


        enter image description here






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          Since you didn't provide a complete MWE, I used a circled command found here.



          By the way, the parts already written in your MWE don't exactly correspond to the image, I've replicated the image.



          Is this what you what to achieve?



          documentclass[a4paper,12pt]{book}
          usepackage{amsmath,amssymb,amsthm,amsfonts}
          usepackage{tikz}
          newcommand*circled[1]{tikz[baseline=(A.base)]{node[circle,draw,inner sep=1](A){$#1$};}}% code from: https://tex.stackexchange.com/a/304891/101651
          usepackage{array}
          newcolumntype{R}{>{$}r<{$}}
          usepackage{booktabs}
          begin{document}
          [
          begin{pmatrix}
          2 & 1 \
          1 & -5\
          3 & circled{7}
          end{pmatrix}
          xrightarrow[scriptsizebegin{tabular}{R!{:}RR}
          -12R_{1} & -24 & -12\
          R_{3} & 3 & 7\
          cmidrule(lr){2-3}
          text{(new) } R_{3} & -21 & -5
          end{tabular}]{-12R_1+ R_3mapsto R_3}
          begin{pmatrix}
          2 & 1 \
          1 & -5\
          -2 & circled{-5}
          end{pmatrix}
          ]
          end{document}


          enter image description here






          share|improve this answer












          Since you didn't provide a complete MWE, I used a circled command found here.



          By the way, the parts already written in your MWE don't exactly correspond to the image, I've replicated the image.



          Is this what you what to achieve?



          documentclass[a4paper,12pt]{book}
          usepackage{amsmath,amssymb,amsthm,amsfonts}
          usepackage{tikz}
          newcommand*circled[1]{tikz[baseline=(A.base)]{node[circle,draw,inner sep=1](A){$#1$};}}% code from: https://tex.stackexchange.com/a/304891/101651
          usepackage{array}
          newcolumntype{R}{>{$}r<{$}}
          usepackage{booktabs}
          begin{document}
          [
          begin{pmatrix}
          2 & 1 \
          1 & -5\
          3 & circled{7}
          end{pmatrix}
          xrightarrow[scriptsizebegin{tabular}{R!{:}RR}
          -12R_{1} & -24 & -12\
          R_{3} & 3 & 7\
          cmidrule(lr){2-3}
          text{(new) } R_{3} & -21 & -5
          end{tabular}]{-12R_1+ R_3mapsto R_3}
          begin{pmatrix}
          2 & 1 \
          1 & -5\
          -2 & circled{-5}
          end{pmatrix}
          ]
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 21 mins ago









          CarLaTeX

          27.9k445121




          27.9k445121






















              up vote
              0
              down vote













              documentclass[a4paper,12pt]{book}
              usepackage{amsmath,amssymb,amsthm,amsfonts}
              usepackage{array}
              begin{document}
              [
              left(begin{array}{cc}
              2 & 1\
              1 & -5\
              3 & 7
              end{array}right)xrightarrow[
              begin{scriptsize}
              begin{array}{rrr}
              -12R_1: & -24 & -12\
              R_3: & 3 & 7\
              cline{2-3}
              text{(new) }R_3: & -21 & -5
              end{array}
              end{scriptsize}
              ]{-12R_1+R_3rightarrow R_3}left(begin{array}{cc}
              2 & 1\
              1 & -5\
              -21 & -5
              end{array}right)
              ]
              end{document}


              enter image description here






              share|improve this answer

























                up vote
                0
                down vote













                documentclass[a4paper,12pt]{book}
                usepackage{amsmath,amssymb,amsthm,amsfonts}
                usepackage{array}
                begin{document}
                [
                left(begin{array}{cc}
                2 & 1\
                1 & -5\
                3 & 7
                end{array}right)xrightarrow[
                begin{scriptsize}
                begin{array}{rrr}
                -12R_1: & -24 & -12\
                R_3: & 3 & 7\
                cline{2-3}
                text{(new) }R_3: & -21 & -5
                end{array}
                end{scriptsize}
                ]{-12R_1+R_3rightarrow R_3}left(begin{array}{cc}
                2 & 1\
                1 & -5\
                -21 & -5
                end{array}right)
                ]
                end{document}


                enter image description here






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  documentclass[a4paper,12pt]{book}
                  usepackage{amsmath,amssymb,amsthm,amsfonts}
                  usepackage{array}
                  begin{document}
                  [
                  left(begin{array}{cc}
                  2 & 1\
                  1 & -5\
                  3 & 7
                  end{array}right)xrightarrow[
                  begin{scriptsize}
                  begin{array}{rrr}
                  -12R_1: & -24 & -12\
                  R_3: & 3 & 7\
                  cline{2-3}
                  text{(new) }R_3: & -21 & -5
                  end{array}
                  end{scriptsize}
                  ]{-12R_1+R_3rightarrow R_3}left(begin{array}{cc}
                  2 & 1\
                  1 & -5\
                  -21 & -5
                  end{array}right)
                  ]
                  end{document}


                  enter image description here






                  share|improve this answer












                  documentclass[a4paper,12pt]{book}
                  usepackage{amsmath,amssymb,amsthm,amsfonts}
                  usepackage{array}
                  begin{document}
                  [
                  left(begin{array}{cc}
                  2 & 1\
                  1 & -5\
                  3 & 7
                  end{array}right)xrightarrow[
                  begin{scriptsize}
                  begin{array}{rrr}
                  -12R_1: & -24 & -12\
                  R_3: & 3 & 7\
                  cline{2-3}
                  text{(new) }R_3: & -21 & -5
                  end{array}
                  end{scriptsize}
                  ]{-12R_1+R_3rightarrow R_3}left(begin{array}{cc}
                  2 & 1\
                  1 & -5\
                  -21 & -5
                  end{array}right)
                  ]
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 19 mins ago









                  Dũng Vũ

                  1,369322




                  1,369322






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f462924%2fput-additional-features-for-elementary-row-operations-in-latex%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

                      A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                      Calculate evaluation metrics using cross_val_predict sklearn

                      Insert data from modal to MySQL (multiple modal on website)