Why do horizontal matrices look different than multistory matrices?

Multi tool use
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}
amsmath
add a comment |
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}
amsmath
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 ofbmatrix
(and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (inmu
units) just before and after the opening bracket and perhaps before the closing bracket should be possible.
– barbara beeton
3 hours ago
add a comment |
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}
amsmath
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}
amsmath
amsmath
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 ofbmatrix
(and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (inmu
units) just before and after the opening bracket and perhaps before the closing bracket should be possible.
– barbara beeton
3 hours ago
add a comment |
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 ofbmatrix
(and friends) would not be advised. That said, if absolutely perfect alignment is desired, adding (very) small spaces (inmu
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
add a comment |
1 Answer
1
active
oldest
votes
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}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
add a comment |
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}
add a comment |
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}
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}
edited 59 mins ago
answered 1 hour ago


John KormyloJohn Kormylo
46k22672
46k22672
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 (inmu
units) just before and after the opening bracket and perhaps before the closing bracket should be possible.– barbara beeton
3 hours ago