summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPg Biel <9021226+PgBiel@users.noreply.github.com>2023-04-28 13:49:02 -0300
committerGitHub <noreply@github.com>2023-04-28 18:49:02 +0200
commit0d8c3254b75e6493ecf8efc46c37d049c1ae6b63 (patch)
treeff5ba1dcc5112230cbb59c13114c17a51965e0aa /tests
parentd5e68c731c95b5fe366de718a4898e50e5e0525a (diff)
Initial fix for spacing on decorated math operators (#1023)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/spacing.pngbin11992 -> 17743 bytes
-rw-r--r--tests/typ/math/spacing.typ9
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/math/spacing.png b/tests/ref/math/spacing.png
index 921996b0..94ca9b98 100644
--- a/tests/ref/math/spacing.png
+++ b/tests/ref/math/spacing.png
Binary files differ
diff --git a/tests/typ/math/spacing.typ b/tests/typ/math/spacing.typ
index c1050d68..969c26c1 100644
--- a/tests/typ/math/spacing.typ
+++ b/tests/typ/math/spacing.typ
@@ -29,3 +29,12 @@ $a - b ident c quad (mod 2)$
// Test spacing for set comprehension.
#set page(width: auto)
$ { x in RR | x "is natural" and x < 10 } $
+
+---
+// Test spacing for operators with decorations and modifiers on them
+#set page(width: auto)
+$a ident b + c - d => e log 5 op("ln") 6$ \
+$a cancel(ident) b overline(+) c arrow(-) d hat(=>) e cancel(log) 5 dot(op("ln")) 6$ \
+$a overbrace(ident) b underline(+) c grave(-) d underbracket(=>) e circle(log) 5 caron(op("ln")) 6$ \
+\
+$a attach(ident, tl: a, tr: b) b attach(limits(+), t: a, b: b) c tilde(-) d breve(=>) e attach(limits(log), t: a, b: b) 5 attach(op("ln"), tr: a, bl: b) 6$