未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
super
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.Renders text in superscript.
The text is rendered smaller and its baseline is raised.
Example
1#super[st] try!

引数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.
typographic
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.Whether to prefer the dedicated superscript characters of the font.
If this is enabled, Typst first tries to transform the text to superscript codepoints. If that fails, it falls back to rendering raised and shrunk normal letters.
デフォルト値:
true
例を表示
N#super(typographic: true)[1]
N#super(typographic: false)[1]

baseline
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.The baseline shift for synthetic superscripts. Does not apply if
typographic
is true and the font has superscript codepoints for the
given body
.
デフォルト値:
-0.5em
size
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.The font size for synthetic superscripts. Does not apply if
typographic
is true and the font has superscript codepoints for the
given body
.
デフォルト値:
0.6em
body
RequiredRequired parameters must be specified when calling the function.PositionalPositional parameters are specified in order, without names.
Required
Required parameters must be specified when calling the function.
Positional
Positional parameters are specified in order, without names.
The text to display in superscript.