Creating a Time Table with LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Latex Table Time
Click For Summary
SUMMARY

This discussion focuses on creating a timetable using LaTeX, specifically with the report document class and several packages including lscape, multirow, bigstrut, and array. Key issues addressed include making the area over the first two columns blank, aligning text to the center of each cell while maintaining the tabular structure, and resolving the appearance of double lines between columns. The provided LaTeX code serves as a foundational example for users seeking to implement similar tabular layouts.

PREREQUISITES
  • Familiarity with LaTeX document classes, particularly the report class.
  • Understanding of LaTeX packages such as lscape, multirow, bigstrut, and array.
  • Knowledge of LaTeX tabular environments and formatting options.
  • Basic skills in LaTeX syntax and compilation processes.
NEXT STEPS
  • Explore LaTeX documentation on the tabular environment for advanced formatting techniques.
  • Learn about the use of the \multicolumn command in LaTeX for merging cells in tables.
  • Investigate the alignment options in LaTeX tables, including the use of the m{} column type.
  • Research solutions for customizing table borders and lines in LaTeX to eliminate double lines.
USEFUL FOR

This discussion is beneficial for LaTeX users, educators creating course schedules, and anyone involved in document preparation requiring structured tabular data presentation.

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

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 8 ·
Replies
8
Views
13K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K