このページはまだ翻訳されていません。原文の内容が表示されています。
super
要素関数要素関数要素関数はset
ルールやshow
ルールでカスタマイズできます。
set
ルールやshow
ルールでカスタマイズできます。Renders text in superscript.
The text is rendered smaller and its baseline is raised.
Example
1#super[st] try!

引数引数引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
typographic
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。Whether to create artificial superscripts by raising and scaling down regular glyphs.
Ideally, superscripts glyphs are provided by the font (using the sups
OpenType feature). Otherwise, Typst is able to synthesize superscripts.
When this is set to false
, synthesized glyphs will be used
regardless of whether the font provides dedicated superscript glyphs.
When true
, synthesized glyphs may still be used in case the font
does not provide the necessary superscript glyphs.
デフォルト値: true
例を表示
N#super(typographic: true)[1]
N#super(typographic: false)[1]

baseline
The downward baseline shift for synthesized superscripts.
This only applies to synthesized superscripts. In other words, this has
no effect if typographic
is true
and the font provides the
necessary superscript glyphs.
If set to auto
, the baseline is shifted according to the metrics
provided by the font, with a fallback to -0.5em
in 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.
デフォルト値: auto
size
The font size for synthesized superscripts.
This only applies to synthesized superscripts. In other words, this has
no effect if typographic
is true
and the font provides the
necessary superscript glyphs.
If set to auto
, the size is scaled according to the metrics provided
by the font, with a fallback to 0.6em
in case the font does not
define the necessary metrics.
デフォルト値: auto
body
The text to display in superscript.