representation of vector and matrix in latex
i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached
can someone help me out with a way to represent it
matrices vector
New contributor
add a comment |
i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached
can someone help me out with a way to represent it
matrices vector
New contributor
2
that seems very much a "blackboard" notation, do you really want that in a typeset paper? (underline{.}
andunderline{underline{.}}
probably do what you want but....
– David Carlisle
4 hours ago
add a comment |
i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached
can someone help me out with a way to represent it
matrices vector
New contributor
i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached
can someone help me out with a way to represent it
matrices vector
matrices vector
New contributor
New contributor
edited 5 hours ago
Phelype Oleinik
25.5k54690
25.5k54690
New contributor
asked 5 hours ago
sana chsana ch
133
133
New contributor
New contributor
2
that seems very much a "blackboard" notation, do you really want that in a typeset paper? (underline{.}
andunderline{underline{.}}
probably do what you want but....
– David Carlisle
4 hours ago
add a comment |
2
that seems very much a "blackboard" notation, do you really want that in a typeset paper? (underline{.}
andunderline{underline{.}}
probably do what you want but....
– David Carlisle
4 hours ago
2
2
that seems very much a "blackboard" notation, do you really want that in a typeset paper? (
underline{.}
and underline{underline{.}}
probably do what you want but....– David Carlisle
4 hours ago
that seems very much a "blackboard" notation, do you really want that in a typeset paper? (
underline{.}
and underline{underline{.}}
probably do what you want but....– David Carlisle
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
The immediate problem can be solved with an array
, with a local setting of arraystretch
for reducing the gap between the two rows.
documentclass{article}
usepackage{amsmath,bm}
% old fashioned notation for the old fashioned supervisor
newcommand{vect}[1]{underline{#1}}
newcommand{matr}[1]{underline{underline{#1}}}
% better for typesetting
%newcommand{vect}[1]{mathbf{#1}} % or bm
%newcommand{matr}[1]{mathbf{#1}} % or bm
begin{document}
Here $vect{Q}$ and $vect{w}$ are column vectors and $matr{A}$ is a matrix
[
renewcommand{arraystretch}{0.7}
begin{array}{@{} c @{} c @{} c @{;} c @{}}
vect{Q} & {}={} & matr{A} & vect{w} \
scriptscriptstyle mtimes 1 &&
scriptscriptstyle mtimes n &
scriptscriptstyle ntimes 1
end{array}
]
end{document}
I strongly advise to use macros for inputting matrices and vectors. When your supervisor will realize that the old-fashioned notation is also very ugly in print (it was used in the typewriter times), you can simply change the definitions. If you switch the comments in the code above, the result will be
without changing the code in the document body.
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
add a comment |
The notational possibilities are sheer endless. Which notational practice you wish to adopt may be dictated by typographic conventions specific to a field, a language, a country, etc. LaTeX and TeX don't prescribe any particular notational practice.
The following screenshot shows five possibilities; I have no doubt that there are many more. Echoing a thought already expressed by David Carlisle, "blackboard-style" notational conventions (e.g., with one or two underlines) are not necessarily the best when applied to typeset, as opposed to hand-written, material.
documentclass{article}
usepackage{amsmath,bm}
begin{document}
begin{align*}
Q &= Aw \
mathrm{Q} &= mathrm{A}mathrm{w}\
mathbf{Q} &= mathbf{A}mathbf{w}\
vec{Q} &= Avec{w}\
bm{Q} &= bm{A}bm{w}
end{align*}
end{document}
1
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
1
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output ofunderline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)
– Mico
4 hours ago
1
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
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
});
}
});
sana ch is a new contributor. Be nice, and check out our Code of Conduct.
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%2f485372%2frepresentation-of-vector-and-matrix-in-latex%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
The immediate problem can be solved with an array
, with a local setting of arraystretch
for reducing the gap between the two rows.
documentclass{article}
usepackage{amsmath,bm}
% old fashioned notation for the old fashioned supervisor
newcommand{vect}[1]{underline{#1}}
newcommand{matr}[1]{underline{underline{#1}}}
% better for typesetting
%newcommand{vect}[1]{mathbf{#1}} % or bm
%newcommand{matr}[1]{mathbf{#1}} % or bm
begin{document}
Here $vect{Q}$ and $vect{w}$ are column vectors and $matr{A}$ is a matrix
[
renewcommand{arraystretch}{0.7}
begin{array}{@{} c @{} c @{} c @{;} c @{}}
vect{Q} & {}={} & matr{A} & vect{w} \
scriptscriptstyle mtimes 1 &&
scriptscriptstyle mtimes n &
scriptscriptstyle ntimes 1
end{array}
]
end{document}
I strongly advise to use macros for inputting matrices and vectors. When your supervisor will realize that the old-fashioned notation is also very ugly in print (it was used in the typewriter times), you can simply change the definitions. If you switch the comments in the code above, the result will be
without changing the code in the document body.
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
add a comment |
The immediate problem can be solved with an array
, with a local setting of arraystretch
for reducing the gap between the two rows.
documentclass{article}
usepackage{amsmath,bm}
% old fashioned notation for the old fashioned supervisor
newcommand{vect}[1]{underline{#1}}
newcommand{matr}[1]{underline{underline{#1}}}
% better for typesetting
%newcommand{vect}[1]{mathbf{#1}} % or bm
%newcommand{matr}[1]{mathbf{#1}} % or bm
begin{document}
Here $vect{Q}$ and $vect{w}$ are column vectors and $matr{A}$ is a matrix
[
renewcommand{arraystretch}{0.7}
begin{array}{@{} c @{} c @{} c @{;} c @{}}
vect{Q} & {}={} & matr{A} & vect{w} \
scriptscriptstyle mtimes 1 &&
scriptscriptstyle mtimes n &
scriptscriptstyle ntimes 1
end{array}
]
end{document}
I strongly advise to use macros for inputting matrices and vectors. When your supervisor will realize that the old-fashioned notation is also very ugly in print (it was used in the typewriter times), you can simply change the definitions. If you switch the comments in the code above, the result will be
without changing the code in the document body.
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
add a comment |
The immediate problem can be solved with an array
, with a local setting of arraystretch
for reducing the gap between the two rows.
documentclass{article}
usepackage{amsmath,bm}
% old fashioned notation for the old fashioned supervisor
newcommand{vect}[1]{underline{#1}}
newcommand{matr}[1]{underline{underline{#1}}}
% better for typesetting
%newcommand{vect}[1]{mathbf{#1}} % or bm
%newcommand{matr}[1]{mathbf{#1}} % or bm
begin{document}
Here $vect{Q}$ and $vect{w}$ are column vectors and $matr{A}$ is a matrix
[
renewcommand{arraystretch}{0.7}
begin{array}{@{} c @{} c @{} c @{;} c @{}}
vect{Q} & {}={} & matr{A} & vect{w} \
scriptscriptstyle mtimes 1 &&
scriptscriptstyle mtimes n &
scriptscriptstyle ntimes 1
end{array}
]
end{document}
I strongly advise to use macros for inputting matrices and vectors. When your supervisor will realize that the old-fashioned notation is also very ugly in print (it was used in the typewriter times), you can simply change the definitions. If you switch the comments in the code above, the result will be
without changing the code in the document body.
The immediate problem can be solved with an array
, with a local setting of arraystretch
for reducing the gap between the two rows.
documentclass{article}
usepackage{amsmath,bm}
% old fashioned notation for the old fashioned supervisor
newcommand{vect}[1]{underline{#1}}
newcommand{matr}[1]{underline{underline{#1}}}
% better for typesetting
%newcommand{vect}[1]{mathbf{#1}} % or bm
%newcommand{matr}[1]{mathbf{#1}} % or bm
begin{document}
Here $vect{Q}$ and $vect{w}$ are column vectors and $matr{A}$ is a matrix
[
renewcommand{arraystretch}{0.7}
begin{array}{@{} c @{} c @{} c @{;} c @{}}
vect{Q} & {}={} & matr{A} & vect{w} \
scriptscriptstyle mtimes 1 &&
scriptscriptstyle mtimes n &
scriptscriptstyle ntimes 1
end{array}
]
end{document}
I strongly advise to use macros for inputting matrices and vectors. When your supervisor will realize that the old-fashioned notation is also very ugly in print (it was used in the typewriter times), you can simply change the definitions. If you switch the comments in the code above, the result will be
without changing the code in the document body.
answered 4 hours ago
egregegreg
735k8919343257
735k8919343257
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
add a comment |
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
thank you so much that's exactly what i'm searching for, i appreciate your help
– sana ch
2 hours ago
add a comment |
The notational possibilities are sheer endless. Which notational practice you wish to adopt may be dictated by typographic conventions specific to a field, a language, a country, etc. LaTeX and TeX don't prescribe any particular notational practice.
The following screenshot shows five possibilities; I have no doubt that there are many more. Echoing a thought already expressed by David Carlisle, "blackboard-style" notational conventions (e.g., with one or two underlines) are not necessarily the best when applied to typeset, as opposed to hand-written, material.
documentclass{article}
usepackage{amsmath,bm}
begin{document}
begin{align*}
Q &= Aw \
mathrm{Q} &= mathrm{A}mathrm{w}\
mathbf{Q} &= mathbf{A}mathbf{w}\
vec{Q} &= Avec{w}\
bm{Q} &= bm{A}bm{w}
end{align*}
end{document}
1
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
1
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output ofunderline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)
– Mico
4 hours ago
1
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
add a comment |
The notational possibilities are sheer endless. Which notational practice you wish to adopt may be dictated by typographic conventions specific to a field, a language, a country, etc. LaTeX and TeX don't prescribe any particular notational practice.
The following screenshot shows five possibilities; I have no doubt that there are many more. Echoing a thought already expressed by David Carlisle, "blackboard-style" notational conventions (e.g., with one or two underlines) are not necessarily the best when applied to typeset, as opposed to hand-written, material.
documentclass{article}
usepackage{amsmath,bm}
begin{document}
begin{align*}
Q &= Aw \
mathrm{Q} &= mathrm{A}mathrm{w}\
mathbf{Q} &= mathbf{A}mathbf{w}\
vec{Q} &= Avec{w}\
bm{Q} &= bm{A}bm{w}
end{align*}
end{document}
1
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
1
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output ofunderline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)
– Mico
4 hours ago
1
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
add a comment |
The notational possibilities are sheer endless. Which notational practice you wish to adopt may be dictated by typographic conventions specific to a field, a language, a country, etc. LaTeX and TeX don't prescribe any particular notational practice.
The following screenshot shows five possibilities; I have no doubt that there are many more. Echoing a thought already expressed by David Carlisle, "blackboard-style" notational conventions (e.g., with one or two underlines) are not necessarily the best when applied to typeset, as opposed to hand-written, material.
documentclass{article}
usepackage{amsmath,bm}
begin{document}
begin{align*}
Q &= Aw \
mathrm{Q} &= mathrm{A}mathrm{w}\
mathbf{Q} &= mathbf{A}mathbf{w}\
vec{Q} &= Avec{w}\
bm{Q} &= bm{A}bm{w}
end{align*}
end{document}
The notational possibilities are sheer endless. Which notational practice you wish to adopt may be dictated by typographic conventions specific to a field, a language, a country, etc. LaTeX and TeX don't prescribe any particular notational practice.
The following screenshot shows five possibilities; I have no doubt that there are many more. Echoing a thought already expressed by David Carlisle, "blackboard-style" notational conventions (e.g., with one or two underlines) are not necessarily the best when applied to typeset, as opposed to hand-written, material.
documentclass{article}
usepackage{amsmath,bm}
begin{document}
begin{align*}
Q &= Aw \
mathrm{Q} &= mathrm{A}mathrm{w}\
mathbf{Q} &= mathbf{A}mathbf{w}\
vec{Q} &= Avec{w}\
bm{Q} &= bm{A}bm{w}
end{align*}
end{document}
answered 4 hours ago
MicoMico
287k32392781
287k32392781
1
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
1
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output ofunderline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)
– Mico
4 hours ago
1
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
add a comment |
1
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
1
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output ofunderline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)
– Mico
4 hours ago
1
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
1
1
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
thank you for your reply, i share the same opinion as you, i think it's a blaskboard notation but my supervisor insist to do it this way in my thesis
– sana ch
4 hours ago
1
1
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output of
underline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)– Mico
4 hours ago
@sanach - If your supervisor is so strongly wedded to this borderline unsuitable typographic convention, just show him the output of
underline{Q}=underline{underline{A}},underline{w}
and ask him for permission to use a different, non-disastrous notation for vectors and matrices. :-)– Mico
4 hours ago
1
1
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
@sanach Explaining matrix multiplication in a thesis? That's what every sophomore should know!
– egreg
4 hours ago
add a comment |
sana ch is a new contributor. Be nice, and check out our Code of Conduct.
sana ch is a new contributor. Be nice, and check out our Code of Conduct.
sana ch is a new contributor. Be nice, and check out our Code of Conduct.
sana ch is a new contributor. Be nice, and check out our Code of Conduct.
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%2f485372%2frepresentation-of-vector-and-matrix-in-latex%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
2
that seems very much a "blackboard" notation, do you really want that in a typeset paper? (
underline{.}
andunderline{underline{.}}
probably do what you want but....– David Carlisle
4 hours ago