File: 12.test

package info (click to toggle)
haskell-texmath 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 31,484 kB
  • sloc: haskell: 12,948; makefile: 29
file content (42 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<<< tex
f(x) =
 \begin{cases}
 1 & -1 \le x < 0 \\
 \frac{1}{2} & x = 0 \\
 1 - x^2 & \mbox{otherwise}
 \end{cases}


>>> native
[ EIdentifier "f"
, ESymbol Open "("
, EIdentifier "x"
, ESymbol Close ")"
, ESymbol Rel "="
, EDelimited
    "{"
    ""
    [ Right
        (EArray
           [ AlignLeft , AlignLeft ]
           [ [ [ ENumber "1" ]
             , [ ESymbol Ord "\8722"
               , ENumber "1"
               , ESymbol Rel "\8804"
               , EIdentifier "x"
               , ESymbol Rel "<"
               , ENumber "0"
               ]
             ]
           , [ [ EFraction NormalFrac (ENumber "1") (ENumber "2") ]
             , [ EIdentifier "x" , ESymbol Rel "=" , ENumber "0" ]
             ]
           , [ [ ENumber "1"
               , ESymbol Bin "\8722"
               , ESuper (EIdentifier "x") (ENumber "2")
               ]
             , [ EText TextNormal "otherwise" ]
             ]
           ])
    ]
]