未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
underline
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.Underlines text.
Example
This is #underline[important].

引数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.
stroke
How to stroke the line.
If set to auto
, takes on the text's color and a thickness defined in
the current font.
デフォルト値: auto
例を表示
Take #underline(
stroke: 1.5pt + red,
offset: 2pt,
[care],
)

offset
The position of the line relative to the baseline, read from the font
tables if auto
.
デフォルト値: auto
例を表示
#underline(offset: 5pt)[
The Tale Of A Faraway Line I
]

extent
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 amount by which to extend the line beyond (or within if negative) the content.
デフォルト値: 0pt
例を表示
#align(center,
underline(extent: 2pt)[Chapter 1]
)

evade
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 the line skips sections in which it would collide with the glyphs.
デフォルト値: true
例を表示
This #underline(evade: true)[is great].
This #underline(evade: false)[is less great].

background
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 the line is placed behind the content it underlines.
デフォルト値: false
例を表示
#set underline(stroke: (thickness: 1em, paint: maroon, cap: "round"))
#underline(background: true)[This is stylized.] \
#underline(background: false)[This is partially hidden.]

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 content to underline.