feat: update header with localized German date
This commit is contained in:
3 files changed
+1563
-1477
No files matched your search
+1524
-1468
File diff suppressed because it is too large.
Load diff
+18
-1
@@ -2,7 +2,24 @@
|
|||||||
"../../assets/syntaxes/Pseudo.sublime-syntax",
|
"../../assets/syntaxes/Pseudo.sublime-syntax",
|
||||||
)
|
)
|
||||||
|
|
||||||
#let weekdays-short-de = ("Mo", "Di", "Mi", "Do", "Fr", "Sa", "So")
|
#let weekdays-short-de = (
|
||||||
|
"Mo",
|
||||||
|
"Di",
|
||||||
|
"Mi",
|
||||||
|
"Do",
|
||||||
|
"Fr",
|
||||||
|
"Sa",
|
||||||
|
"So",
|
||||||
|
)
|
||||||
|
#let weekdays-long-de = (
|
||||||
|
"Montag",
|
||||||
|
"Dienstag",
|
||||||
|
"Mittwoch",
|
||||||
|
"Donnerstag",
|
||||||
|
"Freitag",
|
||||||
|
"Samstag",
|
||||||
|
"Sonntag",
|
||||||
|
)
|
||||||
#let months-de = (
|
#let months-de = (
|
||||||
"Januar",
|
"Januar",
|
||||||
"Februar",
|
"Februar",
|
||||||
|
|||||||
+21
-8
@@ -1,8 +1,10 @@
|
|||||||
#import "../config.typ": custom-raw-syntaxes
|
#import "../config.typ": custom-raw-syntaxes, months-de
|
||||||
#import "../helpers.typ": content-to-string, render-footnote-entry
|
#import "../helpers.typ": content-to-string, render-footnote-entry
|
||||||
#import "../theme.typ": base-theme, code-theme, colors, common-theme, credits, smallcaps
|
#import "../theme.typ": base-theme, code-theme, colors, common-theme, credits, smallcaps
|
||||||
#import "../components/student-table.typ": exercise-overview
|
#import "../components/student-table.typ": exercise-overview
|
||||||
|
|
||||||
|
#set text(lang: "de")
|
||||||
|
|
||||||
/// Base template for exercise sheets.
|
/// Base template for exercise sheets.
|
||||||
#let base-template(
|
#let base-template(
|
||||||
sheetnumber,
|
sheetnumber,
|
||||||
@@ -42,18 +44,29 @@
|
|||||||
let font-size = base-theme.font-size
|
let font-size = base-theme.font-size
|
||||||
|
|
||||||
set page(
|
set page(
|
||||||
|
margin: (y: 3.5cm),
|
||||||
numbering: page-numbering,
|
numbering: page-numbering,
|
||||||
header: context {
|
header: context {
|
||||||
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: (2fr, 1fr, 2fr),
|
columns: (3fr, 1fr, 3fr),
|
||||||
align: (start, center, end),
|
align: (start, center, end),
|
||||||
|
|
||||||
course, text(fill: colors.text)[#ttl], (prof, assistant).join([#h(0.25em)·#h(0.25em)]),
|
[
|
||||||
|
#text(weight: 800)[#course] \
|
||||||
|
#(prof, assistant).join([#h(0.25em)·#h(0.25em)])
|
||||||
|
],
|
||||||
|
text(fill: colors.text)[#ttl],
|
||||||
|
[
|
||||||
|
#let _month = datetime.today().month()
|
||||||
|
|
||||||
|
#students.join([#h(0.25em)·#h(0.25em)]) \
|
||||||
|
#datetime.today().day(). #months-de.at(_month - 1) #datetime.today().year()
|
||||||
|
],
|
||||||
)
|
)
|
||||||
#line(length: 100%, stroke: 0.4pt + colors.stroke)
|
line(length: 100%, stroke: 0.4pt + colors.stroke)
|
||||||
]
|
}
|
||||||
},
|
},
|
||||||
footer: context {
|
footer: context {
|
||||||
line(length: 100%, stroke: 0.4pt + colors.stroke)
|
line(length: 100%, stroke: 0.4pt + colors.stroke)
|
||||||
|
|||||||
Reference in new issue
Block a user