overline
Element
Element functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.Adds a line over text.
Example
#overline[A line over text.]
引数
Parameters 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(
stroke: autolengthcolorgradientstrokepatterndictionary, offset: autolength, extent: length, evade: bool, background: bool, content,
) -> contentstroke
How to stroke the line.
If set to auto
, takes on the text's color and a thickness defined in
the current font.
Default:auto
View example
#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
.
Default:auto
View example
#overline(offset: -1.2em)[
The Tale Of A Faraway Line II
]
extent
Settable
Settable 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.The amount by which to extend the line beyond (or within if negative) the content.
Default:0pt
View example
#set overline(extent: 4pt)
#set underline(extent: 4pt)
#overline(underline[Typography Today])
evade
Settable
Settable 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
View example
#overline(
evade: false,
offset: -7.5pt,
stroke: 1pt,
extent: 3pt,
[Temple],
)
background
Settable
Settable 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 is placed behind the content it overlines.
Default:false
View example
#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.