Aligning minicolumn with tcolorbox

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












I'm trying to align two minipage environments to the page margins (the left minipage to the left margin and the right minipage to the right margin) but it does not seem to work. I also need a space between the two minipages and this is why I gave .45textwidth as parameter instead of .5textwidth to the minipage environments.



documentclass[10pt]article
usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
usepackagetcolorbox
usepackagelipsum
begindocument
thispagestyleempty
beginminipage.45textwidth
raggedleft
begintcolorbox
centering
lipsum[1-2]
endtcolorbox
endminipage%
beginminipage.45textwidth
raggedright
begintcolorbox
centering
lipsum[3-4]
endtcolorbox
endminipage
enddocument


Could you please tell me how to align the columns?
Below is the output of my example:



enter image description here










share|improve this question



























    up vote
    4
    down vote

    favorite
    1












    I'm trying to align two minipage environments to the page margins (the left minipage to the left margin and the right minipage to the right margin) but it does not seem to work. I also need a space between the two minipages and this is why I gave .45textwidth as parameter instead of .5textwidth to the minipage environments.



    documentclass[10pt]article
    usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
    usepackagetcolorbox
    usepackagelipsum
    begindocument
    thispagestyleempty
    beginminipage.45textwidth
    raggedleft
    begintcolorbox
    centering
    lipsum[1-2]
    endtcolorbox
    endminipage%
    beginminipage.45textwidth
    raggedright
    begintcolorbox
    centering
    lipsum[3-4]
    endtcolorbox
    endminipage
    enddocument


    Could you please tell me how to align the columns?
    Below is the output of my example:



    enter image description here










    share|improve this question

























      up vote
      4
      down vote

      favorite
      1









      up vote
      4
      down vote

      favorite
      1






      1





      I'm trying to align two minipage environments to the page margins (the left minipage to the left margin and the right minipage to the right margin) but it does not seem to work. I also need a space between the two minipages and this is why I gave .45textwidth as parameter instead of .5textwidth to the minipage environments.



      documentclass[10pt]article
      usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
      usepackagetcolorbox
      usepackagelipsum
      begindocument
      thispagestyleempty
      beginminipage.45textwidth
      raggedleft
      begintcolorbox
      centering
      lipsum[1-2]
      endtcolorbox
      endminipage%
      beginminipage.45textwidth
      raggedright
      begintcolorbox
      centering
      lipsum[3-4]
      endtcolorbox
      endminipage
      enddocument


      Could you please tell me how to align the columns?
      Below is the output of my example:



      enter image description here










      share|improve this question















      I'm trying to align two minipage environments to the page margins (the left minipage to the left margin and the right minipage to the right margin) but it does not seem to work. I also need a space between the two minipages and this is why I gave .45textwidth as parameter instead of .5textwidth to the minipage environments.



      documentclass[10pt]article
      usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
      usepackagetcolorbox
      usepackagelipsum
      begindocument
      thispagestyleempty
      beginminipage.45textwidth
      raggedleft
      begintcolorbox
      centering
      lipsum[1-2]
      endtcolorbox
      endminipage%
      beginminipage.45textwidth
      raggedright
      begintcolorbox
      centering
      lipsum[3-4]
      endtcolorbox
      endminipage
      enddocument


      Could you please tell me how to align the columns?
      Below is the output of my example:



      enter image description here







      minipage tcolorbox






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 26 at 16:53









      AboAmmar

      30.5k22780




      30.5k22780










      asked Aug 26 at 16:21









      Cristi

      1333




      1333




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          Add hfill between the two minipages:



          documentclass[10pt]article
          usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
          usepackagetcolorbox
          usepackagelipsum
          begindocument
          thispagestyleempty
          beginminipage.45textwidth
          raggedleft
          begintcolorbox
          centering
          lipsum[1-2]
          endtcolorbox
          endminipage%
          hfill
          beginminipage.45textwidth
          raggedright
          begintcolorbox
          centering
          lipsum[3-4]
          endtcolorbox
          endminipage
          enddocument



          enter image description here







          share|improve this answer



























            up vote
            3
            down vote













            If you are using tcolorboxes, you can include them inside a tcbraster. By default columns are aligned to left a right margins and inter column space is 2mm, but you can change it with raster column skip value:



            documentclass[10pt]article
            usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
            usepackage[most]tcolorbox
            usepackagelipsum
            begindocument
            thispagestyleempty
            lipsum[1]
            begintcbraster[raster columns=2, raster column skip=1cm]
            begintcolorbox[halign=center]
            lipsum[1-2]
            endtcolorbox
            begintcolorbox[halign=center]
            lipsum[3-4]
            endtcolorbox
            endtcbraster
            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',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f447808%2faligning-minicolumn-with-tcolorbox%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              3
              down vote













              Add hfill between the two minipages:



              documentclass[10pt]article
              usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
              usepackagetcolorbox
              usepackagelipsum
              begindocument
              thispagestyleempty
              beginminipage.45textwidth
              raggedleft
              begintcolorbox
              centering
              lipsum[1-2]
              endtcolorbox
              endminipage%
              hfill
              beginminipage.45textwidth
              raggedright
              begintcolorbox
              centering
              lipsum[3-4]
              endtcolorbox
              endminipage
              enddocument



              enter image description here







              share|improve this answer
























                up vote
                3
                down vote













                Add hfill between the two minipages:



                documentclass[10pt]article
                usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                usepackagetcolorbox
                usepackagelipsum
                begindocument
                thispagestyleempty
                beginminipage.45textwidth
                raggedleft
                begintcolorbox
                centering
                lipsum[1-2]
                endtcolorbox
                endminipage%
                hfill
                beginminipage.45textwidth
                raggedright
                begintcolorbox
                centering
                lipsum[3-4]
                endtcolorbox
                endminipage
                enddocument



                enter image description here







                share|improve this answer






















                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  Add hfill between the two minipages:



                  documentclass[10pt]article
                  usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                  usepackagetcolorbox
                  usepackagelipsum
                  begindocument
                  thispagestyleempty
                  beginminipage.45textwidth
                  raggedleft
                  begintcolorbox
                  centering
                  lipsum[1-2]
                  endtcolorbox
                  endminipage%
                  hfill
                  beginminipage.45textwidth
                  raggedright
                  begintcolorbox
                  centering
                  lipsum[3-4]
                  endtcolorbox
                  endminipage
                  enddocument



                  enter image description here







                  share|improve this answer












                  Add hfill between the two minipages:



                  documentclass[10pt]article
                  usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                  usepackagetcolorbox
                  usepackagelipsum
                  begindocument
                  thispagestyleempty
                  beginminipage.45textwidth
                  raggedleft
                  begintcolorbox
                  centering
                  lipsum[1-2]
                  endtcolorbox
                  endminipage%
                  hfill
                  beginminipage.45textwidth
                  raggedright
                  begintcolorbox
                  centering
                  lipsum[3-4]
                  endtcolorbox
                  endminipage
                  enddocument



                  enter image description here








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 26 at 16:39









                  AboAmmar

                  30.5k22780




                  30.5k22780




















                      up vote
                      3
                      down vote













                      If you are using tcolorboxes, you can include them inside a tcbraster. By default columns are aligned to left a right margins and inter column space is 2mm, but you can change it with raster column skip value:



                      documentclass[10pt]article
                      usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                      usepackage[most]tcolorbox
                      usepackagelipsum
                      begindocument
                      thispagestyleempty
                      lipsum[1]
                      begintcbraster[raster columns=2, raster column skip=1cm]
                      begintcolorbox[halign=center]
                      lipsum[1-2]
                      endtcolorbox
                      begintcolorbox[halign=center]
                      lipsum[3-4]
                      endtcolorbox
                      endtcbraster
                      enddocument


                      enter image description here






                      share|improve this answer
























                        up vote
                        3
                        down vote













                        If you are using tcolorboxes, you can include them inside a tcbraster. By default columns are aligned to left a right margins and inter column space is 2mm, but you can change it with raster column skip value:



                        documentclass[10pt]article
                        usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                        usepackage[most]tcolorbox
                        usepackagelipsum
                        begindocument
                        thispagestyleempty
                        lipsum[1]
                        begintcbraster[raster columns=2, raster column skip=1cm]
                        begintcolorbox[halign=center]
                        lipsum[1-2]
                        endtcolorbox
                        begintcolorbox[halign=center]
                        lipsum[3-4]
                        endtcolorbox
                        endtcbraster
                        enddocument


                        enter image description here






                        share|improve this answer






















                          up vote
                          3
                          down vote










                          up vote
                          3
                          down vote









                          If you are using tcolorboxes, you can include them inside a tcbraster. By default columns are aligned to left a right margins and inter column space is 2mm, but you can change it with raster column skip value:



                          documentclass[10pt]article
                          usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                          usepackage[most]tcolorbox
                          usepackagelipsum
                          begindocument
                          thispagestyleempty
                          lipsum[1]
                          begintcbraster[raster columns=2, raster column skip=1cm]
                          begintcolorbox[halign=center]
                          lipsum[1-2]
                          endtcolorbox
                          begintcolorbox[halign=center]
                          lipsum[3-4]
                          endtcolorbox
                          endtcbraster
                          enddocument


                          enter image description here






                          share|improve this answer












                          If you are using tcolorboxes, you can include them inside a tcbraster. By default columns are aligned to left a right margins and inter column space is 2mm, but you can change it with raster column skip value:



                          documentclass[10pt]article
                          usepackage[a4paper,top=15mm,bottom=10mm,left=15mm,right=15mm]geometry
                          usepackage[most]tcolorbox
                          usepackagelipsum
                          begindocument
                          thispagestyleempty
                          lipsum[1]
                          begintcbraster[raster columns=2, raster column skip=1cm]
                          begintcolorbox[halign=center]
                          lipsum[1-2]
                          endtcolorbox
                          begintcolorbox[halign=center]
                          lipsum[3-4]
                          endtcolorbox
                          endtcbraster
                          enddocument


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 26 at 17:26









                          Ignasi

                          87.3k4156291




                          87.3k4156291



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f447808%2faligning-minicolumn-with-tcolorbox%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay