mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Add lcm as an operator in math mode (#5718)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
f7bd03dd76
commit
58dbbd48fe
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user