@@ -15,23 +15,21 @@ use crate::visualize::Stroke;
1515const DEFAULT_ROW_GAP : Em = Em :: new ( 0.2 ) ;
1616const DEFAULT_COL_GAP : Em = Em :: new ( 0.5 ) ;
1717
18- /// A column vector.
18+ /// 列ベクトル。
1919///
20- /// Content in the vector's elements can be aligned with the
21- /// [`align`]($math.vec.align) parameter, or the `&` symbol.
20+ /// ベクトルの要素内のコンテンツは[`align`]($math.vec.align)パラメーターか`&`記号を用いて配置できます。
2221///
23- /// # Example
22+ /// # 例
2423/// ```example
2524/// $ vec(a, b, c) dot vec(1, 2, 3)
2625/// = a + 2b + 3c $
2726/// ```
2827#[ elem( title = "Vector" , Mathy ) ]
2928pub struct VecElem {
30- /// The delimiter to use.
29+ /// 用いる区切り文字。
3130 ///
32- /// Can be a single character specifying the left delimiter, in which case
33- /// the right delimiter is inferred. Otherwise, can be an array containing a
34- /// left and a right delimiter.
31+ /// 単一の文字で左区切り文字を指定する場合、右区切り文字は自動的に推論されます。
32+ /// それ以外の場合は、左区切り文字と右区切り文字を含む配列を指定します。
3533 ///
3634 /// ```example
3735 /// #set math.vec(delim: "[")
@@ -40,7 +38,7 @@ pub struct VecElem {
4038 #[ default( DelimiterPair :: PAREN ) ]
4139 pub delim : DelimiterPair ,
4240
43- /// The horizontal alignment that each element should have.
41+ /// 各要素の水平方向の配置。
4442 ///
4543 /// ```example
4644 /// #set math.vec(align: right)
@@ -50,7 +48,7 @@ pub struct VecElem {
5048 #[ default( HAlignment :: Center ) ]
5149 pub align : HAlignment ,
5250
53- /// The gap between elements.
51+ /// 要素間の間隔。
5452 ///
5553 /// ```example
5654 /// #set math.vec(gap: 1em)
@@ -60,7 +58,7 @@ pub struct VecElem {
6058 #[ default( DEFAULT_ROW_GAP . into( ) ) ]
6159 pub gap : Rel < Length > ,
6260
63- /// The elements of the vector.
61+ /// ベクトルの要素。
6462 #[ variadic]
6563 pub children : Vec < Content > ,
6664}
0 commit comments