I would really appreciate if someone can help me here. I am using the colortbl package to generate a table and the left border is missing and I have no clue how to get it back.
Here is my code:
Code: Select all
\begin{table}[!bht]
\begin{center}
\newcommand{\CTPanel}[1]{%
\multicolumn{1}{>{\columncolor{white}}l|}{#1}}
\newcommand{\CXPanel}[1]{%
\multicolumn{1}{>{\columncolor{USCgold}}c|}{#1}}
\newcommand{\CGRPanel}[1]{%
\multicolumn{1}{>{\columncolor{USCmaroon}}l|}{#1}}
\newcommand{\CGRRPanel}[1]{%
\multicolumn{1}{>{\columncolor{USCgrey2}}l|}{#1}}
\newcommand{\CGPanel}[1]{%
\multicolumn{1}{>{\columncolor{lawngreen}}l|}{#1}}
\setlength\fboxsep{3mm} \colorbox[cmyk]{0,0,0,0.15}{%
\begin{tabular}{lc|cc}
\hline
\CXPanel{Water content} & \CTPanel{--} & \CTPanel{Medium} & \CTPanel{Full} \\
\hline
\CXPanel{Air content} & \CTPanel{--} & \CTPanel{Medium} &\CTPanel{Large}\\
\hline
\hline
\CXPanel{Sample thickness} & \CTPanel{1/4"} & \CTPanel{1/2"} & \CTPanel{3/4"}\\
\hline
\CXPanel{Loading conditions} & \CTPanel{--} & \CTPanel{Compression} &\CTPanel{Tension}\\
\hline
\CXPanel{Notch width} & \CTPanel{0.02 inch} & \CTPanel{0.08 inch} & \CTPanel{>0.2 inch}\\
\hline
\CXPanel{Notch direction} & \CTPanel{Horizontal} & \CTPanel{Vertical} & \CTPanel{Mixed or none}\\
\hline
\CXPanel{Type of material} & \CTPanel{Plastic} & \CTPanel{Concrete/Metal} & \CTPanel{Composite}\\
\hline
\hline
\CXPanel{Visualization technique} & \CTPanel{Schlieren$^{\dagger}$} & \CTPanel{Photoelasticity$^{\dagger}$} &\CTPanel{Caustics}\\
\hline
\end{tabular}}
\end{center}
\caption{Experimental subtasks. $^{\dagger}$Can be simultaneous.}
\label{table:1}
\end{table}%
Veronica