aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-05 16:44:47 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-04-05 16:44:47 +0200
commit658416b5cc107559e23fca751c73bcdaf590808f (patch)
treea17ac831e37acf5a5bbf086788a4f6d73de144be
parentbba0994ffbce3016d4038504370a953812aefd15 (diff)
downloadavail-lessons-658416b5cc107559e23fca751c73bcdaf590808f.tar.gz
avail-lessons-658416b5cc107559e23fca751c73bcdaf590808f.zip
Readme: mention event_line_formats configuration table
-rw-r--r--Readme.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md
index 23b9169..a78757b 100644
--- a/Readme.md
+++ b/Readme.md
@@ -64,6 +64,18 @@ fmt = "{week} & {date.strftime('%d.%m')} & & & {period_events} \\"
output_footer = '\end{tabular}'
```
+The configuration table `event_line_formats` allows to specify the format of the whole line if a certain event takes place during the lesson.
+
+For example
+
+```toml
+[event_line_formats]
+Unterrichtsschluss = '\\rowcolor{{red!30}} {line}'
+```
+
+can be used to color the latex table row in light red if a early end of class is detected.
+
+
## Usage
To obtain a list of future lessons for an example (5A) math class run `./lessons.py --class 5A --subject M`.