I get a problem with the following table:
\begin{table}[H]
\newcommand{\ctab}{\centering\arraybackslash}
\definecolor{F1}{RGB}{255,255,255}
\definecolor{F0}{RGB}{210,0,0}
\definecolor{F2}{RGB}{0,176,80}
\resizebox{0.85\textwidth}{!}{\begin{tabular}{|c|c|c|c|c|c|}
\hline
\rule{0pt}{30pt}
\multicolumn{2}{|c|}{\cellcolor{gray!50}\huge{\textbf{a}}} &
%\cellcolor{gray!50}\huge{\textbf{a}} &
%\cellcolor{gray!50}\huge{\textbf{}} &
\cellcolor{gray!50}\huge{\textbf{b}} &
\cellcolor{gray!50}\huge{\textbf{C}} &
\cellcolor{gray!50}\huge{$\mathbf{d}$} &
\cellcolor{gray!50}\huge{$\mathbf{e}$}
\\
\end{tabular}}
\caption{XY}
\label{tab:XY}
\end{table}
Problems are with the multicolumn. If I change to:
%\multicolumn{2}{|c|}{\cellcolor{gray!50}\huge{\textbf{a}}} &
\cellcolor{gray!50}\huge{\textbf{a}} &
\cellcolor{gray!50}\huge{\textbf{}} &
It does work...
Where is the Problem?
Thanks!
\huge
is necessary to highlight the top row (it's coloured already). Also I personally dislike vertical lines in tables (and know several other people who share my opinion on that). You might take a look at thebooktabs
package for prettier horizontal rules (but they tend to break the vertical rules and\rowcolor
/\cellcolor
). – Skillmon Jun 30 '17 at 9:05