Wolfgang Schuster wrote:
2007/3/28, Johannes Kuester
mailto:jk@typoma.com>: It seems linetable would do just what I need (at least I get rid of the strut / unwanted vertical spacing problem, so I do get a grid-keeping table), but:
Is there a way to use linetable in two-column mode? (i.e. the consecutive lines of my table should be set just like normal text would in two-column mode).
Hi Johannes,
a short example to play for you. The important things are the stretch and the lines key in \setuplinetable. You should also look at the end of core-ltb, it contains a few interresting examples.
\setuplinetable[stretch=yes,lines=fit]
\starttext
\startcolumns
\startlinetable \dorecurse{80}{\NC Text \NC Text \NC\NR} \stoplinetable
\stopcolumns
\stoptext
Wolfgang
Hi Wolfgang, I already looked at the examples in core-ltb, and on the wiki. Still linetable does not work in my specific case (with my layout options etc.), but I can't trace down why it does not. But linetable seems to have problems in general, when used in columns. When I try your example with more input lines (thus running over more than one page), say %%%%%%%%%% \setuplayout[grid=yes] \showgrid \setuplinetable[stretch=yes,lines=fit] \starttext \startcolumns \startlinetable \dorecurse{180}{\NC Text \NC Text \NC\NR} \stoplinetable \stopcolumns \stoptext %%%%%%%%%% I get a correct left column (on page 1 and 2), but the right column is three lines too long. Setting the number of lines: \setuplinetable[lines=41] would help for one-line cell entries (then each column has the correct number of lines on the page), but in my case with multi-line entries, each such entry is counted as one line, thus resulting in a too long column. So, linetable does not do the job. Back to tabulate, I presume, but tabulate has the strut problem. Johannes -- Johannes Kuester typoma mailto:jk@typoma.com http://www.typoma.com