TypstDocumentation

overlineElement
Question mark

Add a line over text.

Example

#overline[A line over text.]
Preview

Parameters
Question mark

stroke
auto or length or color or dictionary or stroke
Settable
Question mark

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],
)
Preview

offset
auto or length
Settable
Question mark

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
]
Preview

extent
length
Settable
Question mark

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])
Preview

evade
boolean
Settable
Question mark

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],
)
Preview

body
content
RequiredPositional
Question mark

The content to add a line over.