翻訳済み
このページは日本語に翻訳済みです。
alignment
軸に沿って何かをalignする位置。
取りうる値は以下の通りです。
start
: テキストの向きの始点に配置。end
: テキストの向きの終点に配置。left
: 左側に配置。center
: 水平方向の中央に配置。right
: 右側に配置。top
: 上側に配置。horizon
: 垂直方向の中央に配置。bottom
: 下側に配置。
これらの値はグローバルスコープでも、alignment型のスコープでも用いることができます。 したがって、以下の2つのどちらでも書くことができます。
#align(center)[Hi]
#align(alignment.center)[Hi]

2次元配置
両方の軸に沿った配置を同時に行うには、+
演算子を用いて2種類の配置を足し合わせます。
例えば、top + right
はコンテンツを右上隅に配置します。
#set page(height: 3cm)
#align(center + bottom)[Hi]

フィールド
x
、y
フィールドには、それぞれ配置の水平成分と垂直成分が(別のalignment
として)保持されます。
これらはnone
になる可能性があります。
#(top + right).x \
#left.x \
#left.y (none)

定義Functions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.
Functions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.
axis
このalignmentが属する軸。
start
、left
、center
、right
およびend
の場合は"horizontal"
top
、horizon
およびbottom
の場合は"vertical"
- 2次元配置の場合は
none
例を表示
#left.axis() \
#bottom.axis()
