I'm using the caption with Lyx 1.6.7. I've declared the use of the package in the document setting with this line of code:
Code: Select all
\usepackage[format=plain, justification=raggedright, font=scriptsize]{caption}
Here is a portion of the latex code generated using Export in Lyx
Code: Select all
\begin{table}
\noindent \begin{raggedright}
\begin{tabular}{|c|cccccc|}
\cline{2-7}
\multicolumn{1}{c|}{} & \multicolumn{6}{c|}{\textbf{\small words having disparity of}}\tabularnewline
\hline
\textbf{\small m+1} & \textbf{\small 0} & \textbf{\small +2} & \textbf{\small +4} & \textbf{\small +6} & \textbf{\small +8} & \textbf{\small +10}\tabularnewline
\hline
\textbf{\small 2} & {\small 2} & {\small 1} & & & & \tabularnewline
\textbf{\small 4} & {\small 6} & {\small 4} & {\small 1} & & & \tabularnewline
\textbf{\small 6} & {\small 20} & {\small 15} & {\small 6} & {\small 1} & & \tabularnewline
\textbf{\small 8} & {\small 70} & {\small 56} & {\small 28} & {\small 8} & {\small 1} & \tabularnewline
\textbf{\small 10} & {\small 252} & {\small 210} & {\small 120} & {\small 45} & {\small 10} & {\small 1}\tabularnewline
\hline
\end{tabular}
\par\end{raggedright}
\label{Flo:Disp}\caption{Number of code words with various disparities}
\end{table}