Adding labels to a table: columns and rows The 2019 Stack Overflow Developer Survey Results Are InHighlight table cells using thick, colored borderUsing a table: alignment issues and cell labelsHow to make table with rotated table headers in LaTeXHow do I prevent cellcolor from over effect of hlineAdding a different sized, independent, table under another with same captionHorizontal lines in nested tabular environmentHow to vertically align table columnProblem aligning decimals in multi-column tableColor in every other column for Table with Multicolumn with subcolumnsNote at the end of the table in Latex

Inline version of a function returns different value than non-inline version

Deadlock Graph and Interpretation, solution to avoid

What does "rabbited" mean/imply in this sentence?

How is radar separation assured between primary and secondary targets?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

How was Skylab's orbit inclination chosen?

Lethal sonic weapons

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Spanish for "widget"

Time travel alters history but people keep saying nothing's changed

How do you say "canon" as in "official for a story universe"?

What tool would a Roman-age civilization have to grind silver and other metals into dust?

Could a US political party gain complete control over the government by removing checks & balances?

Is there a name of the flying bionic bird?

How long do I have to send my income tax payment to the IRS?

Patience, young "Padovan"

Can the Protection from Evil and Good spell be used on the caster?

Return to UK after being refused

Could JWST stay at L2 "forever"?

What is the meaning of Triage in Cybersec world?

What does "sndry explns" mean in one of the Hitchhiker's guide books?

Why isn't airport relocation done gradually?

Understanding the implication of what "well-defined" means for the operation in quotient group



Adding labels to a table: columns and rows



The 2019 Stack Overflow Developer Survey Results Are InHighlight table cells using thick, colored borderUsing a table: alignment issues and cell labelsHow to make table with rotated table headers in LaTeXHow do I prevent cellcolor from over effect of hlineAdding a different sized, independent, table under another with same captionHorizontal lines in nested tabular environmentHow to vertically align table columnProblem aligning decimals in multi-column tableColor in every other column for Table with Multicolumn with subcolumnsNote at the end of the table in Latex










3















enter image description here



Can anybody help me? I know how to build the table but I don’t know how to add the “Users” and “Movies” labels.



This is what I've tried so far:



begintable[H]
centering
text textbfMovies
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular


Thanks!










share|improve this question









New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You can have it with multirow and multicolumn, but I'd use TikZ for that. Anyway: what have you tried so far? Please add a minimal code.

    – JouleV
    49 mins ago












  • ` begintabular c multicolumn1c & multicolumn1c1 & multicolumn1c2 & multicolumn1c3 & multicolumn1c4 & multicolumn1c5 & multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline 1 & & 5 & & 2 & 4 & & & \ hhline 2 & 4 & & 3 & 1 & & & 3 & \ hhline 3 & & 5 & 4 & & 5 & & 4 &\ hhline 4 & & & & & & 1 & 1 & 2 \ hhline 5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 `

    – naveganteX
    44 mins ago












  • @JouleV I have added the code!

    – naveganteX
    38 mins ago















3















enter image description here



Can anybody help me? I know how to build the table but I don’t know how to add the “Users” and “Movies” labels.



This is what I've tried so far:



begintable[H]
centering
text textbfMovies
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular


Thanks!










share|improve this question









New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You can have it with multirow and multicolumn, but I'd use TikZ for that. Anyway: what have you tried so far? Please add a minimal code.

    – JouleV
    49 mins ago












  • ` begintabular c multicolumn1c & multicolumn1c1 & multicolumn1c2 & multicolumn1c3 & multicolumn1c4 & multicolumn1c5 & multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline 1 & & 5 & & 2 & 4 & & & \ hhline 2 & 4 & & 3 & 1 & & & 3 & \ hhline 3 & & 5 & 4 & & 5 & & 4 &\ hhline 4 & & & & & & 1 & 1 & 2 \ hhline 5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 `

    – naveganteX
    44 mins ago












  • @JouleV I have added the code!

    – naveganteX
    38 mins ago













3












3








3


1






enter image description here



Can anybody help me? I know how to build the table but I don’t know how to add the “Users” and “Movies” labels.



This is what I've tried so far:



begintable[H]
centering
text textbfMovies
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular


Thanks!










share|improve this question









New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












enter image description here



Can anybody help me? I know how to build the table but I don’t know how to add the “Users” and “Movies” labels.



This is what I've tried so far:



begintable[H]
centering
text textbfMovies
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular


Thanks!







tables






share|improve this question









New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 39 mins ago







naveganteX













New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 52 mins ago









naveganteXnaveganteX

183




183




New contributor




naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






naveganteX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • You can have it with multirow and multicolumn, but I'd use TikZ for that. Anyway: what have you tried so far? Please add a minimal code.

    – JouleV
    49 mins ago












  • ` begintabular c multicolumn1c & multicolumn1c1 & multicolumn1c2 & multicolumn1c3 & multicolumn1c4 & multicolumn1c5 & multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline 1 & & 5 & & 2 & 4 & & & \ hhline 2 & 4 & & 3 & 1 & & & 3 & \ hhline 3 & & 5 & 4 & & 5 & & 4 &\ hhline 4 & & & & & & 1 & 1 & 2 \ hhline 5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 `

    – naveganteX
    44 mins ago












  • @JouleV I have added the code!

    – naveganteX
    38 mins ago

















  • You can have it with multirow and multicolumn, but I'd use TikZ for that. Anyway: what have you tried so far? Please add a minimal code.

    – JouleV
    49 mins ago












  • ` begintabular c multicolumn1c & multicolumn1c1 & multicolumn1c2 & multicolumn1c3 & multicolumn1c4 & multicolumn1c5 & multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline 1 & & 5 & & 2 & 4 & & & \ hhline 2 & 4 & & 3 & 1 & & & 3 & \ hhline 3 & & 5 & 4 & & 5 & & 4 &\ hhline 4 & & & & & & 1 & 1 & 2 \ hhline 5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 `

    – naveganteX
    44 mins ago












  • @JouleV I have added the code!

    – naveganteX
    38 mins ago
















You can have it with multirow and multicolumn, but I'd use TikZ for that. Anyway: what have you tried so far? Please add a minimal code.

– JouleV
49 mins ago






You can have it with multirow and multicolumn, but I'd use TikZ for that. Anyway: what have you tried so far? Please add a minimal code.

– JouleV
49 mins ago














` begintabular c multicolumn1c & multicolumn1c1 & multicolumn1c2 & multicolumn1c3 & multicolumn1c4 & multicolumn1c5 & multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline 1 & & 5 & & 2 & 4 & & & \ hhline 2 & 4 & & 3 & 1 & & & 3 & \ hhline 3 & & 5 & 4 & & 5 & & 4 &\ hhline 4 & & & & & & 1 & 1 & 2 \ hhline 5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 `

– naveganteX
44 mins ago






` begintabular c multicolumn1c & multicolumn1c1 & multicolumn1c2 & multicolumn1c3 & multicolumn1c4 & multicolumn1c5 & multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline 1 & & 5 & & 2 & 4 & & & \ hhline 2 & 4 & & 3 & 1 & & & 3 & \ hhline 3 & & 5 & 4 & & 5 & & 4 &\ hhline 4 & & & & & & 1 & 1 & 2 \ hhline 5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 `

– naveganteX
44 mins ago














@JouleV I have added the code!

– naveganteX
38 mins ago





@JouleV I have added the code!

– naveganteX
38 mins ago










2 Answers
2






active

oldest

votes


















3














This is my recommended version, which doesn't use any tables at all, but a powerful tool called TikZ:



documentclass[tikz]standalone
usetikzlibrarymatrix
begindocument
sffamily
begintikzpicture
matrix (m) [matrix of nodes,nodes in empty cells,nodes=minimum size=.75cm,anchor=center] %
& 5 & & 2 & 4 & & & \
4 & & 3 & 1 & & & 3 & \
& 5 & 4 & & 5 & & 4 &\
& & & & & 1 & 1 & 2 \
3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \
& colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \
;
draw[step=0.75] (m-1-1.north west) grid (m-6-8.south east);
beginscope[font=scriptsize]
foreach i in 1,...,8 path (m-1-i.north) node[above] i;
foreach i in 1,...,6 path (m-i-1.west) node[left] i;
endscope
path (m-1-5.north west) node[above=1em] Movies;
path (m-3-1.south west) node[left=1em] Users;
endtikzpicture
enddocument


enter image description here




I don't nest tables, but use a multirow to center "Movies" and "Users":



documentclassarticle
usepackagexcolor
usepackagearray
usepackagemultirow
renewcommandarraystretch1.5
begindocument
sffamily
begintabularc
&multicolumn1c & multicolumn8cMovies\
&multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ cline3-10
multirow6*Users&1 & & 5 & & 2 & 4 & & & \ cline3-10
&2 & 4 & & 3 & 1 & & & 3 & \ cline3-10
&3 & & 5 & 4 & & 5 & & 4 &\ cline3-10
&4 & & & & & & 1 & 1 & 2 \ cline3-10
&5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ cline3-10
&6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ cline3-10
endtabular
enddocument


enter image description here






share|improve this answer

























  • You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

    – naveganteX
    30 mins ago











  • @naveganteX and it can do much more. Welcome to TeX.SE!

    – JouleV
    29 mins ago


















3














You can nest tables.



documentclassbeamer
usepackagexcolor
usepackagearray
usepackagehhline
begindocument
beginframe[t]
frametitleTables can be nested
begintabularcc
& Movies\
Users&
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular
endtabular
endframe
enddocument


enter image description here






share|improve this answer























  • Thank you very much!

    – naveganteX
    28 mins ago











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
);



);






naveganteX is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484051%2fadding-labels-to-a-table-columns-and-rows%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









3














This is my recommended version, which doesn't use any tables at all, but a powerful tool called TikZ:



documentclass[tikz]standalone
usetikzlibrarymatrix
begindocument
sffamily
begintikzpicture
matrix (m) [matrix of nodes,nodes in empty cells,nodes=minimum size=.75cm,anchor=center] %
& 5 & & 2 & 4 & & & \
4 & & 3 & 1 & & & 3 & \
& 5 & 4 & & 5 & & 4 &\
& & & & & 1 & 1 & 2 \
3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \
& colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \
;
draw[step=0.75] (m-1-1.north west) grid (m-6-8.south east);
beginscope[font=scriptsize]
foreach i in 1,...,8 path (m-1-i.north) node[above] i;
foreach i in 1,...,6 path (m-i-1.west) node[left] i;
endscope
path (m-1-5.north west) node[above=1em] Movies;
path (m-3-1.south west) node[left=1em] Users;
endtikzpicture
enddocument


enter image description here




I don't nest tables, but use a multirow to center "Movies" and "Users":



documentclassarticle
usepackagexcolor
usepackagearray
usepackagemultirow
renewcommandarraystretch1.5
begindocument
sffamily
begintabularc
&multicolumn1c & multicolumn8cMovies\
&multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ cline3-10
multirow6*Users&1 & & 5 & & 2 & 4 & & & \ cline3-10
&2 & 4 & & 3 & 1 & & & 3 & \ cline3-10
&3 & & 5 & 4 & & 5 & & 4 &\ cline3-10
&4 & & & & & & 1 & 1 & 2 \ cline3-10
&5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ cline3-10
&6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ cline3-10
endtabular
enddocument


enter image description here






share|improve this answer

























  • You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

    – naveganteX
    30 mins ago











  • @naveganteX and it can do much more. Welcome to TeX.SE!

    – JouleV
    29 mins ago















3














This is my recommended version, which doesn't use any tables at all, but a powerful tool called TikZ:



documentclass[tikz]standalone
usetikzlibrarymatrix
begindocument
sffamily
begintikzpicture
matrix (m) [matrix of nodes,nodes in empty cells,nodes=minimum size=.75cm,anchor=center] %
& 5 & & 2 & 4 & & & \
4 & & 3 & 1 & & & 3 & \
& 5 & 4 & & 5 & & 4 &\
& & & & & 1 & 1 & 2 \
3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \
& colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \
;
draw[step=0.75] (m-1-1.north west) grid (m-6-8.south east);
beginscope[font=scriptsize]
foreach i in 1,...,8 path (m-1-i.north) node[above] i;
foreach i in 1,...,6 path (m-i-1.west) node[left] i;
endscope
path (m-1-5.north west) node[above=1em] Movies;
path (m-3-1.south west) node[left=1em] Users;
endtikzpicture
enddocument


enter image description here




I don't nest tables, but use a multirow to center "Movies" and "Users":



documentclassarticle
usepackagexcolor
usepackagearray
usepackagemultirow
renewcommandarraystretch1.5
begindocument
sffamily
begintabularc
&multicolumn1c & multicolumn8cMovies\
&multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ cline3-10
multirow6*Users&1 & & 5 & & 2 & 4 & & & \ cline3-10
&2 & 4 & & 3 & 1 & & & 3 & \ cline3-10
&3 & & 5 & 4 & & 5 & & 4 &\ cline3-10
&4 & & & & & & 1 & 1 & 2 \ cline3-10
&5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ cline3-10
&6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ cline3-10
endtabular
enddocument


enter image description here






share|improve this answer

























  • You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

    – naveganteX
    30 mins ago











  • @naveganteX and it can do much more. Welcome to TeX.SE!

    – JouleV
    29 mins ago













3












3








3







This is my recommended version, which doesn't use any tables at all, but a powerful tool called TikZ:



documentclass[tikz]standalone
usetikzlibrarymatrix
begindocument
sffamily
begintikzpicture
matrix (m) [matrix of nodes,nodes in empty cells,nodes=minimum size=.75cm,anchor=center] %
& 5 & & 2 & 4 & & & \
4 & & 3 & 1 & & & 3 & \
& 5 & 4 & & 5 & & 4 &\
& & & & & 1 & 1 & 2 \
3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \
& colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \
;
draw[step=0.75] (m-1-1.north west) grid (m-6-8.south east);
beginscope[font=scriptsize]
foreach i in 1,...,8 path (m-1-i.north) node[above] i;
foreach i in 1,...,6 path (m-i-1.west) node[left] i;
endscope
path (m-1-5.north west) node[above=1em] Movies;
path (m-3-1.south west) node[left=1em] Users;
endtikzpicture
enddocument


enter image description here




I don't nest tables, but use a multirow to center "Movies" and "Users":



documentclassarticle
usepackagexcolor
usepackagearray
usepackagemultirow
renewcommandarraystretch1.5
begindocument
sffamily
begintabularc
&multicolumn1c & multicolumn8cMovies\
&multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ cline3-10
multirow6*Users&1 & & 5 & & 2 & 4 & & & \ cline3-10
&2 & 4 & & 3 & 1 & & & 3 & \ cline3-10
&3 & & 5 & 4 & & 5 & & 4 &\ cline3-10
&4 & & & & & & 1 & 1 & 2 \ cline3-10
&5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ cline3-10
&6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ cline3-10
endtabular
enddocument


enter image description here






share|improve this answer















This is my recommended version, which doesn't use any tables at all, but a powerful tool called TikZ:



documentclass[tikz]standalone
usetikzlibrarymatrix
begindocument
sffamily
begintikzpicture
matrix (m) [matrix of nodes,nodes in empty cells,nodes=minimum size=.75cm,anchor=center] %
& 5 & & 2 & 4 & & & \
4 & & 3 & 1 & & & 3 & \
& 5 & 4 & & 5 & & 4 &\
& & & & & 1 & 1 & 2 \
3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \
& colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \
;
draw[step=0.75] (m-1-1.north west) grid (m-6-8.south east);
beginscope[font=scriptsize]
foreach i in 1,...,8 path (m-1-i.north) node[above] i;
foreach i in 1,...,6 path (m-i-1.west) node[left] i;
endscope
path (m-1-5.north west) node[above=1em] Movies;
path (m-3-1.south west) node[left=1em] Users;
endtikzpicture
enddocument


enter image description here




I don't nest tables, but use a multirow to center "Movies" and "Users":



documentclassarticle
usepackagexcolor
usepackagearray
usepackagemultirow
renewcommandarraystretch1.5
begindocument
sffamily
begintabularc
&multicolumn1c & multicolumn8cMovies\
&multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ cline3-10
multirow6*Users&1 & & 5 & & 2 & 4 & & & \ cline3-10
&2 & 4 & & 3 & 1 & & & 3 & \ cline3-10
&3 & & 5 & 4 & & 5 & & 4 &\ cline3-10
&4 & & & & & & 1 & 1 & 2 \ cline3-10
&5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ cline3-10
&6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ cline3-10
endtabular
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 mins ago

























answered 32 mins ago









JouleVJouleV

12.1k22662




12.1k22662












  • You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

    – naveganteX
    30 mins ago











  • @naveganteX and it can do much more. Welcome to TeX.SE!

    – JouleV
    29 mins ago

















  • You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

    – naveganteX
    30 mins ago











  • @naveganteX and it can do much more. Welcome to TeX.SE!

    – JouleV
    29 mins ago
















You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

– naveganteX
30 mins ago





You are the man! Thank you so much! I had heard about TikZ but I didn't know it had these capabilities!

– naveganteX
30 mins ago













@naveganteX and it can do much more. Welcome to TeX.SE!

– JouleV
29 mins ago





@naveganteX and it can do much more. Welcome to TeX.SE!

– JouleV
29 mins ago











3














You can nest tables.



documentclassbeamer
usepackagexcolor
usepackagearray
usepackagehhline
begindocument
beginframe[t]
frametitleTables can be nested
begintabularcc
& Movies\
Users&
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular
endtabular
endframe
enddocument


enter image description here






share|improve this answer























  • Thank you very much!

    – naveganteX
    28 mins ago















3














You can nest tables.



documentclassbeamer
usepackagexcolor
usepackagearray
usepackagehhline
begindocument
beginframe[t]
frametitleTables can be nested
begintabularcc
& Movies\
Users&
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular
endtabular
endframe
enddocument


enter image description here






share|improve this answer























  • Thank you very much!

    – naveganteX
    28 mins ago













3












3








3







You can nest tables.



documentclassbeamer
usepackagexcolor
usepackagearray
usepackagehhline
begindocument
beginframe[t]
frametitleTables can be nested
begintabularcc
& Movies\
Users&
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular
endtabular
endframe
enddocument


enter image description here






share|improve this answer













You can nest tables.



documentclassbeamer
usepackagexcolor
usepackagearray
usepackagehhline
begindocument
beginframe[t]
frametitleTables can be nested
begintabularcc
& Movies\
Users&
begintabular c


multicolumn1c & multicolumn1c1 & multicolumn1c2
& multicolumn1c3 & multicolumn1c4 & multicolumn1c5
& multicolumn1c6 & multicolumn1c7 & multicolumn1c8 \ hhline
1 & & 5 & & 2 & 4 & & & \ hhline
2 & 4 & & 3 & 1 & & & 3 & \ hhline
3 & & 5 & 4 & & 5 & & 4 &\ hhline
4 & & & & & & 1 & 1 & 2 \ hhline
5 & 3 & & colorbluetextbf? & & colorbluetextbf? & 3 & & 0 \ hhline
6 & & colorbluetextbf? & 2 & & 4 & &colorbluetextbf? & \ hhline
endtabular
endtabular
endframe
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 31 mins ago









marmotmarmot

116k5149281




116k5149281












  • Thank you very much!

    – naveganteX
    28 mins ago

















  • Thank you very much!

    – naveganteX
    28 mins ago
















Thank you very much!

– naveganteX
28 mins ago





Thank you very much!

– naveganteX
28 mins ago










naveganteX is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















naveganteX is a new contributor. Be nice, and check out our Code of Conduct.












naveganteX is a new contributor. Be nice, and check out our Code of Conduct.











naveganteX 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484051%2fadding-labels-to-a-table-columns-and-rows%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

名間水力發電廠 目录 沿革 設施 鄰近設施 註釋 外部連結 导航菜单23°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.7113923°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.71139計畫概要原始内容臺灣第一座BOT 模式開發的水力發電廠-名間水力電廠名間水力發電廠 水利署首件BOT案原始内容《小檔案》名間電廠 首座BOT水力發電廠原始内容名間電廠BOT - 經濟部水利署中區水資源局

Prove that NP is closed under karp reduction?Space(n) not closed under Karp reductions - what about NTime(n)?Class P is closed under rotation?Prove or disprove that $NL$ is closed under polynomial many-one reductions$mathbfNC_2$ is closed under log-space reductionOn Karp reductionwhen can I know if a class (complexity) is closed under reduction (cook/karp)Check if class $PSPACE$ is closed under polyonomially space reductionIs NPSPACE also closed under polynomial-time reduction and under log-space reduction?Prove PSPACE is closed under complement?Prove PSPACE is closed under union?

Is my guitar’s action too high? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Strings too stiff on a recently purchased acoustic guitar | Cort AD880CEIs the action of my guitar really high?Μy little finger is too weak to play guitarWith guitar, how long should I give my fingers to strengthen / callous?When playing a fret the guitar sounds mutedPlaying (Barre) chords up the guitar neckI think my guitar strings are wound too tight and I can't play barre chordsF barre chord on an SG guitarHow to find to the right strings of a barre chord by feel?High action on higher fret on my steel acoustic guitar