I've got a table with pictures in them, a generic version of which is below. When I compile this, whether I use longtable or tabular, the text entries are aligned at the bottoms of their respective cells, with the baseline of the figures. I would like for them to be centered vertically. On the last lines, where there are two figures, but only one label, the names are properly centered vertically in their multirow cells. I tried doing \multirow{1}{*}{name4}, but to no avail.
loading the array package, allows you to use m{<length>} in the declaration for the format table; refer to the package documentation for further information. Take a look at the following simple example:
Remark: I used the demo option for the graphicx package to make the example compilable for everyone. Don't forget to not include that option in your actual document.
Almost perfect! However, the code above fixes the column widths, whereas before the widths were calculated on the fly. Is there a way for the widths to be variable, or do I just need to mess with it until they're right?
The tabulary package calculates column widths based on the contents; however, since you want vertical alignment inside cells, as far as I know, you have to use the m{..} declaration and determine the widths manually .
I tried GMedina's code with a bit simplification.
Unfortunately, the contents in the cells are still not vertically aligned.
Please look at my screenshot below: