1

In the following table I want the \multicolumn cells hatched in the same way, but I cannot get it to work. For all the cells I now have grey, I would want them hatched with diagonal lines.

\documentclass[11pt]{article}
\usepackage[table,xcdraw]{xcolor}
\usepackage{multirow,float}

\begin{document}

\begin{table}[H]\begin{tabular}{c|c|c|c|c|c|c|c|}
\cline{2-8}
                                               &                              &                            & \multicolumn{4}{c|}{Control measures}                                                                                                                       &                          \\ \cline{4-7}
                                               & \multirow{-2}{*}{Identified} & \multirow{-2}{*}{Occurred} & Overview                                                          & Reason                & Executed                                   & Effect             & \multirow{-2}{*}{Lesson} \\ \hline
\multicolumn{1}{|c|}{}                         &                              &                            & ...                                                               & ...                   & *                                          & ...                & ...                      \\ \cline{4-8} 
\multicolumn{1}{|c|}{\multirow{-2}{*}{Risk A}} & \multirow{-2}{*}{*}          & \multirow{-2}{*}{*}        & ...                                                               & ...                   &                                            & ...                & ...                      \\ \hline
\multicolumn{1}{|c|}{}                         &                              &                            & \cellcolor[HTML]{C0C0C0}                                          &                       & \cellcolor[HTML]{C0C0C0}                   &                    &                          \\
\multicolumn{1}{|c|}{\multirow{-2}{*}{Risk B}} & \multirow{-2}{*}{*}          & \multirow{-2}{*}{}         & \multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}}                        & \multirow{-2}{*}{...} & \multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}} & \multirow{-2}{*}{} & \multirow{-2}{*}{...}    \\ \hline
\multicolumn{1}{|c|}{}                         &                              &                            & ...                                                               & ...                   & *                                          & ...                & ...                      \\ \cline{4-8} 
\multicolumn{1}{|c|}{\multirow{-2}{*}{Risk C}} & \multirow{-2}{*}{*}          & \multirow{-2}{*}{}         & ...                                                               & ...                   &                                            & ...                & ...                      \\ \hline
\multicolumn{1}{|c|}{}                         &                              &                            & \cellcolor[HTML]{C0C0C0}{\color[HTML]{9B9B9B} }                   &                       & \multicolumn{2}{c|}{\cellcolor[HTML]{C0C0C0}}                   &                          \\
\multicolumn{1}{|c|}{\multirow{-2}{*}{Risk D}} & \multirow{-2}{*}{*}          & \multirow{-2}{*}{}         & \multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}{\color[HTML]{9B9B9B} }} & \multirow{-2}{*}{...} & \multicolumn{2}{c|}{\multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}}} & \multirow{-2}{*}{...}    \\ \hline
\multicolumn{1}{|c|}{}                         &                              &                            & \multicolumn{4}{c|}{\cellcolor[HTML]{C0C0C0}}                                                                                                               &                          \\
\multicolumn{1}{|c|}{\multirow{-2}{*}{Risk E}} & \multirow{-2}{*}{}           & \multirow{-2}{*}{*}        & \multicolumn{4}{c|}{\multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}}}                                                                                             & \multirow{-2}{*}{...}    \\ \hline
\end{tabular}
\end{table}

\end{document}
A Diyanat
  • 777
Alex
  • 35

0 Answers0