Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

pad元素
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._

参数
Question mark

left
relative
可用set规则
Question mark
默认值:0% + 0pt

The padding at the left side.

top
relative
可用set规则
Question mark
默认值:0% + 0pt

The padding at the top side.

right
relative
可用set规则
Question mark
默认值:0% + 0pt

The padding at the right side.

bottom
relative
可用set规则
Question mark
默认值:0% + 0pt

The padding at the bottom side.

x默认值:0% + 0pt

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

y默认值:0% + 0pt

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

rest默认值:0% + 0pt

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

body
content
必需参数
Question mark
位置参数
Question mark

The content to pad at the sides.