diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-10-22 14:41:47 +0200 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-10-22 14:41:47 +0200 |
commit | e905ec4806b815c59fae1d774b3ec7050b1b322f (patch) | |
tree | 8ac1d8f7c38f7aa8732a41714bd286f17a3c3292 /scripts | |
parent | c1c0df012141d1d9c8646e803238e5ea535ae9ce (diff) | |
parent | 92571ea9b11c63d40c2cd3d1d3b7dd064fdddf54 (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-x | scripts/time2tex.py | 17 |
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(*[ |