diff --git a/sfd.typ b/sfd.typ new file mode 100644 index 0000000..cfa63b0 --- /dev/null +++ b/sfd.typ @@ -0,0 +1,25 @@ +// templates for online lecture notes + +#import "main.typ": gen_title, gen_authors, doc_template, mono_font + +#let template( + title: none, + authors: none, + lecture_url: none, + body +) = { + doc_template({ + gen_title(title: title) + if lecture_url != none { + v(10pt, weak: true) + align(center, { + text(scale(link(lecture_url)), size: 0.9em, font: mono_font) + v(10pt, weak: true) + }) + } + v(15pt, weak: true) + + gen_authors(authors: authors) + body + }) +}