Documentation

accentElement
๐ŸŒ Accent Function โ€“ Typst DocumentationTypstGitHubDiscordMastodonBlueskyLinkedInTypstQuestion markQuestion markQuestion markQuestion markQuestion mark - typst.app

Attaches an accent to a base.

Example

$grave(a) = accent(a, `)$ \
$arrow(a) = accent(a, arrow)$ \
$tilde(a) = accent(a, \u{0303})$
Preview

Parameters
๐ŸŒ Accent Function โ€“ Typst DocumentationTypstGitHubDiscordMastodonBlueskyLinkedInTypstQuestion markQuestion markQuestion markQuestion markQuestion mark - typst.app

base
content
Required Positional
๐ŸŒ Accent Function โ€“ Typst DocumentationTypstGitHubDiscordMastodonBlueskyLinkedInTypstQuestion markQuestion markQuestion markQuestion markQuestion mark - typst.app

The base to which the accent is applied. May consist of multiple letters.

View example
$arrow(A B C)$
Preview

accent
str or content
Required Positional
๐ŸŒ Accent Function โ€“ Typst DocumentationTypstGitHubDiscordMastodonBlueskyLinkedInTypstQuestion markQuestion markQuestion markQuestion markQuestion mark - typst.app

The accent to apply to the base.

Supported accents include:

AccentNameCodepoint
Gravegrave`
Acuteacuteยด
Circumflexhat^
Tildetilde~
Macronmacronยฏ
Dashdashโ€พ
Brevebreveห˜
Dotdot.
Double dot, Diaeresisdot.double, diaerยจ
Triple dotdot.tripleโƒ›
Quadruple dotdot.quadโƒœ
Circlecircleโˆ˜
Double acuteacute.doubleห
Caroncaronห‡
Right arrowarrow, ->โ†’
Left arrowarrow.l, <-โ†
Left/Right arrowarrow.l.rโ†”
Right harpoonharpoonโ‡€
Left harpoonharpoon.ltโ†ผ

size
relative
Settable
๐ŸŒ Accent Function โ€“ Typst DocumentationTypstGitHubDiscordMastodonBlueskyLinkedInTypstQuestion markQuestion markQuestion markQuestion markQuestion mark - typst.app

The size of the accent, relative to the width of the base.

Default: 100% + 0pt