mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
Demo mid() with a new example showing a friction point with auto-scaling (#2783)
This commit is contained in:
parent
af9d8727e1
commit
37614716be
@ -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
|
/// ```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)]
|
#[elem(LayoutMath)]
|
||||||
pub struct MidElem {
|
pub struct MidElem {
|
||||||
|
@ -69,7 +69,7 @@ description: |
|
|||||||
and footnote entries
|
and footnote entries
|
||||||
|
|
||||||
- Math
|
- 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
|
of the surrounding [`lr`]($math.lr) group
|
||||||
- The [`op`]($math.op) function can now take any content, not just strings
|
- The [`op`]($math.op) function can now take any content, not just strings
|
||||||
- Improved documentation for [math alignment]($category/math/#alignment)
|
- Improved documentation for [math alignment]($category/math/#alignment)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user