On 20.06.08, Philip A. Viton wrote:

> I've written a utility which takes results (in the J programing  
> language) and converts them to latex tables, specifically formal tables, 
> using booktabs.sty. One problem with importing them into lyx is that 
> setup instructions like \cmidrule(r){1-2} ...  gets imported as ERT for 
> \cmidrule, followed by text for the rest, another ERT for the next 
> \cmidrule etc.

> Question: since I have complete control over how the file gets written, 
> is there some way I could indicate to the lyx importer that the whole 
> sequence of \cmidrule's is to be treated as one big ERT? 

Nothing I know of.

> Something on the order of \ERT{\cmidrule(r){1-2} .... } ?

This is 
a) invalid LaTeX
b) has the same problems.

However, as you have "complete control", you could consider exporting
CSV tables and using the CSV importer to convert them to lyx or
generate LyX code right away.

Günter

Reply via email to