2007/11/6, Peter Rolf <indiego@gmx.net>:
Hi Wolfgang,
what a nice 'minimal' example :)
I'm no table expert, not even an experienced table user. Anyhow, I think
that table is the best choice here. Aside from the bad placing of the
horizontal rules, all is working. This is much more than you can say
from the other candidates.
How about defining your own horizontal rules instead of using the
default \HL ones? See definition of \TableHL and alike in
core-tab.tex.
You can define special horizontal lines for all three occurrences, so
spacing should not be a problem.
Donno if this works out of the box (if table accepts such stuff in head
and tail). All untested, as I don't have much time.
try (ugly and old code, works between normal table lines)
\def\betweentable#1{\TABLEnoalign{\nointerlineskip#1\nointerlineskip}}
\TB[small,medium,...] for vertical spacing and
\betweentable{...} for the line (MP line is always nice)
\TB[small]
\betweentable{\hbox{~~~\reuseMPgraphic{EnglishRule}{color=dimgray,width=81.3mm,height=2pt}}}
\TB[medium]
CHANGE IT HERE <<<
\starttablehead
\HL % <<<
\NC Row 1 \NC Row 2 \NC Row 3 \NC\AR
\HL % <<<
\stoptablehead
\starttabletail
\HL % <<<
\stoptabletail
Hope that helps,
Peter
Hi Peter,
your solution would be really a option but I hope the real bugs will be fixed,
the big space above the footer line did only appear with the repeat option for split.
\starttext
\startbuffer
\starttablehead
\HL
\NC Head 1 \NC Head 2 \NC\AR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttable[|||]
\NC Text \NC Text \NC\AR
\NC Text \NC Text \NC\AR
\NC Text \NC Text \NC\AR
\NC Text \NC Text \NC\AR
\stoptable
\stopbuffer
%\tracetablestrue
\setuptables[split=no]
\getbuffer
\setuptables[split=yes]
\getbuffer
\setuptables[split=repeat]
\getbuffer
\stoptext
The wrong spaces after the header and before the footer in the other examples
are a result of the macro expansion and need also to be solved, because it is
not possile to insert the right nexrow command (\FR and \LR) in the table input
without looking at the final pagebreaks. This should be possible with a few extra
signals after the header and every line and by inserting linecorrection when the
header, footer and tablebody are combined.
Wolfgang