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

引数引数引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
引数
引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
typographic
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。Whether to prefer the dedicated subscript characters of the font.
If this is enabled, Typst first tries to transform the text to subscript codepoints. If that fails, it falls back to rendering lowered and shrunk normal letters.
デフォルト値: true
例を表示
N#sub(typographic: true)[1]
N#sub(typographic: false)[1]

baseline
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。The baseline shift for synthetic subscripts. Does not apply if
typographic
is true and the font has subscript codepoints for the
given body
.
デフォルト値: 0.2em
size
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。The font size for synthetic subscripts. Does not apply if
typographic
is true and the font has subscript codepoints for the
given body
.
デフォルト値: 0.6em
body
The text to display in subscript.