Difference between revisions of "Linetable"

From Wiki
Jump to navigation Jump to search
m (changed pre to texcode)
(added sample, but it doesn't work right (no colors))
Line 1: Line 1:
 
< [[Tables Overview]]
 
< [[Tables Overview]]
  
There's no docs about this new mode besides in the sources (<tt>core-ltb.tex</tt>). It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically. It can repeat not only rows (headers, footers) but even columns.
+
There's no docs about this new mode besides in the sources (<tt>core-ltb.tex</tt>).
 +
It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically.
 +
It can repeat not only rows (headers, footers) but even columns.
  
 
<texcode>
 
<texcode>
Line 8: Line 10:
 
\startlinetable
 
\startlinetable
 
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR
 
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR
\dorecurse{100}
+
\dorecurse{10}
 
   {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
 
   {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
 
\stoplinetable
 
\stoplinetable
Line 15: Line 17:
 
\NC[style=slanted,color=green,background=color,backgroundcolor=darkred,nx=2,uitlijnen=middle] xxx
 
\NC[style=slanted,color=green,background=color,backgroundcolor=darkred,nx=2,uitlijnen=middle] xxx
 
                 \NC yy \NC ddddd \NC eeee \NC ff \NC \NR
 
                 \NC yy \NC ddddd \NC eeee \NC ff \NC \NR
\dorecurse{100}
+
\dorecurse{10}
 
   {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
 
   {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
 
\stoplinetable
 
\stoplinetable
 
</texcode>
 
</texcode>
 +
 +
The sample looks like this:
 +
 +
<context>
 +
\setupcolors[state=start]
 +
\setuplinetable[n=6,m={2,2,2},regels=25]
 +
 +
\startlinetable
 +
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR
 +
\dorecurse{10}
 +
  {\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{10}
 +
  {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
 +
\stoplinetable
 +
</context>

Revision as of 15:27, 12 September 2004

< Tables Overview

There's no docs about this new mode besides in the sources (core-ltb.tex). It uses eTeX and is for huge tables that can spread over several pages horizontally and vertically. It can repeat not only rows (headers, footers) but even columns.

\setuplinetable[n=6,m={2,2,2},regels=25]

\startlinetable
\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR
\dorecurse{10}
  {\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{10}
  {\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
\stoplinetable

The sample looks like this: