Superscript
super
Renders text in superscript.
The text is rendered smaller and its baseline is raised.
Example
1#super[st] try!#super(
typographic: bool,
baseline: auto | length,
size: auto | length,
body
) -> contentParameters
- typographic:
- description: Whether to use superscript glyphs from the font if available. Ideally, superscripts glyphs are provided by the font (using the
supsOpenType feature). Otherwise, Typst is able to synthesize superscripts by raising and scaling down regular glyphs. When this is set tofalse, synthesized glyphs will be used regardless of whether the font provides dedicated superscript glyphs. Whentrue, synthesized glyphs may still be used in case the font does not provide the necessary superscript glyphs.typst N#super(typographic: true)[1] N#super(typographic: false)[1] - type: bool
- default: true
- description: Whether to use superscript glyphs from the font if available. Ideally, superscripts glyphs are provided by the font (using the
- baseline:
- description: The downward baseline shift for synthesized superscripts. This only applies to synthesized superscripts. In other words, this has no effect if
typographicistrueand the font provides the necessary superscript glyphs. If set toauto, the baseline is shifted according to the metrics provided by the font, with a fallback to-0.5emin case the font does not define the necessary metrics. Note that, since the baseline shift is applied downward, you will need to provide a negative value for the content to appear as raised above the normal baseline. - type: auto | length
- default: auto
- description: The downward baseline shift for synthesized superscripts. This only applies to synthesized superscripts. In other words, this has no effect if
- size:
- description: The font size for synthesized superscripts. This only applies to synthesized superscripts. In other words, this has no effect if
typographicistrueand the font provides the necessary superscript glyphs. If set toauto, the size is scaled according to the metrics provided by the font, with a fallback to0.6emin case the font does not define the necessary metrics. - type: auto | length
- default: auto
- description: The font size for synthesized superscripts. This only applies to synthesized superscripts. In other words, this has no effect if
- body:
- description: The text to display in superscript.
- type: content
- default: None