How can I get the equivalent from LaTeX command \overline{BC} using typst?

260 Views Asked by At

I want to note a segment between two points, B and C. Using Latex, I can get it by $\overline{BC}$. In typst app, I don't know how to do it.

The best approximation in typst is $overline("BC")$ but the points B and C are now in upright font, naturally. I need them to be in an italic font like this: BC

Using $overline("_BC_") does not work.

1

There are 1 best solutions below

0
On BEST ANSWER

Typst interprets $BC$ as a function (or variable) called "BC". Only single characters are interpreted as text. This means you can use: $overline(B C)$.

You can also explicitly state that you want italics: $overline(italic("BC"))$