未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
overline
要素関数要素関数要素関数はset
ルールやshow
ルールでカスタマイズできます。
要素関数
要素関数は
set
ルールやshow
ルールでカスタマイズできます。Adds a line over text.
Example
#overline[A line over text.]

引数引数引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
引数
引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
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
例を表示
#set text(fill: olive)
#overline(
stroke: green.darken(20%),
offset: -12pt,
[The Forest Theme],
)

offset
The position of the line relative to the baseline. Read from the font
tables if auto
.
デフォルト値: auto
例を表示
#overline(offset: -1.2em)[
The Tale Of A Faraway Line II
]

extent
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。The amount by which to extend the line beyond (or within if negative) the content.
デフォルト値: 0pt
例を表示
#set overline(extent: 4pt)
#set underline(extent: 4pt)
#overline(underline[Typography Today])

evade
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。Whether the line skips sections in which it would collide with the glyphs.
デフォルト値: true
例を表示
#overline(
evade: false,
offset: -7.5pt,
stroke: 1pt,
extent: 3pt,
[Temple],
)

background
設定可能引数設定可能引数設定可能引数は、set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。
設定可能引数
設定可能引数
設定可能引数は、
set
ルールを用いて設定でき、それ以降で使用するデフォルト値を変更できます。Whether the line is placed behind the content it overlines.
デフォルト値: false
例を表示
#set overline(stroke: (thickness: 1em, paint: maroon, cap: "round"))
#overline(background: true)[This is stylized.] \
#overline(background: false)[This is partially hidden.]

body
The content to add a line over.