Your suggestion worked perfectly, well almost perfectly.  Attached is a 
sample LyX file containing a table using your trick.  It works perfectly for 
the numbers in the table.  I disabled the trick for the 1st row by making 
each a multicolumn cell and manually changing the column alignment to "c" 
instead of "C".  This works fine except that it doesn't recognize the borders 
I have also chosen.  I want the 1st column to have the same borders as the 
rest of the table but am unable to get it to work.  This appears to be either 
a problem with multicolumn or my understanding of its use.

Anymore sage advice to remedy this problem?

Thanks for your help,

Kevin

On Sunday 13 May 2001 11:52, you wrote:
> It is probably easy to write a script that converts a tab separated table
> into a latex table, which can then be included into LyX (using the input
> inset) or reLyXed and then inserted into lyx.
>
> Another solution is to use the following LaTeX code:
> Put the following in the preamble:
>
> \usepackage{array}
> \newcolumntype{C}{>{$}c<{$}}
> \newcolumntype{R}{>{$}r<{$}}
> \newcolumntype{L}{>{$}l<{$}}
>
> and then for each column in the table, set the alignment (in the special
> column area) to C (or R or L).
> This tell latex to typeset all cell in math mode (so you need to put \mbox
> in cells which you don't want in math mode).

example lyx table

Reply via email to