aboutsummaryrefslogtreecommitdiff
path: root/latex/sequence.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/sequence.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/sequence.cls')
-rw-r--r--latex/sequence.cls25
1 files changed, 25 insertions, 0 deletions
diff --git a/latex/sequence.cls b/latex/sequence.cls
new file mode 100644
index 00000000..defd043d
--- /dev/null
+++ b/latex/sequence.cls
@@ -0,0 +1,25 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{sequence}[muhq's simple sequence class]
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
+\ProcessOptions\relax
+\LoadClass{scrartcl}
+
+\input{common_packages.tex}
+\input{common_planning.tex}
+
+\newenvironment{sequence}{
+\PlanningIntro{Sequenzplan}
+
+\begin{center}
+\begin{tabular}{c c c c c}
+Woche & Datum & LP-Abschnitt & Std. LP-A. & Unterrichtseinheit \\
+\hline
+}{
+\end{tabular}
+\end{center}
+}
+
+\newcommand{\Holiday}[3]{\HolidayRowColor #1 & #2 & \multicolumn{3}{c}{#3} \\}
+\newcommand{\Section}[1]{\SectionRowColor\multicolumn{5}{c}{#1} \\}
+\newcommand{\Cancellation}[2]{\CancellationRowColor #1 & #2 & \multicolumn{3}{c}{Ausfall} \\}