Enhance modern template math support

This commit is contained in:
Popa committed 2026-10-28 19:29:20 +01:00
1 parent cd3983e712
commit 08232f43ed
1 file changed
+14 -2
+14 -2
View File
@@ -186,6 +186,7 @@
#let modern-template( #let modern-template(
document-lang: "en",
seminar: [], seminar: [],
professor: [], professor: [],
assistant: none, assistant: none,
@@ -329,7 +330,7 @@
}, },
) )
set text(font: _theme.text-font) set text(font: _theme.text-font, lang: document-lang)
show math.equation: set text(font: _theme.math-font) show math.equation: set text(font: _theme.math-font)
show raw: set text(font: "Fira Code") show raw: set text(font: "Fira Code")
@@ -366,7 +367,18 @@
#let _qed = $square$ #let _qed = $square$
#let qed-equation(eq) = { #let qed-equation(eq) = {
set math.equation(numbering: n => _qed, number-align: right + bottom) set math.equation(numbering: _ => _qed, number-align: right + bottom)
eq eq
} }
#let qed = [#h(1fr)#_qed] #let qed = [#h(1fr)#_qed]
#let Re = math.op("Re")
#let Im = math.op("Im")
#let clap(body) = math.display(box(
width: 0pt,
height: 1em,
align(center, box(
width: float.inf * 1pt,
$script(body)$,
)),
))