注意:该中文文档为社区驱动的非官网文档,可能存在错译、漏译或过时等问题,请以官网文档 Documentation 为准,如发现错漏,也欢迎 您的贡献镜像)。Typst 非官方中文交流 QQ 群:793548390
Warning: the Chinese document is a community-driven non-official document, there may be mistranslation, omission or outdated problems, please refer to the official website documentation.
Typst 中文文档

Styles 函数族

公式中的替代字母形式。

这些函数和 text 函数不同,因为数学字体包含每个字母的多个变体。

函数族

upright

数学中的直立(非斜体)字体样式。

math.upright() -> content
$ upright(A) != A $
Preview

body
content
必需参数位置参数
位置参数按顺序传入,不带名称。

要设定样式的部分。

italic

数学中的斜体字体样式。

这也是罗马字母和希腊小写字母的默认样式。

math.italic() -> content

body
content
必需参数位置参数
位置参数按顺序传入,不带名称。

要设定样式的部分。

bold

数学中的粗体字体样式。

math.bold() -> content
$ bold(A) := B^+ $
Preview

body
content
必需参数位置参数
位置参数按顺序传入,不带名称。

要设定样式的部分。