Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 9 additions & 10 deletions crates/typst-library/src/math/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ pub struct MatElem {
pub rows: Vec<Vec<Content>>,
}

/// A case distinction.
/// 場合分け。
///
/// Content across different branches can be aligned with the `&` symbol.
/// `&`記号を用いると異なる分岐に属するコンテンツを整列できます。
///
/// # Example
/// #
/// ```example
/// $ f(x, y) := cases(
/// 1 "if" (x dot y)/2 <= 0,
Expand All @@ -231,11 +231,10 @@ pub struct MatElem {
/// ```
#[elem(Mathy)]
pub struct CasesElem {
/// The delimiter to use.
/// 使用する区切り文字。
///
/// Can be a single character specifying the left delimiter, in which case
/// the right delimiter is inferred. Otherwise, can be an array containing a
/// left and a right delimiter.
/// 単一の文字で左区切り文字を指定する場合、右区切り文字は自動的に推論されます。
/// それ以外の場合は、左区切り文字と右区切り文字を含む配列を指定します。
///
/// ```example
/// #set math.cases(delim: "[")
Expand All @@ -244,7 +243,7 @@ pub struct CasesElem {
#[default(DelimiterPair::BRACE)]
pub delim: DelimiterPair,

/// Whether the direction of cases should be reversed.
/// 場合分けの向きを反転させるかどうか。
///
/// ```example
/// #set math.cases(reverse: true)
Expand All @@ -253,7 +252,7 @@ pub struct CasesElem {
#[default(false)]
pub reverse: bool,

/// The gap between branches.
/// 分岐間の間隔。
///
/// ```example
/// #set math.cases(gap: 1em)
Expand All @@ -263,7 +262,7 @@ pub struct CasesElem {
#[default(DEFAULT_ROW_GAP.into())]
pub gap: Rel<Length>,

/// The branches of the case distinction.
/// 場合分けの各分岐を表す子要素。
#[variadic]
pub children: Vec<Content>,
}
Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"/docs/reference/math/attach/": "untranslated",
"/docs/reference/math/binom/": "untranslated",
"/docs/reference/math/cancel/": "untranslated",
"/docs/reference/math/cases/": "untranslated",
"/docs/reference/math/cases/": "translated",
"/docs/reference/math/class/": "untranslated",
"/docs/reference/math/equation/": "translated",
"/docs/reference/math/frac/": "translated",
Expand Down