Beamer: Multirow in fancy table
up vote
1
down vote
favorite
Following up on this question I asked some time ago, I am facing a similar scenario, but for the life of me I do not seem to get it right with the solution provided in the question above, and I have no clue...
The following is a MWE, all I want to do is to merge rows vertically (multirow), so that "Preventative impacts of RA" and its corresponding "G5 vehicle UVB 40h" span 4 rows, and "Preventative impacts of RP" and its corresponding "G5 vehicle UVB 40h" span 3 rows.
How should I do it? Many thanks!!
documentclass[xcolor={dvipsnames,table}]{beamer}
%%TABLE
usepackage{multirow}
newcommand*{arraycolor}[1]{protectleavevmodecolor{#1}}
newcolumntype{A}{>{columncolor{red!20}}c}
newcolumntype{B}{>{columncolor{blue!20}}c}
mode<presentation> {
usetheme[compress]{Singapore}
usecolortheme{orchid}
}
begin{document}
begin{frame}
sffamily
arrayrulecolor{white}
arrayrulewidth=1pt
renewcommand{arraystretch}{1}
rowcolors[hline]{2}{.!50!White}{}
resizebox{linewidth}{!}{%
begin{tabular}{A|B|A}
rowcolor{.!50!Black}
arraycolor{White}bfseries {footnotesize Question} & arraycolor{White}bfseries {footnotesize A} & arraycolor{White}bfseries {footnotesize B}\
bfseries {scriptsize UVB impact on primary keratinocytes} & {scriptsize G5 vehicle UVB 40h} & {scriptsize G6 vehicle noUVB 40h}\
bfseries {scriptsize Preventative impact of RA} & {scriptsize G1 RA_1nM UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G1 RA_10nM UVB 40h} &\
& {scriptsize G1 RA_100nM UVB 40h} &\
& {scriptsize G1 RA_1$mu$M UVB 40h} &\
bfseries {scriptsize Preventative impacts of RP} & {scriptsize G2 RP_0.1$mu$M UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G2 RP_1$mu$M UVB 40h} &\
& {scriptsize G2 RP_10$mu$M 40h} &\
end{tabular}
}%
end{frame}
end{document}
tables beamer multirow
add a comment |
up vote
1
down vote
favorite
Following up on this question I asked some time ago, I am facing a similar scenario, but for the life of me I do not seem to get it right with the solution provided in the question above, and I have no clue...
The following is a MWE, all I want to do is to merge rows vertically (multirow), so that "Preventative impacts of RA" and its corresponding "G5 vehicle UVB 40h" span 4 rows, and "Preventative impacts of RP" and its corresponding "G5 vehicle UVB 40h" span 3 rows.
How should I do it? Many thanks!!
documentclass[xcolor={dvipsnames,table}]{beamer}
%%TABLE
usepackage{multirow}
newcommand*{arraycolor}[1]{protectleavevmodecolor{#1}}
newcolumntype{A}{>{columncolor{red!20}}c}
newcolumntype{B}{>{columncolor{blue!20}}c}
mode<presentation> {
usetheme[compress]{Singapore}
usecolortheme{orchid}
}
begin{document}
begin{frame}
sffamily
arrayrulecolor{white}
arrayrulewidth=1pt
renewcommand{arraystretch}{1}
rowcolors[hline]{2}{.!50!White}{}
resizebox{linewidth}{!}{%
begin{tabular}{A|B|A}
rowcolor{.!50!Black}
arraycolor{White}bfseries {footnotesize Question} & arraycolor{White}bfseries {footnotesize A} & arraycolor{White}bfseries {footnotesize B}\
bfseries {scriptsize UVB impact on primary keratinocytes} & {scriptsize G5 vehicle UVB 40h} & {scriptsize G6 vehicle noUVB 40h}\
bfseries {scriptsize Preventative impact of RA} & {scriptsize G1 RA_1nM UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G1 RA_10nM UVB 40h} &\
& {scriptsize G1 RA_100nM UVB 40h} &\
& {scriptsize G1 RA_1$mu$M UVB 40h} &\
bfseries {scriptsize Preventative impacts of RP} & {scriptsize G2 RP_0.1$mu$M UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G2 RP_1$mu$M UVB 40h} &\
& {scriptsize G2 RP_10$mu$M 40h} &\
end{tabular}
}%
end{frame}
end{document}
tables beamer multirow
1
Please don't useresizebox
for elements that contain text, you will end up with a suboptimal font size, see tex.stackexchange.com/questions/425453/… for further information
– samcarter
yesterday
Which colour should the resulting cell have?
– samcarter
yesterday
the multicol cells should have the color of the first single cell the text appears (here in all cases light pink)
– DaniCee
yesterday
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Following up on this question I asked some time ago, I am facing a similar scenario, but for the life of me I do not seem to get it right with the solution provided in the question above, and I have no clue...
The following is a MWE, all I want to do is to merge rows vertically (multirow), so that "Preventative impacts of RA" and its corresponding "G5 vehicle UVB 40h" span 4 rows, and "Preventative impacts of RP" and its corresponding "G5 vehicle UVB 40h" span 3 rows.
How should I do it? Many thanks!!
documentclass[xcolor={dvipsnames,table}]{beamer}
%%TABLE
usepackage{multirow}
newcommand*{arraycolor}[1]{protectleavevmodecolor{#1}}
newcolumntype{A}{>{columncolor{red!20}}c}
newcolumntype{B}{>{columncolor{blue!20}}c}
mode<presentation> {
usetheme[compress]{Singapore}
usecolortheme{orchid}
}
begin{document}
begin{frame}
sffamily
arrayrulecolor{white}
arrayrulewidth=1pt
renewcommand{arraystretch}{1}
rowcolors[hline]{2}{.!50!White}{}
resizebox{linewidth}{!}{%
begin{tabular}{A|B|A}
rowcolor{.!50!Black}
arraycolor{White}bfseries {footnotesize Question} & arraycolor{White}bfseries {footnotesize A} & arraycolor{White}bfseries {footnotesize B}\
bfseries {scriptsize UVB impact on primary keratinocytes} & {scriptsize G5 vehicle UVB 40h} & {scriptsize G6 vehicle noUVB 40h}\
bfseries {scriptsize Preventative impact of RA} & {scriptsize G1 RA_1nM UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G1 RA_10nM UVB 40h} &\
& {scriptsize G1 RA_100nM UVB 40h} &\
& {scriptsize G1 RA_1$mu$M UVB 40h} &\
bfseries {scriptsize Preventative impacts of RP} & {scriptsize G2 RP_0.1$mu$M UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G2 RP_1$mu$M UVB 40h} &\
& {scriptsize G2 RP_10$mu$M 40h} &\
end{tabular}
}%
end{frame}
end{document}
tables beamer multirow
Following up on this question I asked some time ago, I am facing a similar scenario, but for the life of me I do not seem to get it right with the solution provided in the question above, and I have no clue...
The following is a MWE, all I want to do is to merge rows vertically (multirow), so that "Preventative impacts of RA" and its corresponding "G5 vehicle UVB 40h" span 4 rows, and "Preventative impacts of RP" and its corresponding "G5 vehicle UVB 40h" span 3 rows.
How should I do it? Many thanks!!
documentclass[xcolor={dvipsnames,table}]{beamer}
%%TABLE
usepackage{multirow}
newcommand*{arraycolor}[1]{protectleavevmodecolor{#1}}
newcolumntype{A}{>{columncolor{red!20}}c}
newcolumntype{B}{>{columncolor{blue!20}}c}
mode<presentation> {
usetheme[compress]{Singapore}
usecolortheme{orchid}
}
begin{document}
begin{frame}
sffamily
arrayrulecolor{white}
arrayrulewidth=1pt
renewcommand{arraystretch}{1}
rowcolors[hline]{2}{.!50!White}{}
resizebox{linewidth}{!}{%
begin{tabular}{A|B|A}
rowcolor{.!50!Black}
arraycolor{White}bfseries {footnotesize Question} & arraycolor{White}bfseries {footnotesize A} & arraycolor{White}bfseries {footnotesize B}\
bfseries {scriptsize UVB impact on primary keratinocytes} & {scriptsize G5 vehicle UVB 40h} & {scriptsize G6 vehicle noUVB 40h}\
bfseries {scriptsize Preventative impact of RA} & {scriptsize G1 RA_1nM UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G1 RA_10nM UVB 40h} &\
& {scriptsize G1 RA_100nM UVB 40h} &\
& {scriptsize G1 RA_1$mu$M UVB 40h} &\
bfseries {scriptsize Preventative impacts of RP} & {scriptsize G2 RP_0.1$mu$M UVB 40h} & {scriptsize G5 vehicle UVB 40h}\
& {scriptsize G2 RP_1$mu$M UVB 40h} &\
& {scriptsize G2 RP_10$mu$M 40h} &\
end{tabular}
}%
end{frame}
end{document}
tables beamer multirow
tables beamer multirow
edited yesterday
asked yesterday
DaniCee
92911233
92911233
1
Please don't useresizebox
for elements that contain text, you will end up with a suboptimal font size, see tex.stackexchange.com/questions/425453/… for further information
– samcarter
yesterday
Which colour should the resulting cell have?
– samcarter
yesterday
the multicol cells should have the color of the first single cell the text appears (here in all cases light pink)
– DaniCee
yesterday
add a comment |
1
Please don't useresizebox
for elements that contain text, you will end up with a suboptimal font size, see tex.stackexchange.com/questions/425453/… for further information
– samcarter
yesterday
Which colour should the resulting cell have?
– samcarter
yesterday
the multicol cells should have the color of the first single cell the text appears (here in all cases light pink)
– DaniCee
yesterday
1
1
Please don't use
resizebox
for elements that contain text, you will end up with a suboptimal font size, see tex.stackexchange.com/questions/425453/… for further information– samcarter
yesterday
Please don't use
resizebox
for elements that contain text, you will end up with a suboptimal font size, see tex.stackexchange.com/questions/425453/… for further information– samcarter
yesterday
Which colour should the resulting cell have?
– samcarter
yesterday
Which colour should the resulting cell have?
– samcarter
yesterday
the multicol cells should have the color of the first single cell the text appears (here in all cases light pink)
– DaniCee
yesterday
the multicol cells should have the color of the first single cell the text appears (here in all cases light pink)
– DaniCee
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f460686%2fbeamer-multirow-in-fancy-table%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
1
Please don't use
resizebox
for elements that contain text, you will end up with a suboptimal font size, see tex.stackexchange.com/questions/425453/… for further information– samcarter
yesterday
Which colour should the resulting cell have?
– samcarter
yesterday
the multicol cells should have the color of the first single cell the text appears (here in all cases light pink)
– DaniCee
yesterday