# [NTG-context] Framing a linetable?

Giuseppe Bilotta gip.bilotta at iol.it
Sat Jul 28 13:44:52 CEST 2007

Tuesday, July 24, 2007 Hans Hagen wrote:

> Giuseppe Bilotta wrote:
>> Hello all,
>>
>> is it possible to put a frame around a linetable?

> you mean the whole table?

> probably a matter of hooks; linetables work page-wise which may
> complicate things a bit so it has to be applied piecewise

I've been experimenting with this a little.

Putting the whole linetable inside a frame doesn't work
because of the \nointerlinelineskip in

\ifdim\topskipgap=\zeropoint\else¶
\verticalstrut\nobreak\kern-\struttotal\kern-\parskip\nobreak\nointerlineskip % fix topskip¶
\fi¶

in \flushlinetableparts -- if I comment out this section of
the code, the table gets placed, but the frame is somewhat
short.

This is in fact a bug in linetables which I noticed before,
even though it didn't affect me until recently: if the last
line in a table is a \vtop (\linetablemode is 0) with more
than one line of text, the flattening of its depth in
\flushlinetableparts

\dp\tablebox\linetablepart\strutdepth

causes the text after the table to appear *in* the table
itself.

So I commented out the depth smashing, and the frame now has
the correct size.

There is one more thing missing, though, and it's the fact
that the table is typeset halfway to the right of the frame,
as if a large indentation was placed before each line. If I
manage to squeeze out this last bug, I can frame the table
automatically which will be a great advantage for me.

--
Giuseppe "Oblomov" Bilotta