summaryrefslogtreecommitdiff
path: root/tex/context/base/core-ltb.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2004-12-17 00:00:00 +0100
committerHans Hagen <pragma@wxs.nl>2004-12-17 00:00:00 +0100
commit5604cb0a875f6114b67391fd279060678a9b7937 (patch)
tree443afcf61e75ccfc0f68d851be02dfd50714a803 /tex/context/base/core-ltb.tex
parentaade518a7e81df4cdf6b89559c5afc5192954a5e (diff)
downloadcontext-5604cb0a875f6114b67391fd279060678a9b7937.tar.gz
stable 2004.12.17
Diffstat (limited to 'tex/context/base/core-ltb.tex')
-rw-r--r--tex/context/base/core-ltb.tex29
1 files changed, 16 insertions, 13 deletions
diff --git a/tex/context/base/core-ltb.tex b/tex/context/base/core-ltb.tex
index ba0ba862d..ee00501a1 100644
--- a/tex/context/base/core-ltb.tex
+++ b/tex/context/base/core-ltb.tex
@@ -482,8 +482,8 @@
{\setuplinetable[\c!maxwidth=\zeropoint]}%
\processaction
[\linetableparameter\c!stretch]
- [\v!no=>{\setuplinetable[\c!stretch=\maxdimen]},% no stretch
- \v!yes=>{\setuplinetable[\c!stretch=\zeropoint]}]% max stretch
+ [ \v!no=>{\setuplinetable[\c!stretch=\maxdimen]},% no stretch
+ \v!yes=>{\setuplinetable[\c!stretch=\zeropoint]}]% max stretch
\chardef\linetablerepeat\linetableparameter\c!nleft
\chardef\linetablesplitstate % =
\ifdim\linetableparameter\c!maxwidth>\zeropoint
@@ -754,14 +754,12 @@
\doifnotmode{demo}{\endinput}
-% to be documented, see stan's ledger styles for an example
+\setuplinetable[n=6,m={2,2,2},lines=25] % m ?
-\setuplinetable[n=6,m={2,2,2},regels=25]
-
-\setuplinetable[c][1][width=2cm,background=color,backgroundcolor=red]
-\setuplinetable[c][4][width=3cm,background=color,backgroundcolor=yellow]
-\setuplinetable[c][6][width=3cm,background=color,backgroundcolor=magenta]
-\setuplinetable[r][odd][background=color,backgroundcolor=gray]
+\setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]
+\setuplinetable[c][4] [width=3cm,background=color,backgroundcolor=yellow]
+\setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta]
+\setuplinetable[r][odd] [background=color,backgroundcolor=gray]
\setuplinetable[r][even][background=color,backgroundcolor=green]
\starttext
@@ -774,15 +772,20 @@
\startlinetable
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR
-\dorecurse{100}
- {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
+\dorecurse{100}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
\stoplinetable
\startlinetable
\NC[style=slanted,color=green,background=color,backgroundcolor=darkred,nx=2,uitlijnen=middle] xxx
\NC yy \NC ddddd \NC eeee \NC ff \NC \NR
-\dorecurse{100}
- {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
+\dorecurse{100}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
\stoplinetable
+% \startbuffer[lt]
+% \NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC ee \NC ff \NC \NR
+% \NC aaa\crlf aaa \NC b \NC cc \NC ddd \NC eeee \NC f \NC \NR
+% \stopbuffer
+%
+% \processlinetablebuffer[lt]
+
\stoptext