From f8bca0e161705fc99fffd248ed4be897e940b2df Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 14 Apr 2015 01:33:19 +0200 Subject: Allow non-Greedy short form to eat normal commands. E.g. with regrads to the math ontology, this change allows syntax like \(a^\frac{1}{2}\) which is also valid in TeX (added corresponding tests). --- testdata/integration/user_defined_syntax/math_various.in.osml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testdata/integration/user_defined_syntax/math_various.in.osml') diff --git a/testdata/integration/user_defined_syntax/math_various.in.osml b/testdata/integration/user_defined_syntax/math_various.in.osml index f251bff..8433777 100644 --- a/testdata/integration/user_defined_syntax/math_various.in.osml +++ b/testdata/integration/user_defined_syntax/math_various.in.osml @@ -3,5 +3,6 @@ \sum_{i=5}^10 \\ \int_{\var{x} -> -1}^{\var{x} -> 1} \sqrt{x^{2} - 1} dx &= \frac{π}{2}\\ \fun{f}{x, y} |-> \frac{x^{2}}{2} + y^2\\ - $ a ^ 2 + \var{b}^2 &= $c^{2} + $ a ^ 2 + \var{b}^2 &= $c^{2} \\ + a^\frac{1}{2} &= \sqrt{a} \end{math} -- cgit v1.2.3