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

ParameterParameterParameters are input values for functions. Specify them in parentheses after the function name.
Parameter
Parameters are input values for functions. Specify them 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.
Show example
#set text(fill: olive)
#overline(
stroke: green.darken(20%),
offset: -12pt,
[The Forest Theme],
)

Default value: auto
offset
The position of the line relative to the baseline. Read from the font
tables if auto.
Show example
#overline(offset: -1.2em)[
The Tale Of A Faraway Line II
]

Default value: auto
extentSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
Settable
Settable
Settable parameters can be set using the
set rule, changing the default value used thereafter.The amount by which to extend the line beyond (or within if negative) the content.
Show example
#set overline(extent: 4pt)
#set underline(extent: 4pt)
#overline(underline[Typography Today])

Default value: 0pt
evadeSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
Settable
Settable
Settable parameters can be set using the
set rule, changing the default value used thereafter.Whether the line skips sections in which it would collide with the glyphs.
Show example
#overline(
evade: false,
offset: -7.5pt,
stroke: 1pt,
extent: 3pt,
[Temple],
)

Default value: true
backgroundSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
Settable
Settable
Settable parameters can be set using the
set rule, changing the default value used thereafter.Whether the line is placed behind the content it overlines.
Show example
#set overline(stroke: (thickness: 1em, paint: maroon, cap: "round"))
#overline(background: true)[This is stylized.] \
#overline(background: false)[This is partially hidden.]

Default value: false
bodyRequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
The content to add a line over.