summaryrefslogtreecommitdiff
path: root/tex/context/test/x-cals-test.tex
blob: dacfc9626576c70d1bdc855ebc9f4f5f04a458d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% engine=luatex

\usemodule[x][cals]

\setupcolors[state=start]

\startsetups xml:directive:noframe
    \setupTABLE[frame=off]
\stopsetups

\startsetups xml:directive:colors
    \setupTABLE[row]   [odd] [frame=off,background=color,backgroundcolor=red]
    \setupTABLE[row]   [even][frame=off,background=color,backgroundcolor=green]
    \setupTABLE[column][2]   [frame=off,background=color,backgroundcolor=blue]
\stopsetups

\starttext
    \xmlloaddirectives{x-cals-test.cdx}
    \xmlprocess{main}{x-cals-test.xml}{}
\stoptext