[NTG-context] how to get thick and thin borders working in tables (ConTeXt)

Lars Huttar lars_huttar at sil.org
Tue Dec 9 17:48:23 CET 2008


We are using ConTeXt (with XeTeX engine) to typeset some tables that
have borders (rules) between cells.

In the previous edition of the book (which was not done in TeX), some of
the lines between table cells were double, others single. This was done
to show grouping of columns and rows. We have been told that in TeX, or
at least in ConTeXt, you can't do double rules (we'd be happy to be
corrected on that point), so we have been trying to use thick and thin
lines to show grouping.

Thick or thin lines work fine if applied to whole tables or whole cells,
but when there are cells with thick rules on some sides and thin rules
on other sides, it gets confused.

For example, we tried
(a)	\setupTABLE[c][4][leftframe=on,rulethickness=0.5mm]
to set the left border of the fourth column to be thick. This worked.
But then if we use
(b)	\setupTABLE[c][4][rightframe=on,rulethickness=0.25mm]
to set the right border of the same column to be thin, it overrides the
thickness of both left and right borders, so setting (a) is lost.

In other words, we can't seem to get a given cell to have a thick border
on one side and a thin border on the other side. (Well, we could fake it
in some cases by setting rulethickness for an adjacent cell, but that
adjacent cell would then have to have thick borders on all sides.)

Does anybody know if it's possible to do this in ConTeXt? or in TeX?

Thanks for any ideas,

Incidentally, if you set the bottom border of row 1 and the top border
of row 2 each to be thick, the result is additive: you get a
doubly-thick border.

More information about the ntg-context mailing list