I am expected to prepare a time table in the format shown below:
However, I am only able to generate this:
Following is the code which I've with me:
\documentclass[a4paper,11pt,landscape]{book}
\usepackage[inner=0.3in,outer=0.3in,tmargin=1in,bmargin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
%\setlength{\arrayrulewidth}{1mm}
%\setlength{\tabcolsep}{18pt}
\begin{document}
\pagenumbering{gobble}
% Please add the following required packages to your document preamble:
% \usepackage{multirow}
% \usepackage[table,xcdraw]{xcolor}
% If you use beamer only pass "xcolor=table" option, i.e. \documentclass[xcolor=table]{beamer}
\begin{table}[]
\centering
%\caption{My caption}
\label{my-label}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|
>{\columncolor[HTML]{BBDAFF}}c |c|c|c|c|c|c|c|c|}
\hline
\multicolumn{19}{|c|}{\cellcolor[HTML]{FFCC67}{\Huge Student Meeting Times and Schedule : Jan--July 2016}}\\
\hline
& \begin{tabular}[c]{@{}c@{}}08:30\\ 09:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}09:00\\ 09:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}09:30\\ 10:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}10:00\\ 10:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}10:30\\ 11:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}11:00\\ 11:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}11:30\\ 12:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}12:00\\ 12:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}12:30\\ 13:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}13:00\\ 14:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}14:00\\ 14:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}14:30\\ 15:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}15:00\\ 15:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}15:30\\ 16:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}16:00\\ 16:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}16:30\\ 17:00\end{tabular}
& \begin{tabular}[c]{@{}c@{}}17:00\\ 17:30\end{tabular}
& \begin{tabular}[c]{@{}c@{}}17:30\\ 18:30\end{tabular}
\\
\hline
Mon
& &
& \multicolumn{3}{c|}{\cellcolor[HTML]{009901}\textbf{Aa Rr}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \multicolumn{3}{c|}{\cellcolor[HTML]{FE0000}{\color[HTML]{FFFFFF} \begin{tabular}[c]{@{}c@{}}GGGGGGGGG \\ MMMMMM\end{tabular}}}
& \cellcolor[HTML]{BBDAFF}
& \multicolumn{2}{c|}{\cellcolor[HTML]{34CDF9}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss \&\\ Mmmm\end{tabular}}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \multicolumn{2}{c|}{\cellcolor[HTML]{009901}\textbf{Pp Nn}}
& \multicolumn{2}{c|}{\cellcolor[HTML]{009901}\textbf{Aa Mm}}
&
\\
\cline{1-10} \cline{12-19}
Tue
& \multicolumn{3}{c|}{\cellcolor[HTML]{FFFC9E}\textbf{E 2 : Class}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \multicolumn{3}{c|}{\cellcolor[HTML]{009901}\textbf{Cc Mm}}
& \multicolumn{2}{c|}{\cellcolor[HTML]{34CDF9}\textbf{Aa Dd}}
& \cellcolor[HTML]{BBDAFF}
& &
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \multicolumn{2}{c|}{\cellcolor[HTML]{009901}\textbf{Aa Mm}}
& & &
\\
\cline{1-10} \cline{12-19}
Wed
& &
& \multicolumn{3}{c|}{\cellcolor[HTML]{009901}\textbf{Pp Gg}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \cellcolor[HTML]{340096}{\color[HTML]{FFFFFF} \textbf{Tt Kk}}
&
& \cellcolor[HTML]{340096}{\color[HTML]{FFFFFF} \textbf{Hh Ss}}
& \cellcolor[HTML]{BBDAFF}
& \multicolumn{2}{c|}{\cellcolor[HTML]{3531FF}{\color[HTML]{FFFFFF} \textbf{Cc}}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \multicolumn{2}{c|}{\cellcolor[HTML]{3531FF}{\color[HTML]{FFFFFF} \textbf{Cc}}}
& & &
\\
\cline{1-10} \cline{12-19}
Thu
& \multicolumn{3}{c|}{\cellcolor[HTML]{FFFC9E}\textbf{E 2 : Class}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
& \multicolumn{3}{c|}{\cellcolor[HTML]{009901}\textbf{Ss Rr}}
& \cellcolor[HTML]{F8A102}\textbf{\begin{tabular}[c]{@{}c@{}}Sssss\\ Hhhh\end{tabular}}
&
& \cellcolor[HTML]{BBDAFF}
& \multicolumn{2}{c|}{\cellcolor[HTML]{34CDF9}\textbf{\begin{tabular}[c]{@{}c@{}}Vv \&\\ Ss\end{tabular}}}
& \multicolumn{2}{c|}{\cellcolor[HTML]{3531FF}{\color[HTML]{FFFFFF} \textbf{Cc}}}
& & & &
\\
\cline{1-10} \cline{12-19}
Fri
& & &
& \cellcolor[HTML]{34CDF9}\textbf{Aa Jj}
& \cellcolor[HTML]{34CDF9}\textbf{Ss Jj}
& \multicolumn{2}{c|}{\cellcolor[HTML]{F8FF00}\textbf{\begin{tabular}[c]{@{}c@{}}Ff\\ Mm\end{tabular}}} & &
& \multirow{-8}{*}{\cellcolor[HTML]{BBDAFF}\textbf{\begin{tabular}[c]{@{}c@{}}L\\ U\\ N\\ C\\ H\end{tabular}}}
& \multicolumn{3}{c|}{\cellcolor[HTML]{FE0000}{\color[HTML]{FFFFFF} \begin{tabular}[c]{@{}c@{}}GGGGGGGGG \\ MMMMMM\end{tabular}}}
& \multicolumn{3}{c|}{\cellcolor[HTML]{F8FF00}\textbf{Ll Ss}}
& &
\\
\hline
\cellcolor[HTML]{C2E7C2}Sat
& \multicolumn{18}{c|}{\cellcolor[HTML]{C2E7C2}{\begin{tabular}[c]{@{}c@{}}~\\ ~\end{tabular}}}
\\
\hline
\end{tabular}
\end{table}
\end{document}
Please suggest a solution.
Best Answer
Here is a solution (hopefully). I introduced some shortcut-macros to shorten typing repetitive code.