Very interesting!
First of all, the bug of putting things into the wrong cells has been
fixed in the latest version of reLyX (CVS).
However, it's actually surprising that ctabular was translated. in fact,
reLyX doesn't know that environment. It turns out that it translates
anything ending with "tabular" as if it were a tabular. I can't decide if
that's a bug or a feature.
Using the newest reLyX, everything gets put in the right place, although
the midrule, toprule, and bottomrules aren't translated of course.
FYI--if you don't want something to be translated, put it in a skip block.
See the relyx man page for details.
-Amir
On Thu, 8 Oct 1998, Reuben Thomas wrote:
> I use the booktabs package to produce better tables than those produced by
> the default LaTeX table environment. The trouble is that when I import
> LaTeX files using its commands into LyX 0.12.1pre8, LyX thinks it
> understands the tables and mis-converts them (for example, it puts the
> wrong bits in the wrong cells and joins lines together at the ends of
> tables). I'd rather it simply didn't try to convert the tables.
>
> Actually, looking at it it seems it's more of a bug than a problem with
> booktabs: a typical table of mine is:
>
> \begin{ctabular}{cc} \toprule
> \bf Type & \bf Code \\ \midrule
> Register & 00b \\
> Local label & 01b \\
> Global label & 10b \\ \bottomrule
> \end{ctabular}
>
> which comes out as:
>
> \toprule | Type
> Code | \midrule
> register | 00b
> Local label | 01b | Global label | 10b | \bottomrule
>
> (ctabular is just an abbreviation for a center environment with a tabular
> inside it, which LyX seems to have understood except that the table
> isn't centred).
>
> --
> http://www.cl.cam.ac.uk/users/rrt1001/ | maxim, n. wisdom for fools
>