注意:该中文文档为社区驱动的非官网文档,可能存在错译、漏译或过时等问题,请以官网文档 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 中文文档

smallcaps

将文本显示为小写形式。

注:这将为字体启用OpenType smcp功能。并非所有字体都支持此功能。 有时小写字母是专用字体的一部分,有时根本不可用。将来,此函数将支持选择专用小写字体以及从普通字母合成小写字母,但尚未实现。

Example

#set par(justify: true)
#set heading(numbering: "I.")

#show heading: it => {
  set block(below: 10pt)
  set text(weight: "regular")
  align(center, smallcaps(it))
}

= Introduction
#lorem(40)
Preview

参数
参数是函数的输入,它们在函数名称后面的括号中传入。

smallcaps() -> content

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

显示为小写形式的文本。