I want to place an image with includegraphics in a multirow table cell in a tabularx, and it shall be vertically aligned with the top of the cell.

Example with a rule instead of the image:

    \documentclass[11pt, a4paper]{scrartcl}
\usepackage[TS1, T1]{fontenc}


\begin{tabularx}{\textwidth}{@{}p{3cm} X r}  \hline
\multicolumn{2}{@{}l}{{\huge{}My Beautiful Text}} & 
a & b\\[6pt]
a & b\\[6pt]
a & b\\[6pt]
a & b\\[6pt]
a & b


Screenshot of PDF: enter image description here

How can I place the image directly at the \hline (identical with the top of the line where multirow is defined)?

EDIT to explain my "real" purpose:

  • In the real document, there is no hline at the top of the tabularx (I only added the hline to better view the top of the cells),
    but I'd like the inserted image to be aligned with the top of the text, as it does not look good IMHO if the image which spans over the whole height of the table starts below the text.
    (the original document contains personal data, so I tried to construct an artificial minimal example.)
  • the first line of the table is the only one with huge font size (heading), all the others are normalsize.
  • *
  • What's the purpose of this?
    – egreg
    Commented Jan 24, 2012 at 14:59
  • I've edited the question to explain what the "real" purpose is. Commented Jan 24, 2012 at 16:22
  • See the edited answer.
    – egreg
    Commented Jan 24, 2012 at 16:31

2 Answers 2


The \huge command raises the row height, but \multirow doesn't respect it. It would work if you would place \huge before the tabular environment. This would affect the cells, but you could use >{\normalsize} for the column specifiers. Yet the rows would be higher.

\multicolumn{2}{@{}l}{{\huge{}My Beautiful Text}} & 


multirow adjusted

Alternatively, use the optional fixup height argument for raising the image:


With a fixup height you could compensate that you actually use different row heights.

  • How can you avoid the increment of row height while maintaining the image height you desire. As i can see in your example above, there is a shift of about 1cm up of "My Beautiful Text" from the text a & b.
    – azetina
    Commented Jan 24, 2012 at 15:14
  • That's why I recommend simply using a fixup value. 5pt works fine in the example.
    – Stefan Kottwitz
    Commented Jan 24, 2012 at 15:25
  • @Stefan I finally chose the manual method with the fixup value, as there seems to be no "automatic" solution which does not involve typing by hand the height of the \huge text, if I understand your and egreg's solution Commented Jan 26, 2012 at 21:46

A different approach is to put the image outside the tabular. We lower the image by its height minus the height of the strut in \huge size. The tabularx is "top aligned", so the image will be lined up with the first row; the depth of the box is made a bit longer (1ex) to help with the spacing underneath.

     \rule{4cm}{6.5cm}% put the image here


\noindent\begin{tabularx}{\dimexpr\textwidth-6.5cm\relax}[t]{@{}p{3cm} X}
\multicolumn{2}{@{}l}{\huge\strut My Beautiful Text} \\[24pt]
a & b\\[6pt]
a & b\\[6pt]
a & b\\[6pt]
a & b\\[6pt]
a & b

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .