TypstDocumentation

overlineShowable
Question mark

Add a line over text.

Example

#overline[A line over text.]
Preview

Parameters
Question mark

body
contentRequiredPositional
Question mark

The content to add a line over.

stroke
autolengthcolorstrokeShorthand
Question mark
Settable
Question mark

How to stroke the line. The text color and thickness are read from the font tables if auto.

#set text(fill: olive)
#overline(
  stroke: green.darken(20%),
  offset: -12pt,
  [The Forest Theme],
)
Preview

offset
autolengthSettable
Question mark

Position of the line relative to the baseline, read from the font tables if auto.

#overline(offset: -1.2em)[
  The Tale Of A Faraway Line II
]
Preview

extent
lengthSettable
Question mark

Amount that the line will be longer or shorter than its associated text.

#set overline(extent: 4pt)
#set underline(extent: 4pt)
#overline(underline[Typography Today])
Preview

evade
booleanSettable
Question mark

Whether the line skips sections in which it would collide with the glyphs.

#overline(
  evade: false,
  offset: -7.5pt,
  stroke: 1pt,
  extent: 3pt,
  [Temple],
)
Preview