I am trying to copy a table from an existing tex file. How would I produce this in lyx? Can I import just that bit of latex code somehow?
\begin{table}[ht]
\caption{Post-construction average time complexities for 5 different problems
using standard and distributed suffix trees with $k$ computing nodes. $r$ is
the number of strings for the All Pairs Suffix-Prefix problem and the number
of patterns for Exact Set Matching.}
\centering
\begin{tabular}{||c|c|c||}\hline
Problem&\multicolumn{2}{c||}{Expected Running Time}\\ \cline{2-3}
&Standard ST (Serial)&Distributed ST (Parallel)\\\hline
LCS and ELM &$O(n)$&$O(n/k)$\\
Maximal Repeat Finding & $O(n)$&$O(n/k)$\\
All Pairs Suffix-Prefix&$O(n+r^2)$&$O((n+r^2)/k)$\\
Exact Set Matching&$O(r\log n)$&$O((r\!\log n)/k)$\\
\hline
\end{tabular}
\end{table}
Easy - just click the TeX button and insert your LaTeX into the red box that comes up (assuming you're using a relatively recent version of LyX). I just checked it - it came out fine for me in 1.3.2.
Robin
-- "Some guy breaking into a government computer system and wreaking havoc makes for a more interesting movie plot than some guy writing device drivers. It's hard to work in a good 10-minutes car chase scene with some guy who writes device drivers..." - tjc, post to LWN
Robin Turner IDMYO Bilkent Univeritesi Ankara 06533 Turkey
www.bilkent.edu.tr/~robin