Documentation

padElement
Question mark
Go to source

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

left
relative
Settable
Question mark
Default: 0% + 0pt

The padding at the left side.

top
relative
Settable
Question mark
Default: 0% + 0pt

The padding at the top side.

right
relative
Settable
Question mark
Default: 0% + 0pt

The padding at the right side.

bottom
relative
Settable
Question mark
Default: 0% + 0pt

The padding at the bottom side.

xDefault: 0% + 0pt

A shorthand to set left and right to the same value.

yDefault: 0% + 0pt

A shorthand to set top and bottom to the same value.

restDefault: 0% + 0pt

A shorthand to set all four sides to the same value.

body
content
RequiredPositional
Question mark

The content to pad at the sides.