Why do horizontal matrices look different than multistory matrices?

Multi tool use
Multi tool use












3















This isn't necessarily a problem, but I wonder about it every time it occurs in my writing.



Horizontal matrices (or single row matrices) have thinner brackets and are differently put out than other matrices. Even Vertical matrices don't have this uniqueness.



Best shown with an example.



documentclass[10pt,norsk, fleqn]{article}
usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
usepackage{amsmath}

begin{document}
$begin{aligned}
vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
end{aligned} to
begin{aligned}
dot{textbf{x}} & = begin{bmatrix}
2&1&1\3&-2&-2\1&1&2
end{bmatrix}vec{x} +
begin{bmatrix}
2\1\2
end{bmatrix}vec{u}\
vec{y} & = begin{bmatrix}0&-1&-1end{bmatrix}vec{x}
end{aligned}$
end{document}


enter image description here










share|improve this question


















  • 1





    The thickness of the one-line braces and the horizontal positioning is in the font design. It may not be the same with all possible fonts, so trying to "fix" the definition of bmatrix (and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (in mu units) just before and after the opening bracket and perhaps before the closing bracket should be possible.

    – barbara beeton
    3 hours ago
















3















This isn't necessarily a problem, but I wonder about it every time it occurs in my writing.



Horizontal matrices (or single row matrices) have thinner brackets and are differently put out than other matrices. Even Vertical matrices don't have this uniqueness.



Best shown with an example.



documentclass[10pt,norsk, fleqn]{article}
usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
usepackage{amsmath}

begin{document}
$begin{aligned}
vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
end{aligned} to
begin{aligned}
dot{textbf{x}} & = begin{bmatrix}
2&1&1\3&-2&-2\1&1&2
end{bmatrix}vec{x} +
begin{bmatrix}
2\1\2
end{bmatrix}vec{u}\
vec{y} & = begin{bmatrix}0&-1&-1end{bmatrix}vec{x}
end{aligned}$
end{document}


enter image description here










share|improve this question


















  • 1





    The thickness of the one-line braces and the horizontal positioning is in the font design. It may not be the same with all possible fonts, so trying to "fix" the definition of bmatrix (and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (in mu units) just before and after the opening bracket and perhaps before the closing bracket should be possible.

    – barbara beeton
    3 hours ago














3












3








3








This isn't necessarily a problem, but I wonder about it every time it occurs in my writing.



Horizontal matrices (or single row matrices) have thinner brackets and are differently put out than other matrices. Even Vertical matrices don't have this uniqueness.



Best shown with an example.



documentclass[10pt,norsk, fleqn]{article}
usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
usepackage{amsmath}

begin{document}
$begin{aligned}
vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
end{aligned} to
begin{aligned}
dot{textbf{x}} & = begin{bmatrix}
2&1&1\3&-2&-2\1&1&2
end{bmatrix}vec{x} +
begin{bmatrix}
2\1\2
end{bmatrix}vec{u}\
vec{y} & = begin{bmatrix}0&-1&-1end{bmatrix}vec{x}
end{aligned}$
end{document}


enter image description here










share|improve this question














This isn't necessarily a problem, but I wonder about it every time it occurs in my writing.



Horizontal matrices (or single row matrices) have thinner brackets and are differently put out than other matrices. Even Vertical matrices don't have this uniqueness.



Best shown with an example.



documentclass[10pt,norsk, fleqn]{article}
usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
usepackage{amsmath}

begin{document}
$begin{aligned}
vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
end{aligned} to
begin{aligned}
dot{textbf{x}} & = begin{bmatrix}
2&1&1\3&-2&-2\1&1&2
end{bmatrix}vec{x} +
begin{bmatrix}
2\1\2
end{bmatrix}vec{u}\
vec{y} & = begin{bmatrix}0&-1&-1end{bmatrix}vec{x}
end{aligned}$
end{document}


enter image description here







amsmath






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 3 hours ago









E. l4d3E. l4d3

31018




31018








  • 1





    The thickness of the one-line braces and the horizontal positioning is in the font design. It may not be the same with all possible fonts, so trying to "fix" the definition of bmatrix (and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (in mu units) just before and after the opening bracket and perhaps before the closing bracket should be possible.

    – barbara beeton
    3 hours ago














  • 1





    The thickness of the one-line braces and the horizontal positioning is in the font design. It may not be the same with all possible fonts, so trying to "fix" the definition of bmatrix (and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (in mu units) just before and after the opening bracket and perhaps before the closing bracket should be possible.

    – barbara beeton
    3 hours ago








1




1





The thickness of the one-line braces and the horizontal positioning is in the font design. It may not be the same with all possible fonts, so trying to "fix" the definition of bmatrix (and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (in mu units) just before and after the opening bracket and perhaps before the closing bracket should be possible.

– barbara beeton
3 hours ago





The thickness of the one-line braces and the horizontal positioning is in the font design. It may not be the same with all possible fonts, so trying to "fix" the definition of bmatrix (and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (in mu units) just before and after the opening bracket and perhaps before the closing bracket should be possible.

– barbara beeton
3 hours ago










1 Answer
1






active

oldest

votes


















3














The bvector environment was specifically set up to match 1 row to 3 row matrices.



documentclass[10pt,norsk, fleqn]{article}
usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
usepackage{mathtools}

newlength{brackoff}
sbox0{$begin{bmatrix}strutend{bmatrix}$}
sbox1{$begin{bmatrix}strut\strut\strutend{bmatrix}$}
setlength{brackoff}{dimexpr 0.25wd1-0.25wd0}

newenvironment{bvector}%
{hspace{brackoff}begin{bmatrix}hspace{brackoff}}%
{hspace{brackoff}end{bmatrix}hspace{brackoff}}%

begin{document}
$begin{aligned}
vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
end{aligned} to
begin{aligned}
dot{textbf{x}} & = begin{bmatrix}
2&1&1\3&-2&-2\1&1&2
end{bmatrix}vec{x} +
begin{bmatrix}
2\1\2
end{bmatrix}vec{u}\
vec{y} & = begin{bvector}0&-1&-1end{bvector}vec{x}\
end{aligned}$
end{document}


demo






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%2f481733%2fwhy-do-horizontal-matrices-look-different-than-multistory-matrices%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    The bvector environment was specifically set up to match 1 row to 3 row matrices.



    documentclass[10pt,norsk, fleqn]{article}
    usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
    usepackage{mathtools}

    newlength{brackoff}
    sbox0{$begin{bmatrix}strutend{bmatrix}$}
    sbox1{$begin{bmatrix}strut\strut\strutend{bmatrix}$}
    setlength{brackoff}{dimexpr 0.25wd1-0.25wd0}

    newenvironment{bvector}%
    {hspace{brackoff}begin{bmatrix}hspace{brackoff}}%
    {hspace{brackoff}end{bmatrix}hspace{brackoff}}%

    begin{document}
    $begin{aligned}
    vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
    vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
    end{aligned} to
    begin{aligned}
    dot{textbf{x}} & = begin{bmatrix}
    2&1&1\3&-2&-2\1&1&2
    end{bmatrix}vec{x} +
    begin{bmatrix}
    2\1\2
    end{bmatrix}vec{u}\
    vec{y} & = begin{bvector}0&-1&-1end{bvector}vec{x}\
    end{aligned}$
    end{document}


    demo






    share|improve this answer






























      3














      The bvector environment was specifically set up to match 1 row to 3 row matrices.



      documentclass[10pt,norsk, fleqn]{article}
      usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
      usepackage{mathtools}

      newlength{brackoff}
      sbox0{$begin{bmatrix}strutend{bmatrix}$}
      sbox1{$begin{bmatrix}strut\strut\strutend{bmatrix}$}
      setlength{brackoff}{dimexpr 0.25wd1-0.25wd0}

      newenvironment{bvector}%
      {hspace{brackoff}begin{bmatrix}hspace{brackoff}}%
      {hspace{brackoff}end{bmatrix}hspace{brackoff}}%

      begin{document}
      $begin{aligned}
      vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
      vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
      end{aligned} to
      begin{aligned}
      dot{textbf{x}} & = begin{bmatrix}
      2&1&1\3&-2&-2\1&1&2
      end{bmatrix}vec{x} +
      begin{bmatrix}
      2\1\2
      end{bmatrix}vec{u}\
      vec{y} & = begin{bvector}0&-1&-1end{bvector}vec{x}\
      end{aligned}$
      end{document}


      demo






      share|improve this answer




























        3












        3








        3







        The bvector environment was specifically set up to match 1 row to 3 row matrices.



        documentclass[10pt,norsk, fleqn]{article}
        usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
        usepackage{mathtools}

        newlength{brackoff}
        sbox0{$begin{bmatrix}strutend{bmatrix}$}
        sbox1{$begin{bmatrix}strut\strut\strutend{bmatrix}$}
        setlength{brackoff}{dimexpr 0.25wd1-0.25wd0}

        newenvironment{bvector}%
        {hspace{brackoff}begin{bmatrix}hspace{brackoff}}%
        {hspace{brackoff}end{bmatrix}hspace{brackoff}}%

        begin{document}
        $begin{aligned}
        vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
        vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
        end{aligned} to
        begin{aligned}
        dot{textbf{x}} & = begin{bmatrix}
        2&1&1\3&-2&-2\1&1&2
        end{bmatrix}vec{x} +
        begin{bmatrix}
        2\1\2
        end{bmatrix}vec{u}\
        vec{y} & = begin{bvector}0&-1&-1end{bvector}vec{x}\
        end{aligned}$
        end{document}


        demo






        share|improve this answer















        The bvector environment was specifically set up to match 1 row to 3 row matrices.



        documentclass[10pt,norsk, fleqn]{article}
        usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
        usepackage{mathtools}

        newlength{brackoff}
        sbox0{$begin{bmatrix}strutend{bmatrix}$}
        sbox1{$begin{bmatrix}strut\strut\strutend{bmatrix}$}
        setlength{brackoff}{dimexpr 0.25wd1-0.25wd0}

        newenvironment{bvector}%
        {hspace{brackoff}begin{bmatrix}hspace{brackoff}}%
        {hspace{brackoff}end{bmatrix}hspace{brackoff}}%

        begin{document}
        $begin{aligned}
        vec{x} '(t) &= textbf{A}vec{x}(t) + textbf{B}vec{u}(t)\
        vec{y}(t) &= textbf{C}vec{x}(t) + textbf{D}vec{u}(t)
        end{aligned} to
        begin{aligned}
        dot{textbf{x}} & = begin{bmatrix}
        2&1&1\3&-2&-2\1&1&2
        end{bmatrix}vec{x} +
        begin{bmatrix}
        2\1\2
        end{bmatrix}vec{u}\
        vec{y} & = begin{bvector}0&-1&-1end{bvector}vec{x}\
        end{aligned}$
        end{document}


        demo







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 59 mins ago

























        answered 1 hour ago









        John KormyloJohn Kormylo

        46k22672




        46k22672






























            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%2f481733%2fwhy-do-horizontal-matrices-look-different-than-multistory-matrices%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







            6VaAC8R5pFXUahLT6,PStP8w69gJF7R
            G1 UgSDZc0xUnxl

            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

            Command to identify the expired API token and generates the new token in shell