feat: add chevrons helper
This commit is contained in:
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -11,13 +11,16 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
#let _qed = $square$
|
#let chevrons(..children) = {
|
||||||
|
let body = children.pos().join(", ")
|
||||||
|
math.lr([$chevron.l #body chevron.r$])
|
||||||
|
}
|
||||||
|
|
||||||
|
#let _qed = $square$
|
||||||
#let qed-equation(eq) = {
|
#let qed-equation(eq) = {
|
||||||
set math.equation(numbering: _ => _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 Im = math.op("Im")
|
#let Im = math.op("Im")
|
||||||
|
|||||||
+1
-1
@@ -3,4 +3,4 @@
|
|||||||
#import "title-page.typ": title-page
|
#import "title-page.typ": title-page
|
||||||
#import "lecture.typ": lecture, lecture-counter, reset-lectures
|
#import "lecture.typ": lecture, lecture-counter, reset-lectures
|
||||||
#import "boxes.typ": *
|
#import "boxes.typ": *
|
||||||
#import "helpers.typ": grad, Im, Re, ord, qed, qed-equation, render-footnote-entry, ü
|
#import "helpers.typ": Im, Re, chevrons, grad, ord, qed, qed-equation, render-footnote-entry, ü
|
||||||
Reference in new issue
Block a user