I have a tabularx table using multirow
and with all columns vertically centered. Here's the table:
\usepackage{multirow,tabularx}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{N}{@{}m{0pt}@{}}
\def\tabularxcolumn#1{C{#1}}
\begin{tabularx}{\textwidth}{|C{3cm}|X|C{3cm}|N}
\hline
\multirow{2}{*}{\includegraphics[width=2.5cm]{logo}} &
\multirow{2}{*}{\Large{Title of this document}} &
Doc.ref. &\\
\cline{3-3}
& & Revision &\\
\hline
\end{tabularx}%
I am looking for a way to force a minimum row height for a specific row in this table, but everything I tried didn't work for one reason or another.
\setlength{\extrarowheight}{1cm}
breaks vertical alignment of the rightmost cells (they will not be vertically centered anymore)- Adding extra space when breaking the rows, e.g.
&\\[1cm]
breaks vertical alignment of the first two cells (the ones using\multirow
) - Increasing the array stretch factor (e.g.
\renewcommand{\arraystretch}{2.5}
) doesn't seem to play nice with vertical alignments (it seems to push the contents of the cells below the vertical center)
Update: Manually adjusting positions will not work as this is a template — the actual document title is filled in later and may take one or two lines.
Any other ideas?
Best Answer
REVISED solution, which eliminates the
multirow
, instead using a nested tabulars. RE-REVISED to consolidate everything into\makemytable{height}
, just to allow easier play-testing with various heights.Here I just
\addstackgap[<length>]{object}
in order to add a vertical buffer above and below objects on that row. Buffer size added depends automatically upon the height of the inserted image.