[texhax] Using multirow and p{}

brad m mail_2brad at yahoo.co.nz
Mon Mar 6 00:41:35 CET 2006


Hi there

I have googled and searched the archives, but can't
see any mention of this issue. The below code works
fine either without *multirow* or without the *p{}*
alignment, but not when both included (ie the multirow
then doesn't work). Can it be done / is there an
alternative?

Thanks in advance
Brad

\documentclass[a4paper]{article}
\usepackage{multirow}

\begin{document}

% change 'p{3cm}' to 'c' and it works fine
\begin{tabular}{|c|p{3cm}|}
\hline
\multirow{3}*{Spanned}
 & Row number one\\
 & Row number two, a particularly long row that will
need to wrap\\
 & Row number three\\
\hline
\end{tabular}

\end{document}

Send instant messages to your online friends http://au.messenger.yahoo.com 



More information about the texhax mailing list