How to use LaTeX's \langle and \rangle functions in Typst?

Hello! I would like to know how to display an average value using the <> brackets. In LaTeX, one would write \left\langle X \right\rangle for the average value of X. I looked a bit on the internet, in the doc and in the forum, and I could not find any mention of something that approaches what I’m looking for…

Thank you in advance for helping out!

Hello @jonas.bloch, most symbols in the typst documentation have their LaTeX equivalent also available for queries.

If you type “langle” in the search box, it should pop up “sym”, see General Symbols – Typst Documentation

After, you can click on the symbol to get
image

$angle.l x angle.r$

should give you
image

P.S.: you can also take a look at https://detypify.quarticcat.com/, see this response by How can I more easily input unicode characters? - #2 by PgBiel

1 Like

One thing to add is that you can scale the brackets with the content they enclose by using the lr() function.

For example:

$ angle.l sum_(x=1)^n angle.r $
$ lr(angle.l sum_(x=1)^n angle.r, size: #75%) x $

image

2 Likes