typst-templates/problems.typ
dogeystamp c778a52581
problems.typ: fix URL formatting
seemingly this stems from updating to 0.9.0 which has the change
"Improved line breaking of links / URLs"
2024-02-02 18:41:22 -05:00

28 lines
537 B
Plaintext

// templates for compsci problem documents outside of contests
#import "main.typ": gen_preamble, doc_template, mono_font, lref
#import "compsci.typ": source_code, status
#let template(
title: none,
authors: none,
problem_url: none,
stat: "incomplete",
body
) = {
doc_template(title: title, {
gen_preamble(
title: title,
authors: authors,
prefix: status(stat: stat),
suffix: {
if (problem_url != none) {
[#linebreak()#link(problem_url)]
}
}
)
body
})
}