Skip to Content.
Sympa Menu

texmacs-users - Re: border of a tabular

Subject: mailing-list for TeXmacs Users

List archive

Re: border of a tabular


Chronological Thread 
  • From: David Allouche <address@hidden>
  • To: address@hidden
  • Subject: Re: border of a tabular
  • Date: Tue, 15 Oct 2002 12:16:19 +0200

On Thu, Sep 26, 2002 at 02:42:41PM +0200, Didier Bretin wrote:
> Hello,
>
> I try to change the border line of a tabular. If I select all my
> cells with my mouse and then I change border width with 1ln for
> example only some boder appear, not all the border.

That is indeed a bug.

The problem is the 'table-set-border-ia' procedure calls
'table-set-format' four times in a row, but 'table-set-format' clears
the selection. So only the first 'table-set-format' (left border) call
has the right selection.

I reported it at:

http://alqua.com/tmresources/bug%20-%20setting%20border%20of%20table%20selection

> I succeded in changing this only by changing the 'cell operation
> mode' to 'entire table'.

That is indeed the way things are expected to be done.

Yet this will not produce the desired effect, because borders of
adjacent cells add up. For example:

+---+---+
| A | B |
+---+---+

If you set the 'border' of both cells to 1ln, you will set four
borders (top, left, bottom, right) of both cells. That will cause the
line between the two cells to be 2ln wide, because that border will be
made of the right border of the A cell and the left border of the B
cell.

The same problem applies to top and bottom borders of adjacent rows.

In normal 'blocks', only the cells of the top row have a top border,
and only cells of the leftmost column have a left border. All other
cells only have right and bottom borders.

Yes, that is bad. Instead TeXmacs should behave for cells borders as
it does for vertical space, so only the maximum value of adjacent
borders is used. That can be generalized to dashed and double-lined
borders, but it may be problematic to generalize to borders of
different colors...

Joris, is that an expectable feature in the future?

--
David Allouche | GNU TeXmacs -- Writing is a pleasure
Free software engineer | http://www.texmacs.org
http://ddaa.net | http://alqua.com/tmresources
address@hidden | address@hidden
TeXmacs is NOT a LaTeX front-end and is unrelated to emacs.



Archive powered by MHonArc 2.6.19.

Top of Page