summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorThomas Aldrian <aldrian.thom+github@proton.me>2023-10-25 16:12:11 +0100
committerGitHub <noreply@github.com>2023-10-25 17:12:11 +0200
commit866bd27d2e90db09b65964fadfb2627aa8ebfe3e (patch)
tree8de31eecb478dbe121666c2b3da4efc962070f86 /crates
parent7c92ec103e9200ca22d78bf4b16a56a4f7f7992d (diff)
Add `csch` and `sech` operators (#2378)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-library/src/math/op.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/typst-library/src/math/op.rs b/crates/typst-library/src/math/op.rs
index eed16465..152efdf5 100644
--- a/crates/typst-library/src/math/op.rs
+++ b/crates/typst-library/src/math/op.rs
@@ -13,10 +13,10 @@ use super::*;
///
/// # Predefined Operators { #predefined }
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`,
-/// `cosh`, `cot`, `coth`, `csc`, `ctg`, `deg`, `det`, `dim`, `exp`, `gcd`,
-/// `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`, `limsup`, `ln`,
-/// `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sin`, `sinc`, `sinh`, `sup`,
-/// `tan`, `tanh`, `tg` and `tr`.
+/// `cosh`, `cot`, `coth`, `csc`, `csch`, `ctg`, `deg`, `det`, `dim`, `exp`,
+/// `gcd`, `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`, `limsup`,
+/// `ln`, `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sech`, `sin`, `sinc`,
+/// `sinh`, `sup`, `tan`, `tanh`, `tg` and `tr`.
#[elem(title = "Text Operator", LayoutMath)]
pub struct OpElem {
/// The operator's text.
@@ -80,6 +80,7 @@ ops! {
cot,
coth,
csc,
+ csch,
ctg,
deg,
det (limits),
@@ -102,6 +103,7 @@ ops! {
mod,
Pr (limits),
sec,
+ sech,
sin,
sinc,
sinh,