On Wed, 2005-04-20 at 14:55, Helge Hafting wrote: > The tabel dialog normally lets you adjust the columns > to left, right, and centered. The dialog allows these adjustments > if the cursor is inside some math inside a table cell, but nothing > acutally happens to the document in that case. I.e. column > remains unchanged. > > Helge Hafting
Helge, what happens is that the math is realigned; but you won't see anything happening unless the math is of gridinset type. Actually the situation is more complicated (serious?) than this. 1) If you have math inside a tabular, both menu items Edit->Table and Edit->Math are enabled. 2) At least part of their entries are cross-useable, like Alignment. Not really surprising as they both use LFUN_TABULAR_FEATURE. If you insert a grid inset into a table, even more cross useable features will appear. 3) Math outside a table (in running text) will nevertheless have Edit->Table enabled, with some entries enabled and even doing sensible things :-) The attached demonstration patch makes the situation slightly better for math insets not grid insets ("basic nest insets"). I don't know a generic solution, as gridinsets _need_ to be able to handle LFUN_TABULAR_FEATURE. (There should be a way to turn the alignment submenu off in math_nestinset. I haven't found it.) - Martin
Index: math_nestinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_nestinset.C,v retrieving revision 1.152 diff -u -p -r1.152 math_nestinset.C --- math_nestinset.C 11 Apr 2005 18:48:34 -0000 1.152 +++ math_nestinset.C 20 Apr 2005 14:14:47 -0000 @@ -866,6 +866,10 @@ bool MathNestInset::getStatus(LCursor & //string tc = "mathnormal"; bool ret = true; switch (cmd.action) { + case LFUN_TABULAR_FEATURE: + ret = false; + flag.enabled(false); + break; #if 0 case LFUN_TABULAR_FEATURE: // FIXME: check temporarily disabled
signature.asc
Description: This is a digitally signed message part