Is there a function similar to `overbrace` without the brace?

I want to achieve the same as

$
  overbrace(harpoons.rtlb, -H^+)
$

but without the brace, so just the text over a section of a equation

Hey @Libadoxon, welcome to the forum! I’ve changed your question post’s title to better fit our guidelines: How to post in the Questions category

For future posts, make sure your title is a question you’d ask to a friend about Typst. :wink:

1 Like

You could combine the attach function with limits, to display text over or under an equation

$
y=attach(limits(2x^2+7x-3), t:"term")
$

which results in the following

If you want, you can create a custom function

#let overset(a, b) = {
 math.attach(math.limits(a), t: b)
}

$
overset(a(x-b)^2+c, "quadratic function")
$

IMG_4248

1 Like