I'm having a problem with making a "pretty" table
The intent is to have alternating light background colors with black text for normal rows to facilitate reading across, with the header having a blue background and white text to make it stand out, and having numbers line up on the decimal, with "nominal" columns being separated by vertical lines
I think these are the relevant lines of LaTeX code
\usepackage{color,colortbl}
\renewcommand{arrayrulewidth}{1.5}
\definecolor{headercolor}{rgb}{0.392,0.584,0.929}
\definecolor{oddrowcolor}{rgb}{0.961,1.000,0.980}
\definecolor{evenrowcolor}{rgb}{0.902,0.902,0.980}
\definecolor{white}{rgb}{1.0,1.0,1.0}
\begin{table}{!htbp}
\large
\begin{caption}
\begin{tabular}{|r@{.}l|r@{.}l|}
\hline
\multicolumn{2}{|c|}{\cellcolor{headercolor}{\color{white}{column 1 header}}} & \multicolumn{2}{|c|}{\cellcolor{headercolor}{\color{white}{column 2 header}}} \\
\hline
\rowcolor{oddrowcolor}
-0&333 & 1&444 \\
\rowcolor{evenrowcolor}
1&001 & 10.02 \\
\rowcolor{oddrowcolor}
0& & 401&32 \\
\hline
\end{tabular}
\end{center}
\caption{\label{table:example} Some caption.}
\end{table}
The problems I have are
\rowcolor
isn't playing nice with the align on decimal stuff (splitting the "nominal" column at the decimal and doingr@{.}l
for the alignment of "actual" columns making up a "nominal" column) basically the left half of the smallest digit in the left (with alignmentr
) actual column and the decimal point are being hidden- the vertical lines are showing up double thick in the header (twice as thick as in the normal rows)
I greatly appreciate if anyone can help me with this.
By the way, I'm compiling with a version of pdflatex
that shipped with redhat 5.X
(not sure what X is and I can't upgrade the machine's LaTeX because I'm not an administrator and it has to be compiled on this machine).
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem