@@ -5,27 +5,21 @@ use crate::engine::Engine;
5
5
use crate :: foundations:: { elem, Content , NativeElement , Packed , Show , StyleChain } ;
6
6
use crate :: layout:: { BlockElem , Length , Ratio , Rel } ;
7
7
8
- /// Separates a region into multiple equally sized columns.
8
+ /// 領域を等幅の複数段に分割。
9
9
///
10
- /// The `column` function lets you separate the interior of any container into
11
- /// multiple columns. It will currently not balance the height of the columns.
12
- /// Instead, the columns will take up the height of their container or the
13
- /// remaining height on the page. Support for balanced columns is planned for
14
- /// the future.
10
+ /// `column`関数を用いることで、あらゆるコンテナの内部を複数の段に分割することができます。
11
+ /// 現在、段の高さのバランスは取れません。
12
+ /// その代わり、段はコンテナの高さかページの残りの高さを占めます。
13
+ /// バランスを取った段組は将来的にサポートされる予定です。
15
14
///
16
- /// # Page-level columns { #page-level }
17
- /// If you need to insert columns across your whole document, use the `{page}`
18
- /// function's [`columns` parameter]($page.columns) instead. This will create
19
- /// the columns directly at the page-level rather than wrapping all of your
20
- /// content in a layout container. As a result, things like
21
- /// [pagebreaks]($pagebreak), [footnotes]($footnote), and [line
22
- /// numbers]($par.line) will continue to work as expected. For more information,
23
- /// also read the [relevant part of the page setup
24
- /// guide]($guides/page-setup-guide/#columns).
15
+ /// # ページレベルの段組 { #page-level }
16
+ /// ドキュメント全体に渡る段組を挿入する必要がある場合は、代わりに`{page}`関数の[`columns`パラメーター]($page.columns)を使用してください。
17
+ /// これは、レイアウトコンテナ内のコンテンツ全てをラップするのではなく、ページレベルの段組を直接作成します。
18
+ /// 結果として[改ページ]($pagebreak)、[脚注]($footnote)および[行番号]($par.line)のようなものが期待通りの動作をし続けます。
19
+ /// より詳しくは[ページのセットアップガイドの関連する項目]($guides/page-setup-guide/#columns)をご覧ください。
25
20
///
26
- /// # Breaking out of columns { #breaking-out }
27
- /// To temporarily break out of columns (e.g. for a paper's title), use
28
- /// parent-scoped floating placement:
21
+ /// # 段組の中断 { #breaking-out }
22
+ /// (例えば、論文のタイトルのように)段組を一時的に中断する場合は、親スコープでのフロート配置を使用してください。
29
23
///
30
24
/// ```example:single
31
25
/// #set page(columns: 2, height: 150pt)
@@ -43,17 +37,17 @@ use crate::layout::{BlockElem, Length, Ratio, Rel};
43
37
/// ```
44
38
#[ elem( Show ) ]
45
39
pub struct ColumnsElem {
46
- /// The number of columns.
40
+ /// 段数。
47
41
#[ positional]
48
42
#[ default( NonZeroUsize :: new( 2 ) . unwrap( ) ) ]
49
43
pub count : NonZeroUsize ,
50
44
51
- /// The size of the gutter space between each column.
45
+ /// 段間。
52
46
#[ resolve]
53
47
#[ default( Ratio :: new( 0.04 ) . into( ) ) ]
54
48
pub gutter : Rel < Length > ,
55
49
56
- /// The content that should be layouted into the columns.
50
+ /// 段内にレイアウトされるべきコンテンツ。
57
51
#[ required]
58
52
pub body : Content ,
59
53
}
@@ -66,13 +60,12 @@ impl Show for Packed<ColumnsElem> {
66
60
}
67
61
}
68
62
69
- /// Forces a column break.
63
+ /// 強制的な段の区切り。
70
64
///
71
- /// The function will behave like a [page break]($pagebreak) when used in a
72
- /// single column layout or the last column on a page. Otherwise, content after
73
- /// the column break will be placed in the next column.
65
+ /// この関数は、一段組やページ中の最後の段で使用されると、[改ページ]($pagebreak)と同じように振る舞います。
66
+ /// それ以外の場合、段区切りの後のコンテンツは次の段に配置されます。
74
67
///
75
- /// # Example
68
+ /// # 例
76
69
/// ```example
77
70
/// #set page(columns: 2)
78
71
/// Preliminary findings from our
@@ -91,8 +84,7 @@ impl Show for Packed<ColumnsElem> {
91
84
/// ```
92
85
#[ elem( title = "Column Break" ) ]
93
86
pub struct ColbreakElem {
94
- /// If `{true}`, the column break is skipped if the current column is
95
- /// already empty.
87
+ /// `{true}`の場合、現在の段がすでに空のとき段区切りが実行されません。
96
88
#[ default( false ) ]
97
89
pub weak : bool ,
98
90
}
0 commit comments