ltablex で奇妙なエラーを回避する

ltablex で奇妙なエラーを回避する

同じ見出しを持つ複数のページにわたる表を作成したいのですが、パッケージを使用しておりtabularxltablexリンクただし、 を使用すると、ltablex固定エラーが発生します。! LaTeX Error: There's no line here to end.解決方法はありますか? 最小限の例を以下に示します。

\documentclass[11pt]{article}
\usepackage{booktabs}
\usepackage{tabularx} % for tables http://www.lapomori.com/
%\usepackage{ltablex} 
\begin{document}

\begin{table}
\caption{Example of an table}
\label{tab:daypack}     
\begin{tabularx}{\linewidth}{@{}cX@{}}  
\toprule
\textbf{Column 1} & \textbf{Column 2} \\[6pt]
\midrule
%\endhead
$R$ & 1This is an example sentence \\[6pt]
$R$ & 2As well as the line before \\[6pt]
$A$ & 3Also this is an example \\[6pt]
$R$ & 4This is an example sentence \\[6pt]
$R$ & 5As well as the line before \\[6pt]
$A$ & 6Also this is an example \\[6pt]
$R$ & 7This is an example sentence \\[6pt]
$R$ & 8As well as the line before \\[6pt]
$A$ & 9Also this is an example \\[6pt]
$R$ & 10This is an example sentence \\[6pt]
$R$ & 11As well as the line before \\[6pt]
$A$ & 12Also this is an example \\[6pt]
$R$ & 13This is an example sentence \\[6pt]
$R$ & 14As well as the line before \\[6pt]
$A$ & 15Also this is an example \\[6pt]
$R$ & 16This is an example sentence \\[6pt]
$R$ & 17As well as the line before \\[6pt]
$A$ & 18Also this is an example \\[6pt]
$R$ & 19This is an example sentence \\[6pt]
$R$ & 20As well as the line before \\[6pt]
$A$ & 21Also this is an example \\[6pt]
$R$ & 22This is an example sentence \\[6pt]
$R$ & 23As well as the line before \\[6pt]
$A$ & 24Also this is an example \\[6pt]
$R$ & 25This is an example sentence \\[6pt]
$R$ & 26As well as the line before \\[6pt]
$A$ & 27Also this is an example \\[6pt]
$R$ & 28This is an example sentence \\[6pt]
$R$ & 29As well as the line before \\[6pt]
$A$ & 30Also this is an example \\[6pt]
$R$ & 31This is an example sentence \\[6pt]
$R$ & 32As well as the line before \\[6pt]
$A$ & 33Also this is an example \\[6pt]
$R$ & 34This is an example sentence \\[6pt]
$R$ & 35As well as the line before \\[6pt]
$A$ & 36Also this is an example \\[6pt]
$R$ & 37This is an example sentence \\[6pt]
\bottomrule
\end{tabularx} \\   
\end{table}


\end{document}

答え1

「ここには行がありません」というメッセージは、\\アライメント以外ではほとんど使用すべきではない誤用を示しています。

これを削除します:

\end{tabularx}% \\   

答え2

「\ [6pt]」は\begin{align}-\end{align}と\begin{eqnarray}-\end{eqnarray}の内部でのみ機能すると思います。「$ $」は使用しないでください。

関連情報