Add lcm as an operator in math mode (#5718)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
SekoiaTree 2025-01-23 13:35:29 +01:00 committed by GitHub
parent f7bd03dd76
commit 58dbbd48fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,9 +17,9 @@ use crate::text::TextElem;
/// # Predefined Operators { #predefined } /// # Predefined Operators { #predefined }
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`, /// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`,
/// `cosh`, `cot`, `coth`, `csc`, `csch`, `ctg`, `deg`, `det`, `dim`, `exp`, /// `cosh`, `cot`, `coth`, `csc`, `csch`, `ctg`, `deg`, `det`, `dim`, `exp`,
/// `gcd`, `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`, `limsup`, /// `gcd`, `lcm`, `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`,
/// `ln`, `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sech`, `sin`, `sinc`, /// `limsup`, `ln`, `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sech`, `sin`,
/// `sinh`, `sup`, `tan`, `tanh`, `tg` and `tr`. /// `sinc`, `sinh`, `sup`, `tan`, `tanh`, `tg` and `tr`.
#[elem(title = "Text Operator", Mathy)] #[elem(title = "Text Operator", Mathy)]
pub struct OpElem { pub struct OpElem {
/// The operator's text. /// The operator's text.
@ -75,6 +75,7 @@ ops! {
dim, dim,
exp, exp,
gcd (limits), gcd (limits),
lcm (limits),
hom, hom,
id, id,
im, im,