How to write mathematics with boxes?












3















I want to write the mathematics inside the box as written below.



enter image description here



See my code given below:



documentclass{article}

begin{document}
\fbox{text}
framebox[width][pos]{text}

makebox[textwidth]{X_1 X_2} par
makebox[textwidth]{X_3 X_4} par
cdots
makebox[textwidth]{X_4 X_6} par

end{document}


Question: I want to write the above maths, How to write it properly?










share|improve this question





























    3















    I want to write the mathematics inside the box as written below.



    enter image description here



    See my code given below:



    documentclass{article}

    begin{document}
    \fbox{text}
    framebox[width][pos]{text}

    makebox[textwidth]{X_1 X_2} par
    makebox[textwidth]{X_3 X_4} par
    cdots
    makebox[textwidth]{X_4 X_6} par

    end{document}


    Question: I want to write the above maths, How to write it properly?










    share|improve this question



























      3












      3








      3


      2






      I want to write the mathematics inside the box as written below.



      enter image description here



      See my code given below:



      documentclass{article}

      begin{document}
      \fbox{text}
      framebox[width][pos]{text}

      makebox[textwidth]{X_1 X_2} par
      makebox[textwidth]{X_3 X_4} par
      cdots
      makebox[textwidth]{X_4 X_6} par

      end{document}


      Question: I want to write the above maths, How to write it properly?










      share|improve this question
















      I want to write the mathematics inside the box as written below.



      enter image description here



      See my code given below:



      documentclass{article}

      begin{document}
      \fbox{text}
      framebox[width][pos]{text}

      makebox[textwidth]{X_1 X_2} par
      makebox[textwidth]{X_3 X_4} par
      cdots
      makebox[textwidth]{X_4 X_6} par

      end{document}


      Question: I want to write the above maths, How to write it properly?







      boxes






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 46 mins ago









      marmot

      95.7k4110210




      95.7k4110210










      asked 47 mins ago









      Isla_BonitaIsla_Bonita

      1975




      1975






















          2 Answers
          2






          active

          oldest

          votes


















          5














          You can use boxed command from amsmath package



          documentclass{article}
          usepackage{amsmath}
          begin{document}

          begin{equation*}
          X=boxed{X_1 X_2}quad boxed{X_3 X_4}cdotsboxed{X_5 X_6}
          end{equation*}



          end{document}


          enter image description here






          share|improve this answer































            2














            Depends on how fancy you want to go. In principle you do not need any packages for that.



            documentclass{article}
            begin{document}
            [
            X=
            raisebox{-1.5ex}{$begin{array}{c}
            hline
            multicolumn{1}{|c|}{X_1 X_2}\
            hline
            leftarrowellrightarrow\
            end{array}$}~
            raisebox{-1.5ex}{$begin{array}{c}
            hline
            multicolumn{1}{|c|}{X_3 X_4}\
            hline
            leftarrowellrightarrow\
            end{array}$}cdots
            raisebox{-1.5ex}{$begin{array}{c}
            hline
            multicolumn{1}{|c|}{X_5 X_6}\
            hline
            leftarrowellrightarrow\
            end{array}$}
            ]

            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',
              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%2f472679%2fhow-to-write-mathematics-with-boxes%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














              You can use boxed command from amsmath package



              documentclass{article}
              usepackage{amsmath}
              begin{document}

              begin{equation*}
              X=boxed{X_1 X_2}quad boxed{X_3 X_4}cdotsboxed{X_5 X_6}
              end{equation*}



              end{document}


              enter image description here






              share|improve this answer




























                5














                You can use boxed command from amsmath package



                documentclass{article}
                usepackage{amsmath}
                begin{document}

                begin{equation*}
                X=boxed{X_1 X_2}quad boxed{X_3 X_4}cdotsboxed{X_5 X_6}
                end{equation*}



                end{document}


                enter image description here






                share|improve this answer


























                  5












                  5








                  5







                  You can use boxed command from amsmath package



                  documentclass{article}
                  usepackage{amsmath}
                  begin{document}

                  begin{equation*}
                  X=boxed{X_1 X_2}quad boxed{X_3 X_4}cdotsboxed{X_5 X_6}
                  end{equation*}



                  end{document}


                  enter image description here






                  share|improve this answer













                  You can use boxed command from amsmath package



                  documentclass{article}
                  usepackage{amsmath}
                  begin{document}

                  begin{equation*}
                  X=boxed{X_1 X_2}quad boxed{X_3 X_4}cdotsboxed{X_5 X_6}
                  end{equation*}



                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 38 mins ago









                  Hafid BoukhouldaHafid Boukhoulda

                  2,7071519




                  2,7071519























                      2














                      Depends on how fancy you want to go. In principle you do not need any packages for that.



                      documentclass{article}
                      begin{document}
                      [
                      X=
                      raisebox{-1.5ex}{$begin{array}{c}
                      hline
                      multicolumn{1}{|c|}{X_1 X_2}\
                      hline
                      leftarrowellrightarrow\
                      end{array}$}~
                      raisebox{-1.5ex}{$begin{array}{c}
                      hline
                      multicolumn{1}{|c|}{X_3 X_4}\
                      hline
                      leftarrowellrightarrow\
                      end{array}$}cdots
                      raisebox{-1.5ex}{$begin{array}{c}
                      hline
                      multicolumn{1}{|c|}{X_5 X_6}\
                      hline
                      leftarrowellrightarrow\
                      end{array}$}
                      ]

                      end{document}


                      enter image description here






                      share|improve this answer




























                        2














                        Depends on how fancy you want to go. In principle you do not need any packages for that.



                        documentclass{article}
                        begin{document}
                        [
                        X=
                        raisebox{-1.5ex}{$begin{array}{c}
                        hline
                        multicolumn{1}{|c|}{X_1 X_2}\
                        hline
                        leftarrowellrightarrow\
                        end{array}$}~
                        raisebox{-1.5ex}{$begin{array}{c}
                        hline
                        multicolumn{1}{|c|}{X_3 X_4}\
                        hline
                        leftarrowellrightarrow\
                        end{array}$}cdots
                        raisebox{-1.5ex}{$begin{array}{c}
                        hline
                        multicolumn{1}{|c|}{X_5 X_6}\
                        hline
                        leftarrowellrightarrow\
                        end{array}$}
                        ]

                        end{document}


                        enter image description here






                        share|improve this answer


























                          2












                          2








                          2







                          Depends on how fancy you want to go. In principle you do not need any packages for that.



                          documentclass{article}
                          begin{document}
                          [
                          X=
                          raisebox{-1.5ex}{$begin{array}{c}
                          hline
                          multicolumn{1}{|c|}{X_1 X_2}\
                          hline
                          leftarrowellrightarrow\
                          end{array}$}~
                          raisebox{-1.5ex}{$begin{array}{c}
                          hline
                          multicolumn{1}{|c|}{X_3 X_4}\
                          hline
                          leftarrowellrightarrow\
                          end{array}$}cdots
                          raisebox{-1.5ex}{$begin{array}{c}
                          hline
                          multicolumn{1}{|c|}{X_5 X_6}\
                          hline
                          leftarrowellrightarrow\
                          end{array}$}
                          ]

                          end{document}


                          enter image description here






                          share|improve this answer













                          Depends on how fancy you want to go. In principle you do not need any packages for that.



                          documentclass{article}
                          begin{document}
                          [
                          X=
                          raisebox{-1.5ex}{$begin{array}{c}
                          hline
                          multicolumn{1}{|c|}{X_1 X_2}\
                          hline
                          leftarrowellrightarrow\
                          end{array}$}~
                          raisebox{-1.5ex}{$begin{array}{c}
                          hline
                          multicolumn{1}{|c|}{X_3 X_4}\
                          hline
                          leftarrowellrightarrow\
                          end{array}$}cdots
                          raisebox{-1.5ex}{$begin{array}{c}
                          hline
                          multicolumn{1}{|c|}{X_5 X_6}\
                          hline
                          leftarrowellrightarrow\
                          end{array}$}
                          ]

                          end{document}


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 32 mins ago









                          marmotmarmot

                          95.7k4110210




                          95.7k4110210






























                              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%2f472679%2fhow-to-write-mathematics-with-boxes%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

                              Plaza Victoria

                              Puebla de Zaragoza

                              Musa