From d056280165b981ef7a11f5bfb02417ef96760352 Mon Sep 17 00:00:00 2001 From: LU Jialin Date: Mon, 11 Sep 2023 16:47:08 +0800 Subject: Wrap into an equation when a Math expr is evaluated (#2081) --- tests/ref/bugs/math-eval.png | Bin 0 -> 2610 bytes tests/typ/bugs/math-eval.typ | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 tests/ref/bugs/math-eval.png create mode 100644 tests/typ/bugs/math-eval.typ (limited to 'tests') diff --git a/tests/ref/bugs/math-eval.png b/tests/ref/bugs/math-eval.png new file mode 100644 index 00000000..cdfd4cce Binary files /dev/null and b/tests/ref/bugs/math-eval.png differ diff --git a/tests/typ/bugs/math-eval.typ b/tests/typ/bugs/math-eval.typ new file mode 100644 index 00000000..31450b8d --- /dev/null +++ b/tests/typ/bugs/math-eval.typ @@ -0,0 +1,5 @@ +// Evaluating a math expr should renders the same as an equation + +#eval(mode: "math", "f(a) = cases(a + b\, space space x >= 3,a + b\, space space x = 5)") + +$f(a) = cases(a + b\, space space x >= 3,a + b\, space space x = 5)$ -- cgit v1.2.3