summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorsitandr <60141933+sitandr@users.noreply.github.com>2023-05-12 13:26:26 +0300
committerGitHub <noreply@github.com>2023-05-12 12:26:26 +0200
commit4b17c3f5c65a3ec87719d3c39d270767140e3767 (patch)
tree7014d570aa871d2040a8fcebdd33b3f0152a4c18 /tests
parentfd84d23ade16fea22e8f8413a5d29c95c2ee1d84 (diff)
Show rules for symbols (fixes #1130) (#1175)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math/style.pngbin19747 -> 20415 bytes
-rw-r--r--tests/typ/compiler/show-node.typ2
-rw-r--r--tests/typ/math/style.typ5
3 files changed, 6 insertions, 1 deletions
diff --git a/tests/ref/math/style.png b/tests/ref/math/style.png
index f4a42c70..c5e72258 100644
--- a/tests/ref/math/style.png
+++ b/tests/ref/math/style.png
Binary files differ
diff --git a/tests/typ/compiler/show-node.typ b/tests/typ/compiler/show-node.typ
index c69f46bd..27a4b6a9 100644
--- a/tests/typ/compiler/show-node.typ
+++ b/tests/typ/compiler/show-node.typ
@@ -96,7 +96,7 @@ Hey
= Heading
---
-// Error: 7-10 expected function, label, string, regular expression, or selector, found color
+// Error: 7-10 expected function, label, string, regular expression, symbol, or selector, found color
#show red: []
---
diff --git a/tests/typ/math/style.typ b/tests/typ/math/style.typ
index dfb7a795..67a410af 100644
--- a/tests/typ/math/style.typ
+++ b/tests/typ/math/style.typ
@@ -28,3 +28,8 @@ $text(#red, "time"^2) + sqrt("place")$
// Test different font.
#show math.equation: set text(font: "Fira Math")
$ v := vec(1 + 2, 2 - 4, sqrt(3), arrow(x)) + 1 $
+
+---
+// Test using rules for symbols
+#show sym.tack: it => $#h(1em) it #h(1em)$
+$ a tack b $