[Tex/LaTex] Vertical alignment of image in multirow column in tabularx at the top of the cell

multirowtablesvertical alignment

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.
  • *

Best Answer

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.