Graphics, Figures & TablesTable Row Shading problem with \multirow

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
raza2u
Posts: 2
Joined: Thu May 07, 2009 10:08 am

Table Row Shading problem with \multirow

Post by raza2u »

Hi
I am new at this forum as well as beginner with Latex environment.
I have a problem with row shadings of a Table in Latex. Can anybody
please help me?
In fact the problem is with "\multirow". After sahding a row
containing \multirow (merged) cells, when I shade the next row, half
of the text written in the merged cells of previous row disappears
behind the shade
. Similarly table lines of shaded rows also disappear.
The Code is given as:
%%%
%--------------------------------------------------------------------
\documentclass[a4paper,12pt,onecolumn]{article}
\usepackage{multirow}
\usepackage{colortbl, pstricks, colortab}
\providecommand{\shadeRow}{\rowcolor[rgb]{0.9, 0.9, 0.9}}
\begin{document}
\centering
\begin{tabular}{|c|c|c|c|}
\hline
T1 & T2 & T3 & T4\\
\hline
\shadeRow
\multirow{2}{10mm}{\centering A} & B1 & C1 & \multirow{2}{10mm}
{\centering D}\\
\cline{2-3}
\shadeRow
& B2 & C2 & \\
\hline
\end{tabular}
\end{documen}
%%%
%--------------------------------------------------------------------
I also tried to shade individual cells by using \LCC...\ECC routines
but got the same results.
Would be highly thankful for your help.
Raza, France

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply