feat: add semester field to base sheet template

This commit is contained in:
Popa committed 2026-09-14 02:10:08 +02:00
1 parent 115569e400
commit cdda813102
4 files changed
+1452 -1435

No files matched your search

+1 -1
View File
@@ -49,7 +49,6 @@ Or import the package in an existing document:
3,
([Jane Doe], [John Doe]),
[Taylor Tutor],
show-logo: false,
show-credits: true,
body,
)
@@ -73,6 +72,7 @@ and `body`.
Optional arguments:
- `semester`: custom semester name (`none`)
- `tutor-label`: custom label beside the tutor name (`none`)
- `sheet-label`: name displayed before the sheet number (`[Exercise Sheet]`)
- `logo`: logo content, usually `image("logo.png")` or similar (`none`)
+1443 -1427
View File
File diff suppressed because it is too large. Load diff
+2 -3
View File
@@ -13,6 +13,7 @@
[Linear Algebra I],
[Prof. Dr. Daniel Docent],
[Dr. Anne Assistant],
semester: [Winter 2024/25],
4,
([Jane Doe], [Joe Shmoe]),
[John Q. Public, James X. Smith],
@@ -44,8 +45,6 @@
- #lorem(12)
+ #lorem(8)
#lorem(40)
]
== Part (i)
@@ -95,7 +94,7 @@
= Exercise 2
#exercise(points: [$25$ Points])[
#lorem(90)
#lorem(50)
#lorem(20)
]
+6 -4
View File
@@ -11,6 +11,7 @@
course,
prof,
assistant,
semester: none,
exercises,
students,
tutor,
@@ -50,17 +51,18 @@
if counter(page).get().first() > 1 {
set text(base-theme.header-size, weight: 450)
grid(
columns: (3fr, 1fr, 3fr),
align: (start, center, end),
columns: (1fr, 1fr),
align: (start, end),
[
#text(weight: 800)[#course] \
#(prof, assistant).join([#h(0.25em)·#h(0.25em)])
#(prof, assistant).join([#h(0.25em)·#h(0.25em)]) \
#semester
],
text(fill: colors.text)[#ttl],
[
#let _month = datetime.today().month()
#text(fill: colors.text, weight: 800)[#ttl] \
#students.join([#h(0.25em)·#h(0.25em)]) \
#datetime.today().day(). #months-de.at(_month - 1) #datetime.today().year()
],