I have a tabularx table using multirow and with all columns vertically centered. Here's the table:



\multirow{2}{*}{\includegraphics[width=2.5cm]{logo}} &
\multirow{2}{*}{\Large{Title of this document}} &
    Doc.ref. &\\
& & Revision &\\

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?

  • Couldn't one add a zero-width column, without border and a forced height? – zrajm Apr 10 at 10:09

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.

  \raisebox{\dimexpr-\height+.5\normalbaselineskip} %
  \usebox{\customimg} &
  \addstackgap[\bufferA]{\Large{Title of this document}} &
      \addstackgap[\bufferB]{\makebox[3.0cm]{Doc.ref.}} \\
   \addstackgap[\bufferB]{Revision} \\

enter image description here

| improve this answer | |
  • But is it necessary to specify all of the gaps manually? The problem is that this is for a template; the "title of the document" will be filled in later, and it may take more than one row. I tried using addstackgap only to the "image" cell or to the "doc.ref" and "revision" cells and it still didn't work.. – Grodriguez Jun 25 '15 at 17:02
  • @Grodriguez you did not mention that the requirement is for a template, which implies no manual intervention. My solution fails that test. For that reason, I shall delete my answer. – Steven B. Segletes Jun 25 '15 at 17:24
  • Sorry. I did not realize that this would make a difference. I am still surprised there is no easy solution to what it would seem to be a very common problem.. – Grodriguez Jun 25 '15 at 17:28
  • @Grodriguez Please see revision. – Steven B. Segletes Jun 25 '15 at 18:34
  • Wow. Lots to study here :-) – Grodriguez Jun 25 '15 at 19:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.