On 3/4/20 11:35 AM, Kornel Benko wrote: > Am Wed, 4 Mar 2020 16:10:50 +0000 > schrieb Bernt Lie <bernt....@usn.no>: > >> I’m running a program which generates LaTeX code for a table. >> >> Question: >> >> * How can I insert this table into LyX? >> * I want the table to have the same type of preview as Tables I set up >> manually >> inside of LyX >> * I want the table to be a floating table. >> * Such tables may be large, so I may want to make it multi-page, and >> possibly >> rotate it. >> >> Example: >> >> >> \begin{tabular}{rrr} \hline\hline \textbf{Temperature [K]} & >> \textbf{Pressure [bar]} & >> \textbf{Specific volume liq [m3/kg.1e3]} \\ \texttt{Float64} & >> \texttt{Float64} & >> \texttt{Float64} \\\hline 273.15 & 0.00611 & 1.0 \\ 275.0 & 0.00697 & 1.0 \\ >> 280.0 & >> 0.0099 & 1.0 \\ 285.0 & 0.01387 & 1.0 \\ 290.0 & 0.01917 & 1.001 >> \\\hline\hline >> \end{tabular} >> >> Can I insert the table within LyX? Or do I have to insert the table in a LyX >> document >> and insert the code via an ASCII editor? >> >> Thanks for suggestions! >> >> BR, >> B > What about > File->Import->laTeX (plain)...
If you have it in a separate file, you can also do Insert > File> Child Document, and choose the file to be included. If you want it previewed, I guess you can wrap it in a preview inset (though I'm not an expert on that). Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users