How to Vertically Centre an Image in a Vertically Merged Cell
up vote
1
down vote
favorite
I am trying to centre an image within a table so that it is centered vertically within the table between two rows.
Here is an image of what it looks like at the moment:
But I want it for the picture to be located at the same height as the Number 1 to the left of it.
Here is the code used:
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& includegraphics[align=c,scale=0.125]{Ben/Pictures/aircraft-bearing-bracket-FEM.jpg} & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
Thanks in Advance!
tables graphics vertical-alignment alignment
New contributor
add a comment |
up vote
1
down vote
favorite
I am trying to centre an image within a table so that it is centered vertically within the table between two rows.
Here is an image of what it looks like at the moment:
But I want it for the picture to be located at the same height as the Number 1 to the left of it.
Here is the code used:
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& includegraphics[align=c,scale=0.125]{Ben/Pictures/aircraft-bearing-bracket-FEM.jpg} & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
Thanks in Advance!
tables graphics vertical-alignment alignment
New contributor
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to centre an image within a table so that it is centered vertically within the table between two rows.
Here is an image of what it looks like at the moment:
But I want it for the picture to be located at the same height as the Number 1 to the left of it.
Here is the code used:
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& includegraphics[align=c,scale=0.125]{Ben/Pictures/aircraft-bearing-bracket-FEM.jpg} & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
Thanks in Advance!
tables graphics vertical-alignment alignment
New contributor
I am trying to centre an image within a table so that it is centered vertically within the table between two rows.
Here is an image of what it looks like at the moment:
But I want it for the picture to be located at the same height as the Number 1 to the left of it.
Here is the code used:
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& includegraphics[align=c,scale=0.125]{Ben/Pictures/aircraft-bearing-bracket-FEM.jpg} & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
Thanks in Advance!
tables graphics vertical-alignment alignment
tables graphics vertical-alignment alignment
New contributor
New contributor
New contributor
asked 2 days ago
LatexGuy182
82
82
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
Right now, you use multirow{-2}{*}{}
where you want the vertically centered image, and you place the image itself in the second row of the table without trying to put it in a multirow. Compilable example (the packages and options are guesses, based on commands in your table):
documentclass{article}
usepackage[table]{xcolor}
usepackage{multicol}
usepackage{multirow}
usepackage{booktabs}
usepackage{graphicx}
usepackage{graphbox}
usepackage{cellspace}
usepackage{float}
usepackage{duckuments}%for the duck image
begin{document}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{hfilincludegraphics[align=c,scale=.125]{example-image-duck}hfil} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
end{document}
New contributor
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Text in your comment field? You might want to switch that column type fromc
top{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables
– aoi
yesterday
add a comment |
up vote
0
down vote
i suspect that you looking for somthing like this:
usepackage[table]{xcolor}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
Iteration
& Design & & Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
cmidrule(l){3-6}
multirow{-2.4}{*}{1}
& multirow{-2.4}{*}{includegraphics[scale=0.25, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2.4}{*}{2}
& multirow{-2.4}{*}{imege?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
however, look of this table is awful (to my taste, of course). i would remove all vertical lines, the most of horizontal rules and colors:
documentclass{article}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
begin{tabular}{@{}c cc c c l @{}}
toprule
Iteration
& multicolumn{2}{c}{Design}
& Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{1}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{2}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{3}
& multirow{-2.1}{*}{image?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Right now, you use multirow{-2}{*}{}
where you want the vertically centered image, and you place the image itself in the second row of the table without trying to put it in a multirow. Compilable example (the packages and options are guesses, based on commands in your table):
documentclass{article}
usepackage[table]{xcolor}
usepackage{multicol}
usepackage{multirow}
usepackage{booktabs}
usepackage{graphicx}
usepackage{graphbox}
usepackage{cellspace}
usepackage{float}
usepackage{duckuments}%for the duck image
begin{document}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{hfilincludegraphics[align=c,scale=.125]{example-image-duck}hfil} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
end{document}
New contributor
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Text in your comment field? You might want to switch that column type fromc
top{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables
– aoi
yesterday
add a comment |
up vote
1
down vote
accepted
Right now, you use multirow{-2}{*}{}
where you want the vertically centered image, and you place the image itself in the second row of the table without trying to put it in a multirow. Compilable example (the packages and options are guesses, based on commands in your table):
documentclass{article}
usepackage[table]{xcolor}
usepackage{multicol}
usepackage{multirow}
usepackage{booktabs}
usepackage{graphicx}
usepackage{graphbox}
usepackage{cellspace}
usepackage{float}
usepackage{duckuments}%for the duck image
begin{document}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{hfilincludegraphics[align=c,scale=.125]{example-image-duck}hfil} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
end{document}
New contributor
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Text in your comment field? You might want to switch that column type fromc
top{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables
– aoi
yesterday
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Right now, you use multirow{-2}{*}{}
where you want the vertically centered image, and you place the image itself in the second row of the table without trying to put it in a multirow. Compilable example (the packages and options are guesses, based on commands in your table):
documentclass{article}
usepackage[table]{xcolor}
usepackage{multicol}
usepackage{multirow}
usepackage{booktabs}
usepackage{graphicx}
usepackage{graphbox}
usepackage{cellspace}
usepackage{float}
usepackage{duckuments}%for the duck image
begin{document}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{hfilincludegraphics[align=c,scale=.125]{example-image-duck}hfil} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
end{document}
New contributor
Right now, you use multirow{-2}{*}{}
where you want the vertically centered image, and you place the image itself in the second row of the table without trying to put it in a multirow. Compilable example (the packages and options are guesses, based on commands in your table):
documentclass{article}
usepackage[table]{xcolor}
usepackage{multicol}
usepackage{multirow}
usepackage{booktabs}
usepackage{graphicx}
usepackage{graphbox}
usepackage{cellspace}
usepackage{float}
usepackage{duckuments}%for the duck image
begin{document}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
begin{table}[H]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
multicolumn{1}{|l|}{Iteration} & {color[HTML]{000000} Design} & multicolumn{1}{l|}{} & multicolumn{1}{l|}{Max Stress} & multicolumn{1}{l|}{Max Deflection} & Comment \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{1} & multirow{-2}{*}{hfilincludegraphics[align=c,scale=.125]{example-image-duck}hfil} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{2} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{3} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2}{*}{4} & multirow{-2}{*}{} & Case 2 & XX & XX & XX \ midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){2-6}
multirow{-2}{*}{5} & & Case 2 & XX & XX & XX \ bottomrule
end{tabular}
end{table}
end{document}
New contributor
New contributor
answered 2 days ago
aoi
264
264
New contributor
New contributor
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Text in your comment field? You might want to switch that column type fromc
top{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables
– aoi
yesterday
add a comment |
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Text in your comment field? You might want to switch that column type fromc
top{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables
– aoi
yesterday
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Text in your comment field? You might want to switch that column type from
c
to p{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables– aoi
yesterday
Text in your comment field? You might want to switch that column type from
c
to p{<width of the column>}
, and specify the width you want the column to have. The wikibook page may be of more use on this, as it describes options for vertically or horizontally centering the text. en.wikibooks.org/wiki/LaTeX/Tables– aoi
yesterday
add a comment |
up vote
0
down vote
i suspect that you looking for somthing like this:
usepackage[table]{xcolor}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
Iteration
& Design & & Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
cmidrule(l){3-6}
multirow{-2.4}{*}{1}
& multirow{-2.4}{*}{includegraphics[scale=0.25, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2.4}{*}{2}
& multirow{-2.4}{*}{imege?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
however, look of this table is awful (to my taste, of course). i would remove all vertical lines, the most of horizontal rules and colors:
documentclass{article}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
begin{tabular}{@{}c cc c c l @{}}
toprule
Iteration
& multicolumn{2}{c}{Design}
& Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{1}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{2}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{3}
& multirow{-2.1}{*}{image?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
add a comment |
up vote
0
down vote
i suspect that you looking for somthing like this:
usepackage[table]{xcolor}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
Iteration
& Design & & Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
cmidrule(l){3-6}
multirow{-2.4}{*}{1}
& multirow{-2.4}{*}{includegraphics[scale=0.25, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2.4}{*}{2}
& multirow{-2.4}{*}{imege?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
however, look of this table is awful (to my taste, of course). i would remove all vertical lines, the most of horizontal rules and colors:
documentclass{article}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
begin{tabular}{@{}c cc c c l @{}}
toprule
Iteration
& multicolumn{2}{c}{Design}
& Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{1}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{2}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{3}
& multirow{-2.1}{*}{image?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
add a comment |
up vote
0
down vote
up vote
0
down vote
i suspect that you looking for somthing like this:
usepackage[table]{xcolor}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
Iteration
& Design & & Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
cmidrule(l){3-6}
multirow{-2.4}{*}{1}
& multirow{-2.4}{*}{includegraphics[scale=0.25, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2.4}{*}{2}
& multirow{-2.4}{*}{imege?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
however, look of this table is awful (to my taste, of course). i would remove all vertical lines, the most of horizontal rules and colors:
documentclass{article}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
begin{tabular}{@{}c cc c c l @{}}
toprule
Iteration
& multicolumn{2}{c}{Design}
& Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{1}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{2}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{3}
& multirow{-2.1}{*}{image?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
i suspect that you looking for somthing like this:
usepackage[table]{xcolor}
definecolor{dblue}{RGB}{96,162,216}
definecolor{mblue}{RGB}{208,221,240}
definecolor{lblue}{RGB}{233,239,247}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
rowcolors{2}{lblue}{mblue}
begin{tabular}{@{}|c|l|c|c|c|l|@{}}rowcolor{dblue}
toprule
Iteration
& Design & & Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
cmidrule(l){3-6}
multirow{-2.4}{*}{1}
& multirow{-2.4}{*}{includegraphics[scale=0.25, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
midrule
& & Case 1 & XX & XX & XX \ cmidrule(l){3-6}
multirow{-2.4}{*}{2}
& multirow{-2.4}{*}{imege?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
however, look of this table is awful (to my taste, of course). i would remove all vertical lines, the most of horizontal rules and colors:
documentclass{article}
usepackage[export]{adjustbox}
usepackage{booktabs, multirow}
begin{document}
begin{table}[htb]
centering
begin{tabular}{@{}c cc c c l @{}}
toprule
Iteration
& multicolumn{2}{c}{Design}
& Max Stress & Max Deflection & Comment \
midrule
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{1}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{2}
& multirow{-2.1}{*}{includegraphics[scale=0.2, valign=c]{example-image-duck}}
& Case 2 & XX & XX & XX \
addlinespace
& & Case 1 & XX & XX & XX \
multirow{-2.1}{*}{3}
& multirow{-2.1}{*}{image?}
& Case 2 & XX & XX & XX \
bottomrule
end{tabular}
end{table}
end{document}
edited 2 days ago
answered 2 days ago
Zarko
116k865154
116k865154
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
add a comment |
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
Thanks for your help! This has solved the problem. One issue that still arises is that I cant seem to get the text to wrap. It just goes off the page. Cheers!
– LatexGuy182
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
which text? from your question this is not evident this problem. you should ask new question. also seeing wiert.me/2014/04/03/… could help in tables design ...
– Zarko
yesterday
add a comment |
LatexGuy182 is a new contributor. Be nice, and check out our Code of Conduct.
LatexGuy182 is a new contributor. Be nice, and check out our Code of Conduct.
LatexGuy182 is a new contributor. Be nice, and check out our Code of Conduct.
LatexGuy182 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%2f460833%2fhow-to-vertically-centre-an-image-in-a-vertically-merged-cell%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