Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

大小 [⚠️ need proofread]

强制公式中表达式的大小样式。

这些函数允许手动配置方程元素的大小,使其看起来像在显示/行内方程中使用或像在根或上/下标中使用一样。 [⚠️]

函数

display0.5.0起可用Go to source

Forced display style in math.

This is the normal size for block equations.

Expand展开示例
$sum_i x_i/2 = display(sum_i x_i/2)$
math.display() → content

body
content
必需参数
Question mark
位置参数
Question mark

The content to size.

cramped默认值:false

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

inline0.5.0起可用Go to source

Forced inline (text) style in math.

This is the normal size for inline equations.

Expand展开示例
$ sum_i x_i/2 = inline(sum_i x_i/2) $
math.inline() → content

body
content
必需参数
Question mark
位置参数
Question mark

The content to size.

cramped默认值:false

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

script0.5.0起可用Go to source

Forced script style in math.

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

Expand展开示例
$sum_i x_i/2 = script(sum_i x_i/2)$
math.script() → content

body
content
必需参数
Question mark
位置参数
Question mark

The content to size.

cramped默认值:true

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

sscript0.5.0起可用Go to source

Forced second script style in math.

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

Expand展开示例
$sum_i x_i/2 = sscript(sum_i x_i/2)$
math.sscript() → content

body
content
必需参数
Question mark
位置参数
Question mark

The content to size.

cramped默认值:true

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