diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/math/mod.rs | 2 | ||||
| -rw-r--r-- | crates/typst/src/symbols/sym.rs | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/typst/src/math/mod.rs b/crates/typst/src/math/mod.rs index 4b5ce56b..dc79f48b 100644 --- a/crates/typst/src/math/mod.rs +++ b/crates/typst/src/math/mod.rs @@ -187,8 +187,6 @@ pub fn module() -> Module { math.define_elem::<PrimesElem>(); math.define_func::<abs>(); math.define_func::<norm>(); - math.define_func::<floor>(); - math.define_func::<ceil>(); math.define_func::<round>(); math.define_func::<sqrt>(); math.define_func::<upright>(); diff --git a/crates/typst/src/symbols/sym.rs b/crates/typst/src/symbols/sym.rs index d09cb4c2..1dec0039 100644 --- a/crates/typst/src/symbols/sym.rs +++ b/crates/typst/src/symbols/sym.rs @@ -64,6 +64,14 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! { spheric.rev: '⦠', spheric.top: '⦡', ], + ceil: [ + #[call(crate::math::ceil)] l: '⌈', + r: '⌉', + ], + floor: [ + #[call(crate::math::floor)] l: '⌊', + r: '⌋', + ], // Punctuation. amp: ['&', inv: '⅋'], |
