diff options
Diffstat (limited to 'tests/suite/math/cases.typ')
| -rw-r--r-- | tests/suite/math/cases.typ | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/suite/math/cases.typ b/tests/suite/math/cases.typ new file mode 100644 index 00000000..e6c4956d --- /dev/null +++ b/tests/suite/math/cases.typ @@ -0,0 +1,13 @@ +// Test case distinction. + +--- math-cases --- +$ f(x, y) := cases( + 1 quad &"if" (x dot y)/2 <= 0, + 2 &"if" x divides 2, + 3 &"if" x in NN, + 4 &"else", +) $ + +--- math-cases-gap --- +#set math.cases(gap: 1em) +$ x = cases(1, 2) $ |
