sfd.typ: added
This commit is contained in:
parent
73ab4702e6
commit
7853f1e5db
25
sfd.typ
Normal file
25
sfd.typ
Normal 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
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user