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}


test










share|improve this question




















  • 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















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}


test










share|improve this question




















  • 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













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}


test










share|improve this question















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}


test







tables beamer multirow






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday

























asked yesterday









DaniCee

92911233




92911233








  • 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














  • 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








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















active

oldest

votes











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',
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
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt