Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

smallcaps
Element
Element
Element functions can be customized with set and show rules.

Displays text in small capitals.

Example

Hello \
#smallcaps[Hello]
Preview

Smallcaps fonts

By default, this uses the smcp and c2sc OpenType features on the font. Not all fonts support these features. Sometimes, smallcaps are part of a dedicated font. This is, for example, the case for the Latin Modern family of fonts. In those cases, you can use a show-set rule to customize the appearance of the text in smallcaps:

#show smallcaps: set text(font: "Latin Modern Roman Caps")

In the future, this function will support synthesizing smallcaps from normal letters, but this is not yet implemented.

Smallcaps headings

You can use a show rule to apply smallcaps formatting to all your headings. In the example below, we also center-align our headings and disable the standard bold font.

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

#show heading: smallcaps
#show heading: set align(center)
#show heading: set text(
  weight: "regular"
)

= Introduction
#lorem(40)
Preview

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

all
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

Whether to turn uppercase letters into small capitals as well.

Unless overridden by a show rule, this enables the c2sc OpenType feature.

Default value:

false

Show example
#smallcaps(all: true)[UNICEF] is an
agency of #smallcaps(all: true)[UN].
Preview

body
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The content to display in small capitals.

Open official docs

Search