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

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

Left/Right

Delimiter matching.

The lr function allows you to match two delimiters and scale them with the content they contain. While this also happens automatically for delimiters that match syntactically, lr allows you to match two arbitrary delimiters and control their size exactly. Apart from the lr function, Typst provides a few more functions that create delimiter pairings for absolute, ceiled, and floored values as well as norms.

Example

$ [a, b/2] $
$ lr(]sum_(x=1)^n], size: #50%) x $
$ abs((x + y) / 2) $
Preview

Function

lr
Element
ヘルプアイコン

Scales delimiters.

While matched delimiters scale by default, this can be used to scale unmatched delimiters and to control the delimiter scaling more precisely.

size
Settable
ヘルプアイコン

The size of the brackets, relative to the height of the wrapped content.

デフォルト値:

100% + 0pt

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

The delimited content, including the delimiters.

mid
Element
ヘルプアイコン

Scales delimiters vertically to the nearest surrounding lr() group.

math.mid()->
$ { x mid(|) sum_(i=1)^n w_i|f_i (x)| < 1 } $
Preview

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

The content to be scaled.

abs

Takes the absolute value of an expression.

$ abs(x/2) $
Preview

size

The size of the brackets, relative to the height of the wrapped content.

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

The expression to take the absolute value of.

norm

Takes the norm of an expression.

$ norm(x/2) $
Preview

size

The size of the brackets, relative to the height of the wrapped content.

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

The expression to take the norm of.

floor

Floors an expression.

$ floor(x/2) $
Preview

size

The size of the brackets, relative to the height of the wrapped content.

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

The expression to floor.

ceil

Ceils an expression.

$ ceil(x/2) $
Preview

size

The size of the brackets, relative to the height of the wrapped content.

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

The expression to ceil.

round

Rounds an expression.

$ round(x/2) $
Preview

size

The size of the brackets, relative to the height of the wrapped content.

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

The expression to round.

検索