title: Vertically align figures in table cells?
body: <p>I am trying to design a somewhat complex table (sidewaystable) with with 7 rows and 4 columns in LaTeX. The table contains text, bibtex-citations, and most importantly figures within cells (currently the figures are jpeg for testing purposes, ultimately I want to change them to PDF). The figures are very closely cropped (on purpose).</p>
  
  <p>I have most of the table layout as I want it to be, but the figures are aligned at the top of the cells! This looks ugly and I need to align them vertically and horizontally within their cells.</p>
  
  <p>I tried several things (parbox, manually defining a new columntype for the array package...) but simply can't figure out how to do it.</p>
  
  <p>Here is how the latex-sourcecode of my table basically looks like (text replaced with mockup text):</p>
  
  <pre><code>    % THE TABLE
  \begin{sidewaystable}\footnotesize
     \begin{tabular}{| p{3cm} | c | p{6cm} | p{4cm} |}
      \hline
      column1description &amp; column2description &amp; TypeOfOrganism &amp; column4description\\ \hline
      \hline
      Diagram1title &amp; \includegraphics[scale=0.25]{vector_figures/mockup_001.jpg} &amp; description1 &amp; {\em S.\ cerevisiae, E.\ coli}\\ \hline
      Diagram2title &amp; \includegraphics[scale=0.25]{vector_figures/mockup_002.jpg} &amp; description2 &amp; {\em S.\ cerevisiae, E.\ coli}\\ \hline
      Diagram3title &amp; \includegraphics[scale=0.25]{vector_figures/mockup_003.jpg} &amp; description3 &amp; {\em S.\ cerevisiae, E.\ coli}\\ \hline
      Diagram4title &amp; \includegraphics[scale=0.25]{vector_figures/mockup_004.jpg} &amp; description4 &amp; {\em S.\ cerevisiae}\\ \hline
      Diagram5title &amp; \includegraphics[scale=0.25]{vector_figures/mockup_005.jpg} &amp; description5 &amp; {\em S.\ cerevisiae}\\ \hline
      Diagram6title &amp; \includegraphics[scale=0.25]{vector_figures/mockup_006.jpg} &amp; description6 &amp; {\em S.\ cerevisiae}\\ \hline
  
    \end{tabular}
  
    \caption[Diagrams and their descriptions]{\textbf{ Diagrams and their descriptions} Some diagrams with interesting descriptions}\label{tab:table2}.
  
  \end{sidewaystable}
  </code></pre>
  
  <p>I would be very thankful if someone could give me some information on how to align the figures vertically as well as horizontally within their cells.</p>
  
  <p>I.e. the figures need to be in each cell so that the space above and below the figure to the respective cell borders, and left and right to the respective cell borders, is the same.</p>
  
  <p>(I found a few pages about this or related table layout problems but could not understand what to actually do.)</p>