Hi everyone, college student new to typesetting. I’ve been using Typst for lecture notes and doing homeworks for my introductory statistics class, and I wanted to know how to write a piecewise function, like the following
f(x) = {x, 0 < x < 1,
2 - x, 1 <= x < 2,
0, elsewhere.
(where the { brace is big and includes all the cases.)
I appreciate the help a lot and thanks for a wonderful tool.