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