I'm trying to show linenumbers for tables using lineno, i.e. edtable. The table is set using threeparttable and linenumbers work fine, but compilation fails when including a caption. The error message shown is you can't use \hrule here except with leaders. I use the caption package, but compilation also fails when using KOMA captions. The MWE illustrates the issue.
\documentclass{scrartcl}
\usepackage{threeparttable}
\usepackage{caption}
\usepackage[edtable]{lineno}
% That's the definition of caption@hrule from caption3.sty
% Redefine something here?
% \makeatletter
% \renewcommand*\caption@hrule{\hrule\@height\z@}
% \makeatother
\begin{document}
\begin{table}\centering
\begin{threeparttable}
\caption{A simple table}
\resetlinenumber[1]
\begin{edtable}{tabular}{l*{3}{c}}
& \multicolumn{1}{c}{(1)} & \multicolumn{1}{c}{(2)} & \multicolumn{1}{c}{(3)} \\
Variable 1 & 1.85 & 0.92 & 1.11 \\
& (0.34) & (0.24) & (0.14) \\
\end{edtable}
\end{threeparttable}
\end{table}
\end{document}

;-)– egreg Dec 02 '12 at 16:45;-). Brilliant answer, as usual. – Jörg Dec 02 '12 at 17:09