I'm trying to have get a background color at my tables consisting of both multirows
and multicolums
. Without any color, the table works fine. But what I want to color expands over variable amounts of rows. I've tried to color four rows with the same color, with one cell stretching over four rows and one cell stretching over two rows.
But if I do that the second coloring, applies the color on top of the multirow text.
As you can see, the second line of rowcolor
removes the upper part of 'Grade' from cell 1
and third row color removed the lower part of 'Grade' and lower part of Thickness. Any solution ideas?
my tex:
\begin{table}[ht]
\begin{tabular}{|c|c|lll|}
\hline
\rowcolor{blue!20}
\multirow{4}{*}{Grades}&Yield&\multicolumn{3}{c|}{Impact bending test}\\
\rowcolor{blue!20}
&Strength&\multirow{2}{*}{Thickness}&Test& Impact\\
\rowcolor{blue!20}
&$\mathbf{R_e[N/mm^2]}$& &{\bf temperature} & {\bf work}\\
\rowcolor{blue!20}
&\bf{transv.min.} &\bf{ transv.} &$\mathbf{[\grader]}$ & {\bf [J]} \\\hline
\multirow{ 1}{*}{{\bf DH36}} & & {\bf 5.5 – 7.0} & {\bf -40} & {\bf 24} \\
\hline
\end{tabular}
\end{table}
\documentclass{...}
, with necessary packages and your new commands definitions and ending withend{document}
. In present state it is not possible to compile. Welcome to site!