Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
18 changes: 9 additions & 9 deletions crates/typst-library/src/math/frac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ use crate::diag::bail;
use crate::foundations::{elem, Content, Value};
use crate::math::Mathy;

/// A mathematical fraction.
/// 分数。
///
/// # Example
/// #
/// ```example
/// $ 1/2 < (x+1)/2 $
/// $ ((x+1)) / 2 = frac(a, b) $
/// ```
///
/// # Syntax
/// This function also has dedicated syntax: Use a slash to turn neighbouring
/// expressions into a fraction. Multiple atoms can be grouped into a single
/// expression using round grouping parenthesis. Such parentheses are removed
/// from the output, but you can nest multiple to force them.
/// # 構文
/// この関数には専用の構文もあります。
/// 隣接する式をスラッシュで区切ると、分数になります。
/// また、丸括弧で複数の要素を囲うと、単一の式として扱えます。
/// そのような丸括弧は出力からは削除されますが、複数重ねてネストすることで、丸括弧を表示させることも可能です。
#[elem(title = "Fraction", Mathy)]
pub struct FracElem {
/// The fraction's numerator.
/// 分数の分子。
#[required]
pub num: Content,

/// The fraction's denominator.
/// 分数の分母。
#[required]
pub denom: 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 @@ -85,7 +85,7 @@
"/docs/reference/math/cases/": "untranslated",
"/docs/reference/math/class/": "untranslated",
"/docs/reference/math/equation/": "untranslated",
"/docs/reference/math/frac/": "untranslated",
"/docs/reference/math/frac/": "translated",
"/docs/reference/math/lr": "untranslated",
"/docs/reference/math/mat/": "untranslated",
"/docs/reference/math/primes/": "untranslated",
Expand Down