summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Voynov <37143421+Andrew15-5@users.noreply.github.com>2025-06-09 19:34:39 +0300
committerGitHub <noreply@github.com>2025-06-09 16:34:39 +0000
commite632bffc2ed4c005e5e989b527a05e87f077a8a0 (patch)
tree758af1a79669ad44fa9dc05832690ae139b1806c
parent2a3746c51de9231436013a2885a6d7096b0e4028 (diff)
Document how to escape lr delimiter auto-scaling (#6410)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
-rw-r--r--docs/reference/groups.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/reference/groups.yml b/docs/reference/groups.yml
index 8fea3a1f..e5aa7e99 100644
--- a/docs/reference/groups.yml
+++ b/docs/reference/groups.yml
@@ -112,11 +112,18 @@
a few more functions that create delimiter pairings for absolute, ceiled,
and floored values as well as norms.
+ To prevent a delimiter from being matched by Typst, and thus auto-scaled,
+ escape it with a backslash. To instead disable auto-scaling completely, use
+ `{set math.lr(size: 1em)}`.
+
# Example
```example
$ [a, b/2] $
$ lr(]sum_(x=1)^n], size: #50%) x $
$ abs((x + y) / 2) $
+ $ \{ (x / y) \} $
+ #set math.lr(size: 1em)
+ $ { (a / b), a, b in (0; 1/2] } $
```
- name: calc