I'm a complete beginner in LaTeX and I've run into some trouble with creating a table. I have a table where I've aligned my numbers on the decimal point (using @{.} to represent a "decimal column"). I'd like to shade certain cells gray but when I do this, the .dvi file will turn out alright, but the .pdf file will replace the digits to the left of the decimal with a "(".
Here's some sample code
Code: Select all
\documentclass[12pt,Bold,letterpaper]{article}
\usepackage{colortbl}
\begin{document}
\begin{table}[htbp]
\caption[Short.]
{Caption.}
\label{tab:table1}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\begin{center}
\begin{tabular}{lr@{.}lr@{.}lr@{.}lr@{.}lr@{.}lr@{.}lc}
\hline\hline
\multicolumn{1}{c}{A} & \multicolumn{2}{c}{B} & \multicolumn{2}{c}{C} & \multicolumn{2}{c}{D} & \multicolumn{2}{c}{E} & \multicolumn{2}{c}{F} & \multicolumn{2}{c}{G} & H\\
\hline
\emph{Line} &\cellcolor[gray]{0.9} \textbf{0} &\cellcolor[gray]{0.9}\textbf{235\footnotemark[1]} & 0&213\footnotemark[1] & 0&216\footnotemark[1] & 0&172 & 0&095 & 1&020 & blah\\
\emph{Line} & -0 & 235 & 0&213\footnotemark[1] & 0&216\footnotemark[1] & 0&172 & -0&095 & 1&020 & blah\\
\hline
\end{tabular}
\end{center}
\footnotemark[1]Significant
\end{table}
\end{document}
I've tried getting rid of the boldface and the footnote to see if that was the problem, but it's the same result. Oddly, if I just shade the cell with the "0" (and leave out the shading of "235", it will be alright for the 0. But if I just shade the "235" but not the "0", I get the same problem. And, finally, if I don't use the decimal centered alignment, then everything seems ok (so this will be my last resort).
Any suggestions? Thanks for any help!