aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-22 14:41:47 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-22 14:41:47 +0200
commite905ec4806b815c59fae1d774b3ec7050b1b322f (patch)
tree8ac1d8f7c38f7aa8732a41714bd286f17a3c3292 /scripts
parentc1c0df012141d1d9c8646e803238e5ea535ae9ce (diff)
parent92571ea9b11c63d40c2cd3d1d3b7dd064fdddf54 (diff)
Merge branch 'master' of https://github.com/lonkaars/crepe-docs into wouter/gameloop-design
Merged 'master' branch into 'wouter/gameloop-design' to sync with upstream changes
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/time2tex.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/time2tex.py b/scripts/time2tex.py
index a5d6802..f3f8de9 100755
--- a/scripts/time2tex.py
+++ b/scripts/time2tex.py
@@ -11,7 +11,7 @@ def fmt_duration(sec):
hour = mins // 60
if hour > 0:
- out.append("%02dh" % (hour, ))
+ out.append("%dh" % (hour, ))
mins = mins % 60
out.append("%02dm" % (mins, ))
@@ -91,16 +91,13 @@ def fmt_weekly_overview(times):
return tex.env('table', tex.join(
tex.cmd('centering'),
tex.cmd('fitimg',
- tex.env('tabular', r'l' + r'r@{~}l' * len(members) + r'@{\qquad}r', tex.join(
+ tex.env('tabular', r'l' + r'r@{~}l' * len(members) + r'>{\quad}r', tex.join(
tex.cmd('toprule'),
- tex.tabrule(*[
- tex.cmd('textbf', cell)
- for cell in [
- tex.esc("#"),
- *tex.explist([ member, "" ] for member in members),
- "Subtotal",
- ]
- ]),
+ tex.tabrule(
+ tex.cmd("textbf", tex.esc("#")),
+ *[tex.cmd("multicolumn", "2", "c", tex.cmd("textbf", member)) for member in members],
+ tex.cmd("textbf", "Subtotal"),
+ ),
tex.cmd('midrule'),
*[
tex.tabrule(*[