padElementElementElement functions can be customized with set and show rules.
Element
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._

ParameterParameterParameters are input values for functions. Specify them in parentheses after the function name.
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.
pad(left:,top:,,,x:,y:,rest:,)->leftSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
leftSettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.The padding at the left side.
Default value:
0% + 0pttopSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
topSettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.The padding at the top side.
Default value:
0% + 0ptrightSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
rightSettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.The padding at the right side.
Default value:
0% + 0ptbottomSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
bottomSettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.The padding at the bottom side.
Default value:
0% + 0ptxSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
xSettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.A shorthand to set left and right to the same value.
Default value:
0% + 0ptySettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
ySettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.A shorthand to set top and bottom to the same value.
Default value:
0% + 0ptrestSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
restSettable
Settable
Settable parameters can be set using the 
set rule, changing the default value used thereafter.A shorthand to set all four sides to the same value.
Default value:
0% + 0ptbodyRequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
bodyRequired
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
The content to pad at the sides.