Hello

On Fri, 6 Aug 2010 08:17:28 +0200
Stéphane Adamowicz <[email protected]> wrote:
> Hi!
> Is it possible to insert Latex code in a float table ?
> 
Yes. 

> I create tables in the R statistical software. The corresponding
> Latex code can be obtained with the xtable function in R, and then
> inserted in Lyx. It works just fine when I select "code Tex" in the
> Lyx "insert" menu. However, I had rather insert the table in a float
> table in order to get table numbering and legends. Doing so produces
> an error message "LaTeX Error: Not in outer par mode" during
> compilation.
> 
> Any solution ?
>
Have been here before. Please see this post [1] for a solution. 

Otherwise, consider taking a look at Sweave (especially in current
LyX 2.0 alpha builds). It would allow you to insert R code---and thus
the results--- directly in the LyX document and avoid the
copy/paste routine. And compared to R or LaTeX, Sweave is very easy to
crack. 

Regards
Liviu

[1]
http://r.789695.n4.nabble.com/Sweave-and-xtable-floating-issues-SOLVED-td894884.html

Reply via email to