From f096f032f0d210142d4f6de87354df65598cdafb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 16 Nov 2015 20:24:34 -0800 Subject: ICML writer: better handling of math. Instead of just printing the raw tex, we now try to fake it with unicode characters. --- tests/writer.icml | 68 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 59 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/writer.icml b/tests/writer.icml index b6f5b5e32..cd71fa86b 100644 --- a/tests/writer.icml +++ b/tests/writer.icml @@ -1864,17 +1864,49 @@ These should not be escaped: \$ \\ \> \[ \{ - 2+2=4 + 2 + + + + + + + + + 2 + + + + = + + + + 4
- - x \in y + + x + + + + + + + + y
- - \alpha \wedge \omega + + α + + + + + + + + ω
@@ -1883,7 +1915,7 @@ These should not be escaped: \$ \\ \> \[ \{
- + p @@ -1895,15 +1927,33 @@ These should not be escaped: \$ \\ \> \[ \{ Here’s some display math: - \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} + $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
Here’s one that has a line break in it: - - \alpha + \omega \times x^2 + + α + + + + + + + + + ω + + + + × + + + + x + + 2 . -- cgit v1.2.3