未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
pad
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.Adds spacing around content.
The spacing can be specified for each side individually, or for all sides at once by specifying a positional argument.
Example
#set align(center)
#pad(x: 16pt, image("typing.jpg"))
_Typing speeds can be
measured in words per minute._

引数Parameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
left
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.The padding at the left side.
デフォルト値: 0% + 0pt
top
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.The padding at the top side.
デフォルト値: 0% + 0pt
right
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.The padding at the right side.
デフォルト値: 0% + 0pt
bottom
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.The padding at the bottom side.
デフォルト値: 0% + 0pt
x
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.A shorthand to set left
and right
to the same value.
デフォルト値: 0% + 0pt
y
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.A shorthand to set top
and bottom
to the same value.
デフォルト値: 0% + 0pt
rest
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.A shorthand to set all four sides to the same value.
デフォルト値: 0% + 0pt
body
RequiredRequired parameters must be specified when calling the function.PositionalPositional parameters are specified in order, without names.
Required
Required parameters must be specified when calling the function.
Positional
Positional parameters are specified in order, without names.
The content to pad at the sides.