Enhance modern template math support
This commit is contained in:
1 file changed
+14
-2
@@ -186,6 +186,7 @@
|
||||
|
||||
|
||||
#let modern-template(
|
||||
document-lang: "en",
|
||||
seminar: [],
|
||||
professor: [],
|
||||
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 raw: set text(font: "Fira Code")
|
||||
|
||||
@@ -366,7 +367,18 @@
|
||||
|
||||
#let _qed = $square$
|
||||
#let qed-equation(eq) = {
|
||||
set math.equation(numbering: n => _qed, number-align: right + bottom)
|
||||
set math.equation(numbering: _ => _qed, number-align: right + bottom)
|
||||
eq
|
||||
}
|
||||
#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)$,
|
||||
)),
|
||||
))
|
||||
Reference in new issue
Block a user