When I import LaTeX documents with tables, I seem to end up with a space prepended to each cell. This often artificially inflates the width of the table, and is tedious to fix by hand.

I believe this problem can be fixed in the BasicLyx.pm module of reLyX by defining each new cell to be the start of a paragraph, so that the subsequent Text will have it's leading white-space zapped. This can be accomplished as follows:

*** BasicLyx.pm 2005-09-27 17:50:15.217306805 -0700
--- BasicLyx.new        2005-09-27 17:50:33.010911858 -0700
***************
*** 493,498 ****
--- 493,499 ----
            # Table stuff
            } elsif ($name eq '&') {
                if ($thistable = &RelyxTable::in_table) {
+                   $IsNewParagraph = 1;
                    print OUTFILE "\n\\newline \n";
                    $thistable->nextcol;
                } else {warn "& is illegal outside a table!"}


Using this patch with lyx 1.3.6 seems to fix my problem. However, I don't begin to pretend to understand everything going on in reLyX, so I'm hoping someone more knowledgeable than myself might be able to comment on whether this fix is likely to cause problems elsewhere. If it does turn out to be a legitimate fix, I hope it might be committed for future versions.

Thanks for all the great work developing LyX!

John Mongan
[EMAIL PROTECTED]

Reply via email to