File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
crates/typst-library/src/math Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,26 @@ use crate::diag::bail;
44use crate :: foundations:: { elem, Content , Value } ;
55use crate :: math:: Mathy ;
66
7- /// A mathematical fraction.
7+ /// 分数。
88///
9- /// # Example
9+ /// # 例
1010/// ```example
1111/// $ 1/2 < (x+1)/2 $
1212/// $ ((x+1)) / 2 = frac(a, b) $
1313/// ```
1414///
15- /// # Syntax
16- /// This function also has dedicated syntax: Use a slash to turn neighbouring
17- /// expressions into a fraction. Multiple atoms can be grouped into a single
18- /// expression using round grouping parenthesis. Such parentheses are removed
19- /// from the output, but you can nest multiple to force them.
15+ /// # 構文
16+ /// この関数には専用の構文もあります。
17+ /// 隣接する式をスラッシュで区切ると、分数になります。
18+ /// また、丸括弧で複数の式要素を囲うと、単一の式として扱えます。
19+ /// そのような丸括弧は出力からは削除されますが、複数重ねてネストすることで、丸括弧を表示させることも可能です。
2020#[ elem( title = "Fraction" , Mathy ) ]
2121pub struct FracElem {
22- /// The fraction's numerator.
22+ /// 分数の分子。
2323 #[ required]
2424 pub num : Content ,
2525
26- /// The fraction's denominator.
26+ /// 分数の分母。
2727 #[ required]
2828 pub denom : Content ,
2929}
Original file line number Diff line number Diff line change 8585 "/docs/reference/math/cases/" : " untranslated" ,
8686 "/docs/reference/math/class/" : " untranslated" ,
8787 "/docs/reference/math/equation/" : " translated" ,
88- "/docs/reference/math/frac/" : " untranslated " ,
88+ "/docs/reference/math/frac/" : " translated " ,
8989 "/docs/reference/math/lr" : " untranslated" ,
9090 "/docs/reference/math/mat/" : " untranslated" ,
9191 "/docs/reference/math/primes/" : " untranslated" ,
You can’t perform that action at this time.
0 commit comments