
동일한 제목을 가진 여러 페이지에 대한 표를 갖고 싶습니다. 패키지 를 사용하고 tabularx
있으며 다음 ltablex
에 따라 이 필요합니다.링크. 하지만 사용하면 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} 내부에서만 작동한다고 생각합니다. "$ $"를 사용하면 안됩니다.