22 lines
386 B
Plaintext
22 lines
386 B
Plaintext
// templates for online lecture notes
|
|
|
|
#import "main.typ": gen_preamble, doc_template, mono_font, lref
|
|
|
|
#let template(
|
|
title: none,
|
|
authors: none,
|
|
lecture_url: none,
|
|
class: [Lecture notes],
|
|
body
|
|
) = {
|
|
doc_template(title: title, {
|
|
gen_preamble(
|
|
title: title,
|
|
authors: authors,
|
|
prefix: [_#{class}_],
|
|
suffix: link(lecture_url)
|
|
)
|
|
body
|
|
})
|
|
}
|