aboutsummaryrefslogtreecommitdiff
path: root/latex/map.cls
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-08-29 12:38:36 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-08-29 12:38:36 +0200
commite478854027a22096ef4d3aed422b8b47a1b3aa59 (patch)
tree8af48829ca7aef15bf6ba096cf1e8ae4af6b1602 /latex/map.cls
parent21fa7ee63a23c27bc234eebe4a1f77ea88793887 (diff)
downloadunterricht-e478854027a22096ef4d3aed422b8b47a1b3aa59.tar.gz
unterricht-e478854027a22096ef4d3aed422b8b47a1b3aa59.zip
use latex instead of markdown for planning documents
The used markdown was mostly latex anyway. This allows to reuse a lot of code and reduce the boilerplate.
Diffstat (limited to 'latex/map.cls')
-rw-r--r--latex/map.cls24
1 files changed, 24 insertions, 0 deletions
diff --git a/latex/map.cls b/latex/map.cls
new file mode 100644
index 00000000..410b3610
--- /dev/null
+++ b/latex/map.cls
@@ -0,0 +1,24 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{map}[muhq's simple map class]
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
+\ProcessOptions\relax
+\LoadClass{scrartcl}
+
+\input{common_packages.tex}
+\input{common_planning.tex}
+
+\newenvironment{map}{
+\PlanningIntro{Grober Verlaufsplan}
+
+\begin{center}
+\begin{tabular}{c c c}
+Woche & LP-Abschnitt & Thema \\
+\hline
+}{
+\end{tabular}
+\end{center}
+}
+
+\newcommand{\Holiday}[2]{\HolidayRowColor #1 & \multicolumn{2}{c}{#2} \\}
+\newcommand{\Cancellation}[1]{\CancellationRowColor #1 & \multicolumn{2}{c}{Ausfall} \\}