From 05b50ba236d4362ef368d9881eda94f0fca15bbb Mon Sep 17 00:00:00 2001 From: Popa <115492561+Popa-42@users.noreply.github.com> Date: Tue, 3 Nov 2026 16:08:19 +0100 Subject: [PATCH] feat: add chevrons helper --- 0.1.0/helpers.typ | 7 +++++-- 0.1.0/lib.typ | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/0.1.0/helpers.typ b/0.1.0/helpers.typ index e09c830..d9ce322 100644 --- a/0.1.0/helpers.typ +++ b/0.1.0/helpers.typ @@ -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) = { set math.equation(numbering: _ => _qed, number-align: right + bottom) eq } - #let qed = [#h(1fr)#_qed] #let Im = math.op("Im") diff --git a/0.1.0/lib.typ b/0.1.0/lib.typ index dfbe581..8cccded 100644 --- a/0.1.0/lib.typ +++ b/0.1.0/lib.typ @@ -3,4 +3,4 @@ #import "title-page.typ": title-page #import "lecture.typ": lecture, lecture-counter, reset-lectures #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, ü