TypstDocumentation

smallcaps

Display text in small capitals.

Note: This enables the OpenType smcp feature for the font. Not all fonts support this feature (including Typst's current default font, unfortunately). Sometimes smallcaps are part of a dedicated font and sometimes they are not available at all. In the future, this function will support selecting a dedicated smallcaps font as well as synthesizing smallcaps from normal letters, but this is not yet implemented.

Example

#set par(justify: true)
#set text(family: "Noto Serif")
#set heading(numbering: "I.")

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

= Introduction
#lorem(40)
Preview

Parameters
Question mark

smallcaps()

text
contentRequiredPositional
Question mark

The text to display to small capitals.