Skip to content

Instantly share code, notes, and snippets.

@waldolemmer
Last active August 6, 2023 04:00
Show Gist options
  • Save waldolemmer/a230fe81885eb989d484ebf12f28ad76 to your computer and use it in GitHub Desktop.
Save waldolemmer/a230fe81885eb989d484ebf12f28ad76 to your computer and use it in GitHub Desktop.
timetable.tex
\documentclass{article}
%\usepackage[paperheight=148.24mm, paperwidth=66.71mm, margin=0mm, heightrounded]
\usepackage[paperheight=134.06mm, paperwidth=63.5mm, margin=0mm, heightrounded]
{geometry}
\usepackage{xcolor}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{booktabs}
\definecolor{COS 110}{RGB}{247, 118, 142}
\definecolor{COS 122}{RGB}{224, 175, 104}
\definecolor{HAS 120}{RGB}{115, 218, 202}
\definecolor{SWK 122}{RGB}{125, 207, 255}
\definecolor{WTW 164}{RGB}{187, 154, 247}
\cmidrulewidth=0.01em
\pagecolor{black}
\color{white}
\setmainfont{Product Sans}
\newcommand\Lecture[3]{%
\multirow{#1}*{%
\textcolor{#2}{%
\begin{tabular}{@{}c@{}}%
#2#3\\%
\end{tabular}%
}%
}%
}
\begin{document}
\topskip0pt
\vspace*{\fill}
\noindent
\resizebox{\textwidth}{!}{%
\begin{tabular}{r*5{c}}
7:30 & \Lecture2{WTW 164}{\\Centenary 3} &
\Lecture2{COS 122}{ (G02)\\Centenary 3} &
\Lecture2{SWK 122}{\\Thuto 3-1} &
\Lecture2{COS 110}{ (G01)\\Centenary 3} \\
\\
\cmidrule{2-6}
8:30 & \Lecture2{COS 110}{ (G02)\\Large Chemistry Hall} &
\Lecture2{SWK 122}{\\Thuto 3-2} &
\Lecture2{WTW 164}{\\Centenary 2} &
&
\Lecture2{COS 110}{ (G01)\\Centenary 3} \\
\\
\cmidrule{2-6}
9:30 & \Lecture2{COS 122}{ (G01)\\Thuto 3-2} &
\Lecture2{WTW 164}{\\Centenary 5} &
\Lecture2{COS 122}{ (G02)\\Centenary 3} &
\Lecture2{WTW 164}{\\Centenary 5} &
\Lecture2{SWK 122}{\\Thuto 3-1} \\
\\
\cmidrule{2-6}
10:30 & &
\Lecture2{COS 110}{ (G02)\\Large Chemistry Hall} &
\Lecture2{COS 110}{ (T02)\\EMS 4-152} &
\Lecture2{SWK 122}{\\Thuto 3-1} \\
\\
\cmidrule{2-6}
11:30 & \Lecture2{HAS 120}{\\Thuto 3-1} &
&
\Lecture2{COS 122}{ (G01)\\Roos Hall} &
&
\Lecture2{COS 122}{ (T01)\\Louw Hall} \\
\\
\cmidrule{2-2}\cmidrule{4-4}\cmidrule{6-6}
12:30 & &
&
\Lecture2{COS 110}{ (G01)\\Centenary 3} \\
\\
\cmidrule{2-6}
13:30 & \Lecture2{COS 110}{ (T01)\\IT 4-1} &
\Lecture2{COS 122}{ (G01)\\Thuto 3-1} &
\Lecture2{HAS 120}{\\Thuto 3-1} &
\Lecture2{COS 110}{ (T02)\\IT 4-5} &
\Lecture5{
COS 122}{ (P)\\
Informatorium Blue Lab 1\\
Informatorium Blue Lab 2\\
Informatorium Blue Lab 3\\
Informatorium Brown Lab%
} \\
\\
\cmidrule{2-5}
14:30 & \Lecture8{%
WTW 164}{ (P)\\
Eng II 3-40\\
Eng II 4-38\\
Eng III-2\\
Eng III-3\\
Eng III-5\\
Eng III-6\\
Eng III-7%
} &
&
\Lecture8{%
COS 110}{ (P)\\
Informatorium Blue Lab 3\\
Informatorium Brown Lab\\
Informatorium Maroon Lab%
} &
\Lecture3{COS 110}{ (G02)\\Thuto 1-1} \\
\\
\\
\cmidrule{3-3}\cmidrule{5-6}
15:30 & &
\Lecture5{%
SWK 122}{ (O)\\
Eng III-1\\
Eng III-2\\
Eng III-3\\
Eng III-4%
} &
&
\Lecture3{COS 122}{ (G02)\\Centenary 3} \\
\\
\\
\cmidrule{5-5}
16:30 & &
&
&
\Lecture2{COS 122}{ (T02)\\Centenary 3} \\
\\
\end{tabular}%
}
\vspace*{\fill}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment