pad
ShowableShowable functions can be customized with show
rules.
Showable functions can be customized with
show
rules.Add spacing around content.
The pad
function 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._

ParametersParameters 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.
pad()
body
The content to pad at the sides.
left
The padding at the left side.
right
The padding at the right side.
top
The padding at the top side.
bottom
The padding at the bottom side.
x
The horizontal padding. Both left
and right
take precedence over this.
y
The vertical padding. Both top
and bottom
take precedence over this.
rest
The padding for all sides. All other parameters take precedence over this.