On Wed, Apr 20, 2005 at 05:47:57PM +0300, Martin Vermeer wrote: > 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. > The table alignment settings now give me messages like "unknown tabular feature 'align-left'" if the cursor is in some simple math. Perhaps this is more correct somehow, but it doesn't solve the problem: I wanted to left-align a table column.
This would be a lot less of a problem if the cursor jumped to where I left-click the table. If I left-click the math inside the table, I get the math dialog, not the table dialog. Which is fine, and misunderstanding is avoided. Left-clicking some other table column gives me the table dialog, but the cursor doesn't jump to the clicked cell. I stays in the other column in the math, and the choices don't apply there. It wouldn't help if it worked - I'd align the wrong column! Now to something completely different - is there a simple way to make cvs update all files as they are in the lyx-devel repository, i.e. obliterate every patch and change I've done locally without actually downloading the entire source tree from scratch? It'd be nice to get rid of all sorts of experimental patches that block updates forcing manual deletion of files. Helge Hafting