注意 当サイトは、Typst v0.12.0 公式ドキュメントを、日本語コミュニティが非公式に翻訳したものです。誤訳・未訳・古い情報が含まれている可能性があるため、公式ドキュメント との併用を推奨します。このサイトの内容に誤りを発見された方は、GitHubリポジトリまでご報告を頂けましたら幸いです。我々のコミュニティにご興味のある方は、ぜひ非公式Discordサーバー「くみはんクラブ」にご参加ください。
Warning: This site provides an unofficial translation of the Typst v0.12.0 documentation by the Japanese Community. Please note that there may be some inaccuracies, untranslated sections or outdated information. We highly recommend referring to the latest official documentation as well. If you find any errors in the content, please let us know through our GitHub repository. If you are interested in our community, feel free to join our unofficial Discord server, “Kumihan Club.”
Typst ドキュメント日本語版

Sizes

Forced size styles for expressions within formulas.

These functions allow manual configuration of the size of equation elements to make them look as in a display/inline equation or as if used in a root or sub/superscripts.

Calculation

display

Forced display style in math.

This is the normal size for block equations.

math.display() -> content
$sum_i x_i/2 = display(sum_i x_i/2)$
Preview

body
content
RequiredPositional
Positional parameters are specified in order, without names.

The content to size.

cramped

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

Default:false

inline

Forced inline (text) style in math.

This is the normal size for inline equations.

math.inline() -> content
$ sum_i x_i/2
    = inline(sum_i x_i/2) $
Preview

body
content
RequiredPositional
Positional parameters are specified in order, without names.

The content to size.

cramped

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

Default:false

script

Forced script style in math.

This is the smaller size used in powers or sub- or superscripts.

math.script() -> content
$sum_i x_i/2 = script(sum_i x_i/2)$
Preview

body
content
RequiredPositional
Positional parameters are specified in order, without names.

The content to size.

cramped

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

Default:true

sscript

Forced second script style in math.

This is the smallest size, used in second-level sub- and superscripts (script of the script).

math.sscript() -> content
$sum_i x_i/2 = sscript(sum_i x_i/2)$
Preview

body
content
RequiredPositional
Positional parameters are specified in order, without names.

The content to size.

cramped

Whether to impose a height restriction for exponents, like regular sub- and superscripts do.

Default:true