File: macros.test

package info (click to toggle)
haskell-texmath 0.12.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,408 kB
  • sloc: haskell: 12,870; makefile: 29
file content (45 lines) | stat: -rw-r--r-- 714 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
43
44
45
<<< tex
\newcommand{\abc}{5}
\newcommand{\xyz}[2][x]{%
#1 + #2%
}
\renewcommand{%
\phi%
}{%
\theta%
}
% comment
\newcommand{\aaa}{\b{2}}
\renewcommand{\phi}{\aaa}
\newcommand{\b}[1]{#1}

\newenvironment{ary}
{\begin{array}{cc}
\hline}
{\hline
\end{array}}

\phi
\abc
\xyz[y] {3}
\xyz 3
\xyz \alpha

\begin{ary}
2 & 3\\
4 & 5
\end{ary}

>>> native
[ ENumber "2"
, ENumber "5"
, EGrouped [ EIdentifier "y" , ESymbol Bin "+" , ENumber "3" ]
, EGrouped [ EIdentifier "x" , ESymbol Bin "+" , ENumber "3" ]
, EGrouped
    [ EIdentifier "x" , ESymbol Bin "+" , EIdentifier "\945" ]
, EArray
    [ AlignCenter , AlignCenter ]
    [ [ [ ENumber "2" ] , [ ENumber "3" ] ]
    , [ [ ENumber "4" ] , [ ENumber "5" ] ]
    ]
]