I was wondering if there is any way to shade some cells in table without removing lines. I starged with this command
\cellcolor[gray]{0.9}
however upper line of the cell disapeard. Is there any better way to color some cells ?? PS I use longtable
Here is the code
\documentclass[a4paper,12pt]{mwrep}
\usepackage[MeX]{polski}
\usepackage[cp1250]{inputenc}
\usepackage[left=3.0cm,right=3cm,top=3.0cm,bottom=3.0cm]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{algorithmic}
\usepackage{colortbl}
\usepackage{dcolumn}
\usepackage{float}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage[centerlast]{caption}
\usepackage{multirow}
\usepackage[section] {placeins}
\usepackage{booktabs}
\usepackage{xcolor}
\linespread{1.3}
\begin{document}
\begin{longtable}{!{\vrule width 2pt}c!{\vrule width 2pt}c!{\vrule width 2pt}c|c|c!{\vrule width 2pt}c|c|c!{\vrule width 2pt}c!{\vrule width 2pt}c!{\vrule width 2pt}}
\caption{Zależność wydajności algorytmu od jego parametrów.}
\label{tab:parameters}
\\ \hline
\multirow{2}{*}{Parametr} & \multirow{2}{*}{Wartość} & \multicolumn{3}{|c!{\vrule width 2pt}}{\textbf{Czas[s]}} & \multicolumn{3}{|c!{\vrule width 2pt}}{$\rho_{a}$} \\ \cline{3-10}
& & Zestaw 1 & Zestaw 2 & Zestaw 3 & Zestaw 1 & Zestaw 2 & Zestaw 3 \\ \hline
\multirow{4}{*}{$\rho_{select}$} & 0.5 & 58.0 & 266.4 & 131.4 & 0.98 & 0.8 & 0.95 \\ \cline{2-10}
& 0.6 & 55.0 & 270.1 & 145.6 & 0.95 & 0.85 & 0.85 \\ \cline{2-10}
& \cellcolor[gray]{0.9} 0.7 & 55.3 & 256.6 & 143.1 & 0.99 & 0.75 & 0.90 \\ \cline{2-10}
& 0.8 & 72.0 & 347.2 & 156.9 & 1.00 & 0.87 & 0.97 \\ \hline
\end{longtable}
\end{document}






longtablefor others to work with. – Werner Aug 06 '11 at 23:36\clinecommand. – Werner Aug 07 '11 at 16:42