Unstandardized brackets in matrix












10















I wonder how to solve my problem.
In 'normal' matrix we have a square brackets but I need to write a brackets like in photo
enter image description here



Could you help me?



I'm using usepackage{amsmath}.










share|improve this question

























  • You may use detexify to look for such brackets detexify.kirelabs.org/classify.html

    – sztruks
    Jan 24 at 8:41











  • Just curious: what's the use for matrices with such brackets?

    – Heimdall
    Jan 24 at 18:27
















10















I wonder how to solve my problem.
In 'normal' matrix we have a square brackets but I need to write a brackets like in photo
enter image description here



Could you help me?



I'm using usepackage{amsmath}.










share|improve this question

























  • You may use detexify to look for such brackets detexify.kirelabs.org/classify.html

    – sztruks
    Jan 24 at 8:41











  • Just curious: what's the use for matrices with such brackets?

    – Heimdall
    Jan 24 at 18:27














10












10








10


1






I wonder how to solve my problem.
In 'normal' matrix we have a square brackets but I need to write a brackets like in photo
enter image description here



Could you help me?



I'm using usepackage{amsmath}.










share|improve this question
















I wonder how to solve my problem.
In 'normal' matrix we have a square brackets but I need to write a brackets like in photo
enter image description here



Could you help me?



I'm using usepackage{amsmath}.







matrices brackets






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 at 9:55









Tiuri

5,2801631




5,2801631










asked Jan 24 at 8:20









BlazejBlazej

19110




19110













  • You may use detexify to look for such brackets detexify.kirelabs.org/classify.html

    – sztruks
    Jan 24 at 8:41











  • Just curious: what's the use for matrices with such brackets?

    – Heimdall
    Jan 24 at 18:27



















  • You may use detexify to look for such brackets detexify.kirelabs.org/classify.html

    – sztruks
    Jan 24 at 8:41











  • Just curious: what's the use for matrices with such brackets?

    – Heimdall
    Jan 24 at 18:27

















You may use detexify to look for such brackets detexify.kirelabs.org/classify.html

– sztruks
Jan 24 at 8:41





You may use detexify to look for such brackets detexify.kirelabs.org/classify.html

– sztruks
Jan 24 at 8:41













Just curious: what's the use for matrices with such brackets?

– Heimdall
Jan 24 at 18:27





Just curious: what's the use for matrices with such brackets?

– Heimdall
Jan 24 at 18:27










2 Answers
2






active

oldest

votes


















13














It makes sense to define new environments for this task:



documentclass{article}
usepackage{amsmath}

makeatletter
newcommand{newmatrix}[3]{% #1 = prefix, #2/#3 = left/right delimiters
newenvironment{#1matrix}{left#2env@matrix}{endmatrixright#3}%
}
makeatother

newmatrix{cf}{lceil}{rfloor}
newmatrix{fc}{lfloor}{rceil}

begin{document}

[
begin{cfmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{cfmatrix}
ne
begin{fcmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{fcmatrix}
]

end{document}


enter image description here



The “prefix” can be any string not already in use.



With a bit more work it can support defining the *-variant in the mathtools style, that is, accepting an optional argument to set the column alignment, and the “small” variant all in one swoop.



documentclass{article}
usepackage{amsmath,mathtools}

MHInternalSyntaxOn
makeatletter
newcommand{newmatrix}[3]{%
% #1 = prefix, #2/#3 = left/right delimiters
newenvironment{#1matrix}
{left#2env@matrix}
{endmatrixright#3}%
newenvironment{#1matrix*}[1][c]
{left#2MT_matrix_begin:N ##1}
{MT_matrix_end:right#3}
MT_fenced_sm_generator:nnn{#1smallmatrix}{#2}{#3}
}
makeatother
MHInternalSyntaxOff

newmatrix{cf}{lceil}{rfloor}

newmatrix{fc}{lfloor}{rceil}

begin{document}

begin{gather*}
begin{cfmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{cfmatrix}
ne
begin{fcmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{fcmatrix}
\
begin{cfmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{cfmatrix}
ne
begin{fcmatrix*}[r]
111 & 44 & dots & -2 \
2 & 333 & dots & 5
end{fcmatrix*}
\
begin{cfsmallmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{cfsmallmatrix}
ne
begin{fcsmallmatrix}
a_1 & a_2 & dots & a_n \
b_1 & b_2 & dots & b_n
end{fcsmallmatrix}
end{gather*}

end{document}


enter image description here






share|improve this answer































    14














    I guess you're looking for leftlceil and rightrfloor.



    enter image description here



    documentclass{article}
    usepackage{amsmath} % for 'matrix' environment
    begin{document}
    [
    leftlceil
    begin{matrix}
    a_1 & a_2 & dots & a_n \
    b_1 & b_2 & dots & b_n
    end{matrix}
    rightrfloor
    ]
    end{document}





    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%2f471604%2funstandardized-brackets-in-matrix%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









      13














      It makes sense to define new environments for this task:



      documentclass{article}
      usepackage{amsmath}

      makeatletter
      newcommand{newmatrix}[3]{% #1 = prefix, #2/#3 = left/right delimiters
      newenvironment{#1matrix}{left#2env@matrix}{endmatrixright#3}%
      }
      makeatother

      newmatrix{cf}{lceil}{rfloor}
      newmatrix{fc}{lfloor}{rceil}

      begin{document}

      [
      begin{cfmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{cfmatrix}
      ne
      begin{fcmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{fcmatrix}
      ]

      end{document}


      enter image description here



      The “prefix” can be any string not already in use.



      With a bit more work it can support defining the *-variant in the mathtools style, that is, accepting an optional argument to set the column alignment, and the “small” variant all in one swoop.



      documentclass{article}
      usepackage{amsmath,mathtools}

      MHInternalSyntaxOn
      makeatletter
      newcommand{newmatrix}[3]{%
      % #1 = prefix, #2/#3 = left/right delimiters
      newenvironment{#1matrix}
      {left#2env@matrix}
      {endmatrixright#3}%
      newenvironment{#1matrix*}[1][c]
      {left#2MT_matrix_begin:N ##1}
      {MT_matrix_end:right#3}
      MT_fenced_sm_generator:nnn{#1smallmatrix}{#2}{#3}
      }
      makeatother
      MHInternalSyntaxOff

      newmatrix{cf}{lceil}{rfloor}

      newmatrix{fc}{lfloor}{rceil}

      begin{document}

      begin{gather*}
      begin{cfmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{cfmatrix}
      ne
      begin{fcmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{fcmatrix}
      \
      begin{cfmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{cfmatrix}
      ne
      begin{fcmatrix*}[r]
      111 & 44 & dots & -2 \
      2 & 333 & dots & 5
      end{fcmatrix*}
      \
      begin{cfsmallmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{cfsmallmatrix}
      ne
      begin{fcsmallmatrix}
      a_1 & a_2 & dots & a_n \
      b_1 & b_2 & dots & b_n
      end{fcsmallmatrix}
      end{gather*}

      end{document}


      enter image description here






      share|improve this answer




























        13














        It makes sense to define new environments for this task:



        documentclass{article}
        usepackage{amsmath}

        makeatletter
        newcommand{newmatrix}[3]{% #1 = prefix, #2/#3 = left/right delimiters
        newenvironment{#1matrix}{left#2env@matrix}{endmatrixright#3}%
        }
        makeatother

        newmatrix{cf}{lceil}{rfloor}
        newmatrix{fc}{lfloor}{rceil}

        begin{document}

        [
        begin{cfmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{cfmatrix}
        ne
        begin{fcmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{fcmatrix}
        ]

        end{document}


        enter image description here



        The “prefix” can be any string not already in use.



        With a bit more work it can support defining the *-variant in the mathtools style, that is, accepting an optional argument to set the column alignment, and the “small” variant all in one swoop.



        documentclass{article}
        usepackage{amsmath,mathtools}

        MHInternalSyntaxOn
        makeatletter
        newcommand{newmatrix}[3]{%
        % #1 = prefix, #2/#3 = left/right delimiters
        newenvironment{#1matrix}
        {left#2env@matrix}
        {endmatrixright#3}%
        newenvironment{#1matrix*}[1][c]
        {left#2MT_matrix_begin:N ##1}
        {MT_matrix_end:right#3}
        MT_fenced_sm_generator:nnn{#1smallmatrix}{#2}{#3}
        }
        makeatother
        MHInternalSyntaxOff

        newmatrix{cf}{lceil}{rfloor}

        newmatrix{fc}{lfloor}{rceil}

        begin{document}

        begin{gather*}
        begin{cfmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{cfmatrix}
        ne
        begin{fcmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{fcmatrix}
        \
        begin{cfmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{cfmatrix}
        ne
        begin{fcmatrix*}[r]
        111 & 44 & dots & -2 \
        2 & 333 & dots & 5
        end{fcmatrix*}
        \
        begin{cfsmallmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{cfsmallmatrix}
        ne
        begin{fcsmallmatrix}
        a_1 & a_2 & dots & a_n \
        b_1 & b_2 & dots & b_n
        end{fcsmallmatrix}
        end{gather*}

        end{document}


        enter image description here






        share|improve this answer


























          13












          13








          13







          It makes sense to define new environments for this task:



          documentclass{article}
          usepackage{amsmath}

          makeatletter
          newcommand{newmatrix}[3]{% #1 = prefix, #2/#3 = left/right delimiters
          newenvironment{#1matrix}{left#2env@matrix}{endmatrixright#3}%
          }
          makeatother

          newmatrix{cf}{lceil}{rfloor}
          newmatrix{fc}{lfloor}{rceil}

          begin{document}

          [
          begin{cfmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfmatrix}
          ne
          begin{fcmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{fcmatrix}
          ]

          end{document}


          enter image description here



          The “prefix” can be any string not already in use.



          With a bit more work it can support defining the *-variant in the mathtools style, that is, accepting an optional argument to set the column alignment, and the “small” variant all in one swoop.



          documentclass{article}
          usepackage{amsmath,mathtools}

          MHInternalSyntaxOn
          makeatletter
          newcommand{newmatrix}[3]{%
          % #1 = prefix, #2/#3 = left/right delimiters
          newenvironment{#1matrix}
          {left#2env@matrix}
          {endmatrixright#3}%
          newenvironment{#1matrix*}[1][c]
          {left#2MT_matrix_begin:N ##1}
          {MT_matrix_end:right#3}
          MT_fenced_sm_generator:nnn{#1smallmatrix}{#2}{#3}
          }
          makeatother
          MHInternalSyntaxOff

          newmatrix{cf}{lceil}{rfloor}

          newmatrix{fc}{lfloor}{rceil}

          begin{document}

          begin{gather*}
          begin{cfmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfmatrix}
          ne
          begin{fcmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{fcmatrix}
          \
          begin{cfmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfmatrix}
          ne
          begin{fcmatrix*}[r]
          111 & 44 & dots & -2 \
          2 & 333 & dots & 5
          end{fcmatrix*}
          \
          begin{cfsmallmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfsmallmatrix}
          ne
          begin{fcsmallmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{fcsmallmatrix}
          end{gather*}

          end{document}


          enter image description here






          share|improve this answer













          It makes sense to define new environments for this task:



          documentclass{article}
          usepackage{amsmath}

          makeatletter
          newcommand{newmatrix}[3]{% #1 = prefix, #2/#3 = left/right delimiters
          newenvironment{#1matrix}{left#2env@matrix}{endmatrixright#3}%
          }
          makeatother

          newmatrix{cf}{lceil}{rfloor}
          newmatrix{fc}{lfloor}{rceil}

          begin{document}

          [
          begin{cfmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfmatrix}
          ne
          begin{fcmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{fcmatrix}
          ]

          end{document}


          enter image description here



          The “prefix” can be any string not already in use.



          With a bit more work it can support defining the *-variant in the mathtools style, that is, accepting an optional argument to set the column alignment, and the “small” variant all in one swoop.



          documentclass{article}
          usepackage{amsmath,mathtools}

          MHInternalSyntaxOn
          makeatletter
          newcommand{newmatrix}[3]{%
          % #1 = prefix, #2/#3 = left/right delimiters
          newenvironment{#1matrix}
          {left#2env@matrix}
          {endmatrixright#3}%
          newenvironment{#1matrix*}[1][c]
          {left#2MT_matrix_begin:N ##1}
          {MT_matrix_end:right#3}
          MT_fenced_sm_generator:nnn{#1smallmatrix}{#2}{#3}
          }
          makeatother
          MHInternalSyntaxOff

          newmatrix{cf}{lceil}{rfloor}

          newmatrix{fc}{lfloor}{rceil}

          begin{document}

          begin{gather*}
          begin{cfmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfmatrix}
          ne
          begin{fcmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{fcmatrix}
          \
          begin{cfmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfmatrix}
          ne
          begin{fcmatrix*}[r]
          111 & 44 & dots & -2 \
          2 & 333 & dots & 5
          end{fcmatrix*}
          \
          begin{cfsmallmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{cfsmallmatrix}
          ne
          begin{fcsmallmatrix}
          a_1 & a_2 & dots & a_n \
          b_1 & b_2 & dots & b_n
          end{fcsmallmatrix}
          end{gather*}

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 24 at 9:53









          egregegreg

          726k8819223231




          726k8819223231























              14














              I guess you're looking for leftlceil and rightrfloor.



              enter image description here



              documentclass{article}
              usepackage{amsmath} % for 'matrix' environment
              begin{document}
              [
              leftlceil
              begin{matrix}
              a_1 & a_2 & dots & a_n \
              b_1 & b_2 & dots & b_n
              end{matrix}
              rightrfloor
              ]
              end{document}





              share|improve this answer




























                14














                I guess you're looking for leftlceil and rightrfloor.



                enter image description here



                documentclass{article}
                usepackage{amsmath} % for 'matrix' environment
                begin{document}
                [
                leftlceil
                begin{matrix}
                a_1 & a_2 & dots & a_n \
                b_1 & b_2 & dots & b_n
                end{matrix}
                rightrfloor
                ]
                end{document}





                share|improve this answer


























                  14












                  14








                  14







                  I guess you're looking for leftlceil and rightrfloor.



                  enter image description here



                  documentclass{article}
                  usepackage{amsmath} % for 'matrix' environment
                  begin{document}
                  [
                  leftlceil
                  begin{matrix}
                  a_1 & a_2 & dots & a_n \
                  b_1 & b_2 & dots & b_n
                  end{matrix}
                  rightrfloor
                  ]
                  end{document}





                  share|improve this answer













                  I guess you're looking for leftlceil and rightrfloor.



                  enter image description here



                  documentclass{article}
                  usepackage{amsmath} % for 'matrix' environment
                  begin{document}
                  [
                  leftlceil
                  begin{matrix}
                  a_1 & a_2 & dots & a_n \
                  b_1 & b_2 & dots & b_n
                  end{matrix}
                  rightrfloor
                  ]
                  end{document}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 24 at 8:50









                  MicoMico

                  283k31388775




                  283k31388775






























                      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%2f471604%2funstandardized-brackets-in-matrix%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

                      MongoDB - Not Authorized To Execute Command

                      How to fix TextFormField cause rebuild widget in Flutter

                      in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith