sfd.typ: added

This commit is contained in:
dogeystamp 2023-07-06 20:03:50 -04:00
parent 73ab4702e6
commit 7853f1e5db
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

25
sfd.typ Normal file
View File

@ -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
})
}