TypstDocumentation

scaleShowable
Question mark

Scale content without affecting layout.

The scale function allows you to scale and mirror content without affecting the layout.

Example

#set align(center)
#scale(x: -100%)[👍]👩‍🦱👍
Preview

Parameters
Question mark

body
contentRequiredPositional
Question mark

The content to scale.

x

The horizontal scaling factor.

The body will be mirrored horizontally if the parameter is negative.

y

The vertical scaling factor.

The body will be mirrored vertically if the parameter is negative.

origin
alignment2d alignmentSettable
Question mark

The origin of the transformation.

By default, the origin is the center of the scaled element.

A#scale(75%)[A]A \
B#scale(75%, origin: bottom + left)[B]B
Preview