Here is some example code:
Code: Select all
\documentclass{article}
\usepackage{longtable}
\providecommand{\tabularnewline}{\\}
\begin{document}
\begin{longtable}{l*{4}{c}} \caption{Regression table\label{tab1}}\\ \hline\hline\endfirsthead\hline\endhead\hline\endfoot\endlastfoot
&\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}\\
&\multicolumn{1}{c}{Price}&\multicolumn{1}{c}{Price}&\multicolumn{1}{c}{Price}&\multicolumn{1}{c}{Price}\\
\hline
Weight (lbs.) & 1.747& 3.465& 3.413& 3.163\\
& (2.72)& (5.49)& (2.97)& (2.89)\\
[1em]
Mileage (mpg) & -49.51& 21.85& 9.289& -75.61\\
& (-0.57)& (0.29)& (0.11)& (-0.92)\\
[1em]
Car type & & 3673.1& & \\
& & (5.37)& & \\
[1em]
Turn Circle (ft.) & & & -195.6& -398.1\\
& & & (-1.56)& (-3.22)\\
[1em]
Displacement (cu. in.)& & & 8.204& 3.390\\
& & & (0.93)& (0.50)\\
[1em]
Gear Ratio & & & -1349.5& \\
& & & (-1.05)& \\
[1em]
0b.foreign\#1b.rep78 & & & 0& \\
& & & (.)& \\
[1em]
0b.foreign\#2.rep78 & & & 303.4& \\
& & & (0.19)& \\
[1em]
0b.foreign\#3.rep78 & & & 431.6& \\
& & & (0.29)& \\
[1em]
0b.foreign\#4.rep78 & & & -715.1& \\
& & & (-0.45)& \\
[1em]
0b.foreign\#5.rep78 & & & 3735.1& \\
& & & (1.76)& \\
[1em]
1o.foreign\#1b.rep78 & & & 0& \\
& & & (.)& \\
[1em]
1o.foreign\#2o.rep78 & & & 0& \\
& & & (.)& \\
[1em]
1.foreign\#3.rep78 & & & 4586.2& \\
& & & (2.20)& \\
[1em]
1.foreign\#4.rep78 & & & 5240.1& \\
& & & (2.84)& \\
[1em]
1.foreign\#5.rep78 & & & 4166.3& \\
& & & (2.50)& \\
[1em]
Constant & 1946.1& -5853.7& 4161.5& 13338.6\\
& (0.54)& (-1.73)& (0.68)& (2.70)\\
\hline
Observations & 74& 74& 69& 74\\
\hline\hline
\multicolumn{5}{l}{\footnotesize \textit{t} statistics in parentheses}\\
\end{longtable}
\end{document}
It seems that LyX does import the tags
\endfirsthead
, \endhead
, \endfoot
and \endlastfoot
at the right place. Do you have any idea, how I could fix this after importing the table?