summaryrefslogtreecommitdiff
path: root/tests/typ/math
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/typ/math
parentfd84d23ade16fea22e8f8413a5d29c95c2ee1d84 (diff)
Show rules for symbols (fixes #1130) (#1175)
Diffstat (limited to 'tests/typ/math')
-rw-r--r--tests/typ/math/style.typ5
1 files changed, 5 insertions, 0 deletions
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 $