情報アイコン
情報 / Info
当サイトは、Typst GmbHの許諾を得て、日本語コミュニティ「Typst Japan Community」がTypst v0.13.1の公式ドキュメントを翻訳したものです。誤訳や古い情報が含まれている可能性があるため、公式ドキュメントとの併用を推奨します。翻訳の改善やサイトの機能向上について、GitHubでのIssueやPull Requestを歓迎します。コミュニティにご興味のある方はDiscordサーバー「くみはんクラブ」にぜひご参加ください。
This site provides a Japanese translation of the Typst v0.13.1 documentation maintained by the "Typst Japan Community" with permission from Typst GmbH. We recommend using this alongside the official documentation. We welcome contributions through Issues and Pull Requests on our GitHub repository for both translation improvements and website enhancements. Feel free to join our Discord server "Kumihan Club".
言語アイコン
未翻訳

このページはまだ翻訳されていません。原文の内容が表示されています。

scale
Element
ヘルプアイコン

Scales content without affecting layout.

Lets you mirror content by specifying a negative scale on a single axis.

Example

#set align(center)
#scale(x: -100%)[This is mirrored.]
#scale(x: -100%, reflow: true)[This is mirrored.]
Preview

引数
ヘルプアイコン

factor
Positional
ヘルプアイコン
Settable
ヘルプアイコン

The scaling factor for both axes, as a positional argument. This is just an optional shorthand notation for setting x and y to the same value.

デフォルト値:

100%

x
Settable
ヘルプアイコン

The horizontal scaling factor.

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

デフォルト値:

100%

y
Settable
ヘルプアイコン

The vertical scaling factor.

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

デフォルト値:

100%

origin
Settable
ヘルプアイコン

The origin of the transformation.

デフォルト値:

center + horizon

右矢印アイコン
例を表示
A#box(scale(75%)[A])A \
B#box(scale(75%, origin: bottom + left)[B])B
Preview

reflow
Settable
ヘルプアイコン

Whether the scaling impacts the layout.

If set to false, the scaled content will be allowed to overlap other content. If set to true, it will compute the new size of the scaled content and adjust the layout accordingly.

デフォルト値:

false

右矢印アイコン
例を表示
Hello #scale(x: 20%, y: 40%, reflow: true)[World]!
Preview

body
Required
ヘルプアイコン
Positional
ヘルプアイコン

The content to scale.

検索