diff --git a/documents/by-course/math-8/course-notes/dvd.typ b/documents/by-course/math-8/course-notes/dvd.typ index d6ff3d2..3064cc5 100644 --- a/documents/by-course/math-8/course-notes/dvd.typ +++ b/documents/by-course/math-8/course-notes/dvd.typ @@ -30,6 +30,7 @@ abstract: none, bibliography: none, paper-size: "a4", + date: "today", body, ) = { set document(title: title, author: author) @@ -84,17 +85,25 @@ align(center)[ #set text(font: "Libertinus Serif") #block(text(weight: 700, 26pt, title)) - #v(1.8em, weak: true) - #if author != none [#text(16pt)[by #author]] - #v(1.2em, weak: true) + + #if subtitle != none [#text(12pt, weight: 500)[#( - datetime.today().display("[day] [month repr:long] [year]") + subtitle )]] + #if author != none [#text(16pt)[#smallcaps(author)]] + #v(1.2em, weak: true) + + #if date == "today" { + datetime.today().display("[day] [month repr:long] [year]") + } else { + date + } + ] if abstract != none [ - #v(2em) + #v(2.2em) #set text(font: "Libertinus Serif") #pad(x: 14%, abstract) #v(1em) diff --git a/documents/by-course/math-8/course-notes/main.typ b/documents/by-course/math-8/course-notes/main.typ index 15f573b..d5478fc 100644 --- a/documents/by-course/math-8/course-notes/main.typ +++ b/documents/by-course/math-8/course-notes/main.typ @@ -1,8 +1,10 @@ #import "./dvd.typ": * #show: dvdtyp.with( - title: "Math 8", + title: "Math 8 Course Notes", author: "Youwen Wu", + date: "Winter 2024", + subtitle: [Taught by Matt Porter], abstract: [ In the broad light of day mathematicians check their equations and their proofs, leaving no stone unturned in their search for rigour. But, at night, diff --git a/documents/by-course/pstat-120a/course-notes/dvd.typ b/documents/by-course/pstat-120a/course-notes/dvd.typ index d6ff3d2..3064cc5 100644 --- a/documents/by-course/pstat-120a/course-notes/dvd.typ +++ b/documents/by-course/pstat-120a/course-notes/dvd.typ @@ -30,6 +30,7 @@ abstract: none, bibliography: none, paper-size: "a4", + date: "today", body, ) = { set document(title: title, author: author) @@ -84,17 +85,25 @@ align(center)[ #set text(font: "Libertinus Serif") #block(text(weight: 700, 26pt, title)) - #v(1.8em, weak: true) - #if author != none [#text(16pt)[by #author]] - #v(1.2em, weak: true) + + #if subtitle != none [#text(12pt, weight: 500)[#( - datetime.today().display("[day] [month repr:long] [year]") + subtitle )]] + #if author != none [#text(16pt)[#smallcaps(author)]] + #v(1.2em, weak: true) + + #if date == "today" { + datetime.today().display("[day] [month repr:long] [year]") + } else { + date + } + ] if abstract != none [ - #v(2em) + #v(2.2em) #set text(font: "Libertinus Serif") #pad(x: 14%, abstract) #v(1em)