情報アイコン
情報 / 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".
言語アイコン
翻訳率
21%
言語アイコン
未翻訳

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

scale
要素関数
要素関数
要素関数はsetルールやshowルールでカスタマイズできます。

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
位置引数
位置引数
位置引数は順序通りに指定することで、引数名を省略して設定できます。
設定可能引数
設定可能引数
設定可能引数は、setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。

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
設定可能引数
設定可能引数
設定可能引数は、setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。

The horizontal scaling factor.

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

デフォルト値:

100%

y
設定可能引数
設定可能引数
設定可能引数は、setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。

The vertical scaling factor.

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

デフォルト値:

100%

origin
設定可能引数
設定可能引数
設定可能引数は、setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。

The origin of the transformation.

デフォルト値:

center + horizon

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

reflow
設定可能引数
設定可能引数
設定可能引数は、setルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。

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
必須引数
必須引数
必須引数は、関数を呼び出す際に必ず指定しなければなりません。
位置引数
位置引数
位置引数は順序通りに指定することで、引数名を省略して設定できます。

The content to scale.

検索