Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions crates/typst-library/src/math/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,25 @@ use crate::layout::HElem;
use crate::math::{upright, Mathy, THIN};
use crate::text::TextElem;

/// A text operator in an equation.
/// 数式中のテキスト演算子。
///
/// # Example
/// #
/// ```example
/// $ tan x = (sin x)/(cos x) $
/// $ op("custom",
/// limits: #true)_(n->oo) n $
/// ```
///
/// # Predefined Operators { #predefined }
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`,
/// `cosh`, `cot`, `coth`, `csc`, `csch`, `ctg`, `deg`, `det`, `dim`, `exp`,
/// `gcd`, `lcm`, `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`.
/// # 定義済み演算子 { #predefined }
/// Typstが事前に定義してある演算子は以下の通りです。
/// `arccos`、`arcsin`、`arctan`、`arg`、`cos`、`cosh`、`cot`、`coth`、`csc`、`csch`、`ctg`、`deg`、`det`、`dim`、`exp`、`gcd`、`lcm`、`hom`、`id`、`im`、`inf`、`ker`、`lg`、`lim`、`liminf`、`limsup`、`ln`、`log`、`max`、`min`、`mod`、`Pr`、`sec`、`sech`、`sin`、`sinc`、`sinh`、`sup`、`tan`、`tanh`、`tg`、`tr`。
#[elem(title = "Text Operator", Mathy)]
pub struct OpElem {
/// The operator's text.
/// 演算子のテキスト。
#[required]
pub text: Content,

/// Whether the operator should show attachments as limits in display mode.
/// ディスプレイモードのときに演算子のアタッチメントをlimitsのように表示するかどうか。
#[default(false)]
pub limits: bool,
}
Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"/docs/reference/math/sizes/": "untranslated",
"/docs/reference/math/stretch/": "untranslated",
"/docs/reference/math/styles/": "untranslated",
"/docs/reference/math/op/": "untranslated",
"/docs/reference/math/op/": "translated",
"/docs/reference/math/underover/": "untranslated",
"/docs/reference/math/variants/": "untranslated",
"/docs/reference/math/vec/": "untranslated",
Expand Down