accent
Element
Element functions can be customized with set
and show
rules.
Attaches an accent to a base.
Example
$grave(a) = accent(a, `)$ \
$arrow(a) = accent(a, arrow)$ \
$tilde(a) = accent(a, \u{0303})$
Parameters
Parameters are the inputs to a function. They are specified in
parentheses after the function name.
base
Required Positional
Positional parameters are specified in order, without names.
The base to which the accent is applied.
May consist of multiple letters.
View example
accent
Required Positional
Positional parameters are specified in order, without names.
The accent to apply to the base.
Supported accents include:
Accent | Name | Codepoint |
Grave | grave | ` |
Acute | acute | ยด |
Circumflex | hat | ^ |
Tilde | tilde | ~ |
Macron | macron | ยฏ |
Dash | dash | โพ |
Breve | breve | ห |
Dot | dot | . |
Double dot, Diaeresis | dot.double , diaer | ยจ |
Triple dot | dot.triple | โ |
Quadruple dot | dot.quad | โ |
Circle | circle | โ |
Double acute | acute.double | ห |
Caron | caron | ห |
Right arrow | arrow , -> | โ |
Left arrow | arrow.l , <- | โ |
Left/Right arrow | arrow.l.r | โ |
Right harpoon | harpoon | โ |
Left harpoon | harpoon.lt | โผ |
size
Settable
Settable parameters can be customized for all following uses of the
function with a set
rule.
The size of the accent, relative to the width of the base.
Default: 100% + 0pt