How to do a function restriction/corestriction?

Hello, i would like to do something like this :
Screenshot from 2025-11-22 14-47-28
(this is currently LaTeX). It means restrict P to the intervall [u_k,u(k+1)]. The best i could do in Typst is :
Screenshot from 2025-11-22 14-34-01
with

$ attach(P, br: bar [u_k, u_(k+1)]) $

but it’s not like LaTeX :crying_cat_face:

1 Like

The usual way is like this:

#import "@preview/physica:0.9.7": evaluated
$ evaluated(P)_[u_k, u_(k+1)](0) $

And evaluated uses math.lr with nothing on one side and | on the other side.

2 Likes

Thanks for your solution !!