ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <gip.bilotta@iol.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Framing a linetable?
Date: Sat, 28 Jul 2007 13:44:52 +0200	[thread overview]
Message-ID: <190826408.20070728134452@iol.it> (raw)
In-Reply-To: <46A5D673.7030103@wxs.nl>

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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      parent reply	other threads:[~2007-07-28 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-24  8:00 Giuseppe Bilotta
2007-07-24 10:37 ` Hans Hagen
2007-07-24 15:52   ` Giuseppe Bilotta
2007-07-28 11:44   ` Giuseppe Bilotta [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=190826408.20070728134452@iol.it \
    --to=gip.bilotta@iol.it \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).