Adding labels to a matrixnodes in matrix and its incorporation into documentAdd Overbrace to describe a column of matrixaligning a matrix with its labelHow to group and label rows and columns in a matrixMatrix Multiple AlignmentPrinting matrix labels below itDimensional matrixHow to write the matrix in the required form?How to have a dotted line separate a matrix into upper and lower partCreating a block matrix
Are there any medieval light sources without fire?
The tensor product of two monoidal categories
Was I subtly told to resign?
How do we handle pauses in a dialogue?
Managing and organizing the massively increased number of classes after switching to SOLID?
Print the last, middle and first character of your code
Word meaning to destroy books
What is a "shilicashe?"
Sharing shapefile collection
Is there a strong legal guarantee that the U.S. can give to another country that it won't attack them?
Why does this potentiometer in an op-amp feedback path cause noise when adjusted?
How can I effectively communicate to recruiters that a phone call is not possible?
Why do people keep referring to Leia as Princess Leia, even after the destruction of Alderaan?
Credit score and financing new car
How can I fix the dull colors I am getting in Ubuntu 19.04 Terminal?
How are mathematicians paid to do research?
What is this little owl-like bird?
How to tell someone I'd like to become friends without letting them think I'm romantically interested in them?
Does throwing a penny at a train stop the train?
Which star / galaxy is moving away from us the fastest?
OR-backed serious games
How to know if blackberries are safe to eat
What's the point of having a RAID 1 configuration over incremental backups to a secondary drive?
Shortest hex dumping program
Adding labels to a matrix
nodes in matrix and its incorporation into documentAdd Overbrace to describe a column of matrixaligning a matrix with its labelHow to group and label rows and columns in a matrixMatrix Multiple AlignmentPrinting matrix labels below itDimensional matrixHow to write the matrix in the required form?How to have a dotted line separate a matrix into upper and lower partCreating a block matrix
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I don't know how to add labels "ABCDE" and "12345678910". And I want to set it as a matrix and not as a table. How can I achieve that?
DESIRED OUTPUT:
documentclassarticle
begindocument
begintable[]
begintabularcccccc
& 5 & 4 & 4 & - & textbf5 \
& - & 3 & 5 &textbf 3 & 4 \
& 5 & 2 & - & textbf2 & 3 \
& - & textbf2 & 3 & 1 & 2 \
& 4 & - & textbf5 & 4 & 5 \
& textbf5&3 & - & 3 & 5 \
&3 & textbf2 & 3 & 2 & - \
&5 & textbf3 & 4 & - & 5 \
& textbf4 & 2 & 5 & 4 &- \
&textbf5 & - & 5 & 3 & 4 \
& & & & &
endtabular
endtable
enddocument
matrices
add a comment |
I don't know how to add labels "ABCDE" and "12345678910". And I want to set it as a matrix and not as a table. How can I achieve that?
DESIRED OUTPUT:
documentclassarticle
begindocument
begintable[]
begintabularcccccc
& 5 & 4 & 4 & - & textbf5 \
& - & 3 & 5 &textbf 3 & 4 \
& 5 & 2 & - & textbf2 & 3 \
& - & textbf2 & 3 & 1 & 2 \
& 4 & - & textbf5 & 4 & 5 \
& textbf5&3 & - & 3 & 5 \
&3 & textbf2 & 3 & 2 & - \
&5 & textbf3 & 4 & - & 5 \
& textbf4 & 2 & 5 & 4 &- \
&textbf5 & - & 5 & 3 & 4 \
& & & & &
endtabular
endtable
enddocument
matrices
2
bordermatrix
should do what you want.
– barbara beeton
8 hours ago
add a comment |
I don't know how to add labels "ABCDE" and "12345678910". And I want to set it as a matrix and not as a table. How can I achieve that?
DESIRED OUTPUT:
documentclassarticle
begindocument
begintable[]
begintabularcccccc
& 5 & 4 & 4 & - & textbf5 \
& - & 3 & 5 &textbf 3 & 4 \
& 5 & 2 & - & textbf2 & 3 \
& - & textbf2 & 3 & 1 & 2 \
& 4 & - & textbf5 & 4 & 5 \
& textbf5&3 & - & 3 & 5 \
&3 & textbf2 & 3 & 2 & - \
&5 & textbf3 & 4 & - & 5 \
& textbf4 & 2 & 5 & 4 &- \
&textbf5 & - & 5 & 3 & 4 \
& & & & &
endtabular
endtable
enddocument
matrices
I don't know how to add labels "ABCDE" and "12345678910". And I want to set it as a matrix and not as a table. How can I achieve that?
DESIRED OUTPUT:
documentclassarticle
begindocument
begintable[]
begintabularcccccc
& 5 & 4 & 4 & - & textbf5 \
& - & 3 & 5 &textbf 3 & 4 \
& 5 & 2 & - & textbf2 & 3 \
& - & textbf2 & 3 & 1 & 2 \
& 4 & - & textbf5 & 4 & 5 \
& textbf5&3 & - & 3 & 5 \
&3 & textbf2 & 3 & 2 & - \
&5 & textbf3 & 4 & - & 5 \
& textbf4 & 2 & 5 & 4 &- \
&textbf5 & - & 5 & 3 & 4 \
& & & & &
endtabular
endtable
enddocument
matrices
matrices
asked 8 hours ago
DelanDelan
45611 bronze badges
45611 bronze badges
2
bordermatrix
should do what you want.
– barbara beeton
8 hours ago
add a comment |
2
bordermatrix
should do what you want.
– barbara beeton
8 hours ago
2
2
bordermatrix
should do what you want.– barbara beeton
8 hours ago
bordermatrix
should do what you want.– barbara beeton
8 hours ago
add a comment |
2 Answers
2
active
oldest
votes
No need for a hmmersledge like tikz
for math: blkarray
does it easily:
documentclass[11pt]article
usepackageamsmath
usepackageblkarray
usepackage[svgnames]xcolor
begindocument
[ mathbfR = beginblockarrayr*5 >colorLightSalmonc
& A & B & C & D & E \
beginblock >scriptstyler!,(ccccc)
1 & 5 & 4 & 4 & - & mathbf5 \
2 & - & 3 & 5 &mathbf 3 & 4 \
3 & 5 & 2 & - & mathbf2 & 3 \
4 & - & mathbf2 & 3 & 1 & 2 \
5 & 4 & - & mathbf5 & 4 & 5 \
6 & mathbf5&3 & - & 3 & 5 \
7 & 3 & mathbf2 & 3 & 2 & - \
8 & 5 & mathbf3 & 4 & - & 5 \
9 & mathbf4 & 2 & 5 & 4 &- \
10 & mathbf5 & - & 5 & 3 & 4 \
endblock
endblockarray ]%
enddocument
add a comment |
You can do something like that with nicematrix
. The diffence is that the labels of the rows are on the right of the matrix.
documentclassarticle
usepackagenicematrix
begindocument
begintable[tbp]
$mathbfR =
beginpNiceArrayRCCCCCC%
[code-for-last-col = colorblue,
code-for-first-row = colorblue]
A & B & C & D & E \
5 & 4 & 4 & - & mathbf5 & 1 \
- & 3 & 5 &mathbf 3 & 4 & 2 \
5 & 2 & - & mathbf2 & 3 & 3 \
- & mathbf2 & 3 & 1 & 2 & 4 \
4 & - & mathbf5 & 4 & 5 & 5 \
mathbf5&3 & - & 3 & 5 & 6 \
3 & mathbf2 & 3 & 2 & - & 7 \
5 & mathbf3 & 4 & - & 5 & 8 \
mathbf4 & 2 & 5 & 4 &- & 9 \
mathbf5 & - & 5 & 3 & 4 & 10
endpNiceArrayRC$
endtable
enddocument
I have put the labels in blue to show the use of the options code-for-first-row
and code-for-last-col
.
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
1
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 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
);
);
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%2f499289%2fadding-labels-to-a-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
No need for a hmmersledge like tikz
for math: blkarray
does it easily:
documentclass[11pt]article
usepackageamsmath
usepackageblkarray
usepackage[svgnames]xcolor
begindocument
[ mathbfR = beginblockarrayr*5 >colorLightSalmonc
& A & B & C & D & E \
beginblock >scriptstyler!,(ccccc)
1 & 5 & 4 & 4 & - & mathbf5 \
2 & - & 3 & 5 &mathbf 3 & 4 \
3 & 5 & 2 & - & mathbf2 & 3 \
4 & - & mathbf2 & 3 & 1 & 2 \
5 & 4 & - & mathbf5 & 4 & 5 \
6 & mathbf5&3 & - & 3 & 5 \
7 & 3 & mathbf2 & 3 & 2 & - \
8 & 5 & mathbf3 & 4 & - & 5 \
9 & mathbf4 & 2 & 5 & 4 &- \
10 & mathbf5 & - & 5 & 3 & 4 \
endblock
endblockarray ]%
enddocument
add a comment |
No need for a hmmersledge like tikz
for math: blkarray
does it easily:
documentclass[11pt]article
usepackageamsmath
usepackageblkarray
usepackage[svgnames]xcolor
begindocument
[ mathbfR = beginblockarrayr*5 >colorLightSalmonc
& A & B & C & D & E \
beginblock >scriptstyler!,(ccccc)
1 & 5 & 4 & 4 & - & mathbf5 \
2 & - & 3 & 5 &mathbf 3 & 4 \
3 & 5 & 2 & - & mathbf2 & 3 \
4 & - & mathbf2 & 3 & 1 & 2 \
5 & 4 & - & mathbf5 & 4 & 5 \
6 & mathbf5&3 & - & 3 & 5 \
7 & 3 & mathbf2 & 3 & 2 & - \
8 & 5 & mathbf3 & 4 & - & 5 \
9 & mathbf4 & 2 & 5 & 4 &- \
10 & mathbf5 & - & 5 & 3 & 4 \
endblock
endblockarray ]%
enddocument
add a comment |
No need for a hmmersledge like tikz
for math: blkarray
does it easily:
documentclass[11pt]article
usepackageamsmath
usepackageblkarray
usepackage[svgnames]xcolor
begindocument
[ mathbfR = beginblockarrayr*5 >colorLightSalmonc
& A & B & C & D & E \
beginblock >scriptstyler!,(ccccc)
1 & 5 & 4 & 4 & - & mathbf5 \
2 & - & 3 & 5 &mathbf 3 & 4 \
3 & 5 & 2 & - & mathbf2 & 3 \
4 & - & mathbf2 & 3 & 1 & 2 \
5 & 4 & - & mathbf5 & 4 & 5 \
6 & mathbf5&3 & - & 3 & 5 \
7 & 3 & mathbf2 & 3 & 2 & - \
8 & 5 & mathbf3 & 4 & - & 5 \
9 & mathbf4 & 2 & 5 & 4 &- \
10 & mathbf5 & - & 5 & 3 & 4 \
endblock
endblockarray ]%
enddocument
No need for a hmmersledge like tikz
for math: blkarray
does it easily:
documentclass[11pt]article
usepackageamsmath
usepackageblkarray
usepackage[svgnames]xcolor
begindocument
[ mathbfR = beginblockarrayr*5 >colorLightSalmonc
& A & B & C & D & E \
beginblock >scriptstyler!,(ccccc)
1 & 5 & 4 & 4 & - & mathbf5 \
2 & - & 3 & 5 &mathbf 3 & 4 \
3 & 5 & 2 & - & mathbf2 & 3 \
4 & - & mathbf2 & 3 & 1 & 2 \
5 & 4 & - & mathbf5 & 4 & 5 \
6 & mathbf5&3 & - & 3 & 5 \
7 & 3 & mathbf2 & 3 & 2 & - \
8 & 5 & mathbf3 & 4 & - & 5 \
9 & mathbf4 & 2 & 5 & 4 &- \
10 & mathbf5 & - & 5 & 3 & 4 \
endblock
endblockarray ]%
enddocument
edited 6 hours ago
answered 6 hours ago
BernardBernard
184k7 gold badges83 silver badges217 bronze badges
184k7 gold badges83 silver badges217 bronze badges
add a comment |
add a comment |
You can do something like that with nicematrix
. The diffence is that the labels of the rows are on the right of the matrix.
documentclassarticle
usepackagenicematrix
begindocument
begintable[tbp]
$mathbfR =
beginpNiceArrayRCCCCCC%
[code-for-last-col = colorblue,
code-for-first-row = colorblue]
A & B & C & D & E \
5 & 4 & 4 & - & mathbf5 & 1 \
- & 3 & 5 &mathbf 3 & 4 & 2 \
5 & 2 & - & mathbf2 & 3 & 3 \
- & mathbf2 & 3 & 1 & 2 & 4 \
4 & - & mathbf5 & 4 & 5 & 5 \
mathbf5&3 & - & 3 & 5 & 6 \
3 & mathbf2 & 3 & 2 & - & 7 \
5 & mathbf3 & 4 & - & 5 & 8 \
mathbf4 & 2 & 5 & 4 &- & 9 \
mathbf5 & - & 5 & 3 & 4 & 10
endpNiceArrayRC$
endtable
enddocument
I have put the labels in blue to show the use of the options code-for-first-row
and code-for-last-col
.
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
1
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 hours ago
add a comment |
You can do something like that with nicematrix
. The diffence is that the labels of the rows are on the right of the matrix.
documentclassarticle
usepackagenicematrix
begindocument
begintable[tbp]
$mathbfR =
beginpNiceArrayRCCCCCC%
[code-for-last-col = colorblue,
code-for-first-row = colorblue]
A & B & C & D & E \
5 & 4 & 4 & - & mathbf5 & 1 \
- & 3 & 5 &mathbf 3 & 4 & 2 \
5 & 2 & - & mathbf2 & 3 & 3 \
- & mathbf2 & 3 & 1 & 2 & 4 \
4 & - & mathbf5 & 4 & 5 & 5 \
mathbf5&3 & - & 3 & 5 & 6 \
3 & mathbf2 & 3 & 2 & - & 7 \
5 & mathbf3 & 4 & - & 5 & 8 \
mathbf4 & 2 & 5 & 4 &- & 9 \
mathbf5 & - & 5 & 3 & 4 & 10
endpNiceArrayRC$
endtable
enddocument
I have put the labels in blue to show the use of the options code-for-first-row
and code-for-last-col
.
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
1
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 hours ago
add a comment |
You can do something like that with nicematrix
. The diffence is that the labels of the rows are on the right of the matrix.
documentclassarticle
usepackagenicematrix
begindocument
begintable[tbp]
$mathbfR =
beginpNiceArrayRCCCCCC%
[code-for-last-col = colorblue,
code-for-first-row = colorblue]
A & B & C & D & E \
5 & 4 & 4 & - & mathbf5 & 1 \
- & 3 & 5 &mathbf 3 & 4 & 2 \
5 & 2 & - & mathbf2 & 3 & 3 \
- & mathbf2 & 3 & 1 & 2 & 4 \
4 & - & mathbf5 & 4 & 5 & 5 \
mathbf5&3 & - & 3 & 5 & 6 \
3 & mathbf2 & 3 & 2 & - & 7 \
5 & mathbf3 & 4 & - & 5 & 8 \
mathbf4 & 2 & 5 & 4 &- & 9 \
mathbf5 & - & 5 & 3 & 4 & 10
endpNiceArrayRC$
endtable
enddocument
I have put the labels in blue to show the use of the options code-for-first-row
and code-for-last-col
.
You can do something like that with nicematrix
. The diffence is that the labels of the rows are on the right of the matrix.
documentclassarticle
usepackagenicematrix
begindocument
begintable[tbp]
$mathbfR =
beginpNiceArrayRCCCCCC%
[code-for-last-col = colorblue,
code-for-first-row = colorblue]
A & B & C & D & E \
5 & 4 & 4 & - & mathbf5 & 1 \
- & 3 & 5 &mathbf 3 & 4 & 2 \
5 & 2 & - & mathbf2 & 3 & 3 \
- & mathbf2 & 3 & 1 & 2 & 4 \
4 & - & mathbf5 & 4 & 5 & 5 \
mathbf5&3 & - & 3 & 5 & 6 \
3 & mathbf2 & 3 & 2 & - & 7 \
5 & mathbf3 & 4 & - & 5 & 8 \
mathbf4 & 2 & 5 & 4 &- & 9 \
mathbf5 & - & 5 & 3 & 4 & 10
endpNiceArrayRC$
endtable
enddocument
I have put the labels in blue to show the use of the options code-for-first-row
and code-for-last-col
.
answered 7 hours ago
F. PantignyF. Pantigny
8962 silver badges12 bronze badges
8962 silver badges12 bronze badges
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
1
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 hours ago
add a comment |
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
1
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 hours ago
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
Can you have an help, please? But into your package nicematrix exist the possibility to add at the left border, external blue column? Thank you.
– Sebastiano
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
As of now, there is no possibiity to put an exterior column on the left. If you want to help me to write a new version with this functionnality, I will put the code on Github.
– F. Pantigny
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
With all my sincerity I am not very good user to write a code of a package ☹. I'm sorry. Your package for me it is very nice.
– Sebastiano
7 hours ago
1
1
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 hours ago
Never mind. I have the project to programm that functionnality :-)
– F. Pantigny
7 hours ago
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%2f499289%2fadding-labels-to-a-matrix%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
bordermatrix
should do what you want.– barbara beeton
8 hours ago