Skip to main content
Glama
smallcaps.md1.34 kB
# Small Capitals ## `smallcaps` Displays text in small capitals. # Example ```example Hello \ #smallcaps[Hello] ``` # 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: ```typ #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]($styling/#show-rules) to apply smallcaps formatting to all your headings. In the example below, we also center-align our headings and disable the standard bold font. ```example #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) ``` ## Parameters ### all Whether to turn uppercase letters into small capitals as well. Unless overridden by a show rule, this enables the `c2sc` OpenType feature. ### body *(required)* The content to display in small capitals. ## Returns - content

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server