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:



enter image description here



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!










share|improve this question







New contributor




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
























    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:



    enter image description here



    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!










    share|improve this question







    New contributor




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






















      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:



      enter image description here



      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!










      share|improve this question







      New contributor




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











      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:



      enter image description here



      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






      share|improve this question







      New contributor




      LatexGuy182 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




      LatexGuy182 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






      New contributor




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









      asked 2 days ago









      LatexGuy182

      82




      82




      New contributor




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





      New contributor





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






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






















          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}


          sample of MWE






          share|improve this answer








          New contributor




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


















          • 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


















          up vote
          0
          down vote













          i suspect that you looking for somthing like this:



          enter image description here



          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:



          enter image description here



          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}





          share|improve this answer























          • 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











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


          }
          });






          LatexGuy182 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%2f460833%2fhow-to-vertically-centre-an-image-in-a-vertically-merged-cell%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








          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}


          sample of MWE






          share|improve this answer








          New contributor




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


















          • 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















          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}


          sample of MWE






          share|improve this answer








          New contributor




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


















          • 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













          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}


          sample of MWE






          share|improve this answer








          New contributor




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









          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}


          sample of MWE







          share|improve this answer








          New contributor




          aoi 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 answer



          share|improve this answer






          New contributor




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









          answered 2 days ago









          aoi

          264




          264




          New contributor




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





          New contributor





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






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












          • 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


















          • 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
















          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










          up vote
          0
          down vote













          i suspect that you looking for somthing like this:



          enter image description here



          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:



          enter image description here



          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}





          share|improve this answer























          • 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















          up vote
          0
          down vote













          i suspect that you looking for somthing like this:



          enter image description here



          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:



          enter image description here



          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}





          share|improve this answer























          • 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













          up vote
          0
          down vote










          up vote
          0
          down vote









          i suspect that you looking for somthing like this:



          enter image description here



          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:



          enter image description here



          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}





          share|improve this answer














          i suspect that you looking for somthing like this:



          enter image description here



          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:



          enter image description here



          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}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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


















          • 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










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










           

          draft saved


          draft discarded


















          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.















           


          draft saved


          draft discarded














          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





















































          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