summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/test/x-cals-test.tex
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2008-06-12 14:33:23 +0000
committerTaco Hoekwater <taco@elvenkind.com>2008-06-12 14:33:23 +0000
commit77b618e7079d37d0f0726cf90980480fccd27d61 (patch)
treea65173590357262770b17e7d92cea899f21311a4 /Master/texmf-dist/tex/context/test/x-cals-test.tex
parentf2a3590782fe979d9db1aaad23f124e779d3aca7 (diff)
were missed
git-svn-id: svn://tug.org/texlive/trunk@8694 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/test/x-cals-test.tex')
-rw-r--r--Master/texmf-dist/tex/context/test/x-cals-test.tex48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/test/x-cals-test.tex b/Master/texmf-dist/tex/context/test/x-cals-test.tex
new file mode 100644
index 00000000000..30645c2bd67
--- /dev/null
+++ b/Master/texmf-dist/tex/context/test/x-cals-test.tex
@@ -0,0 +1,48 @@
+% engine=luatex
+
+\usemodule[x][cals]
+
+\setupcolors[state=start]
+
+\startsetups cdx:cals:table:noframe
+ \setupTABLE[frame=off]
+\stopsetups
+
+\startsetups cdx:cals:table: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
+
+\startsetups cdx:cals:table:vertical
+ \setupTABLE[row] [odd] [frame=off,background=color,backgroundcolor=lightblue]
+\stopsetups
+
+\startsetups cdx:cals:table:horizontal
+ \setupTABLE[column] [odd] [frame=off,background=color,backgroundcolor=lightblue]
+\stopsetups
+
+\startsetups cdx:cals:table:before:frame
+ \framed [offset=overlay,frame=off,topframe=on,bottomframe=on,rulethickness=2pt,framecolor=red,align=normal] \bgroup
+ \vskip2pt
+ \framed [offset=overlay,frame=off,leftframe=on,rightframe=on,rulethickness=1pt,framecolor=red,align=normal] \bgroup
+\stopsetups
+
+\startsetups cdx:cals:table:after:frame
+ \egroup
+ \vskip2pt
+ \egroup
+\stopsetups
+
+% \startxmlsetups xml:cals:process
+% \xmlsetsetup {\xmldocument} {cals:table} {*}
+% \stopxmlsetups
+% \startxmlsetups cals:table
+% \ctxlua{lxml.cals.table("#1")}
+% \stopxmlsetups
+% \xmlregistersetup{xml:cals:process}
+
+\starttext
+ \xmlloaddirectives{x-cals-test.cdx}
+ \xmlprocess{main}{x-cals-test.xml}{}
+\stoptext