smallcaps
Element
Element functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.Displays text in small capitals.
Example
Hello \
#smallcaps[Hello]
Smallcaps fonts
By default, this enables the OpenType smcp
feature for the font. Not all
fonts support this feature. 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)
引数
Parameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
body
The content to display in small capitals.