diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2023-11-29 06:29:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 12:29:37 +0100 |
| commit | 37614716be389cfeecb1ea80b54a4becd08ba031 (patch) | |
| tree | f2ffc455f6b16671baa6251fc9e2507d98ba2d05 | |
| parent | af9d8727e1984502cde553c1d722932ff1f15d94 (diff) | |
Demo mid() with a new example showing a friction point with auto-scaling (#2783)
| -rw-r--r-- | crates/typst/src/math/lr.rs | 4 | ||||
| -rw-r--r-- | docs/changelog.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst/src/math/lr.rs b/crates/typst/src/math/lr.rs index 53319c8d..c6b3c994 100644 --- a/crates/typst/src/math/lr.rs +++ b/crates/typst/src/math/lr.rs @@ -83,10 +83,10 @@ impl LayoutMath for LrElem { } } -/// Scales contents vertically to the nearest surrounding `{lr()}` group. +/// Scales delimiters vertically to the nearest surrounding `{lr()}` group. /// /// ```example -/// $ { x mid(|) sum_(i=1)^oo phi_i (x) < 1 } $ +/// $ { x mid(|) sum_(i=1)^n w_i|f_i (x)| < 1 } $ /// ``` #[elem(LayoutMath)] pub struct MidElem { diff --git a/docs/changelog.md b/docs/changelog.md index 6dee3647..efcc69ba 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -69,7 +69,7 @@ description: | and footnote entries - Math - - Added [`mid`]($math.mid) function for scaling a character up to the height + - Added [`mid`]($math.mid) function for scaling a delimiter up to the height of the surrounding [`lr`]($math.lr) group - The [`op`]($math.op) function can now take any content, not just strings - Improved documentation for [math alignment]($category/math/#alignment) |
