Creating a Time Table with LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Latex Table Time
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
EngWiPy
Messages
1,361
Reaction score
61
Hi,

I am trying to do a time table as in the following code:

Code:
\documentclass[a4paper]{report}
\usepackage{lscape}
\usepackage{multirow}
\usepackage{bigstrut}
\usepackage{array}
\begin{document}
\thispagestyle{empty}
\pagestyle{empty}  
\begin{landscape}
\begin{tabular}{*{11}{| m{1.5cm} |}}
\cline{3-11}
& & \multicolumn{9}{|c|}{Week}\\\cline{3-11}
  &            & Week 1 & Week 2 & Week 3 & Week 4 & Week 5 &Week 6& Week 7 & Week 8 & Week 9 \\\cline{1-11}
              \multicolumn{1}{|c|}{\multirow{4}{*}{Course}} & \multicolumn{1}{|c|}{Course 1} &  &  &  & & &  & & &\\\cline{2-11}
              
              & \multicolumn{1}{|c|}{Course 2} & &  & &  & &  &  &  &\\\cline{2-11}
              & \multicolumn{1}{|c|}{Course 3} &  &  &  &  &  &  &  &  &\\\cline{2-11}
               & \multicolumn{1}{|c|}{Course 4} &  & &  &  &  &  &  & &\\\cline{1-11}
\end{tabular}
\end{landscape}
\end{document}

and I have some questions:

1- How to make the area over the first two columns completely blank?
2- How to align the writing in each cell to the center of the cell and maintaining the tabular argument above? I need the effect of |c| and |m{}| together.
3- Why is there double lines between columns?!

Thanks in advance
 
Physics news on Phys.org