overline
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.Add a line over text.
Example
#overline[A line over text.]

ParametersParameters 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.
overline() -> content
stroke
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.How to stroke the line.
See the line's documentation for more details. If
set to auto
, takes on the text's color and a thickness defined in
the current font.
Default: auto
#set text(fill: olive)
#overline(
stroke: green.darken(20%),
offset: -12pt,
[The Forest Theme],
)

offset
Position of the line relative to the baseline, read from the font tables
if auto
.
Default: auto
#overline(offset: -1.2em)[
The Tale Of A Faraway Line II
]

extent
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.Amount that the line will be longer or shorter than its associated text.
Default: 0pt
#set overline(extent: 4pt)
#set underline(extent: 4pt)
#overline(underline[Typography Today])

evade
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
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.
Default: true
#overline(
evade: false,
offset: -7.5pt,
stroke: 1pt,
extent: 3pt,
[Temple],
)

body
The content to add a line over.