나는 이 테이블을 longtable로 변환하려고 시도했지만 성공하지 못했고 귀하가 도움을 줄 수 있기를 바랍니다. longtable-package가 이미 로드되어 있습니다.
\documentclass[a4paper,oneside,abstracton]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{threeparttable}
\usepackage{longtable}
\usepackage[a4paper,bottom=3.1cm]{geometry}
\usepackage{booktabs}
\begin{document}
\begin{table}[!htb]
\centering
\caption{Accepted positions.}
\label{Table:accepted}
\tiny
\begin{threeparttable}
\begin{tabular}{llllllll}
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
2015 02 11.83985 & (279038) & xyz & RA & Dec & 20.3 V & 026 – Obscode & abc \\
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
\end{tabular}
\begin{tablenotes}
\item [a] Note number 1
\item [b] Note number 2
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
나는 다음을 시도했습니다 :
\documentclass[a4paper,oneside,abstracton]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{threeparttable}
\usepackage{longtable}
\usepackage[a4paper,bottom=3.1cm]{geometry}
\usepackage{booktabs}
\begin{document}
\begin{center}
\begin{longtable}{llllllll}
\caption{Accepted positions.}
\label{Table:accepted}
\tiny
\begin{threeparttable}
\begin{tabular}
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
\endfirsthead
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
\endhead
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
\multicolumn{8}{r}{{Continued on next page}} \\
\endfoot
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
\endlastfoot
2015 02 11.83985 & (279038) & xyz & RA & Dec & 20.3 V & 026 – Obscode & abc \\
\end{tabular}
\begin{tablenotes}
\item [a] Note number 1
\item [b] Note number 2
\end{tablenotes}
\end{threeparttable}
\end{longtable}
\end{center}
\end{document}
작동하지 않습니다. 해결 방법이 무엇입니까. longtable 없이도(첫 번째 구문) 잘 작동합니다.
답변1
이를 threeparttablex
위해 의 기능을 에 가져오는 작업이 완료되었습니다 . 이는 및 환경을 정의합니다. 후자는 ThreePartTable 환경의 에서 앞에 선언되어야 합니다 . 원하는 위치에 명령어 로 삽입됩니다. 표를 참조할 수 있습니다. 자세한 내용은 패키지 설명서를 참조하세요.threeparttable
longtable
ThreePartTable
TableNotes
beginning
longtable
\insertTableNotes
\documentclass[a4paper,oneside,abstracton]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{threeparttablex}
\usepackage{longtable}
\usepackage[a4paper,bottom=3.1cm]{geometry}
\usepackage{booktabs, caption}
\begin{document}
\begin{ThreePartTable}
\small
\begin{TableNotes}
\item [a] Note number 1
\item [b] Note number 2
\end{TableNotes}
\begin{longtable}{@{}llllllll@{}}
\caption{Accepted positions.\label{Table:accepted}}\\
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
\endfirsthead
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
\endhead
\multicolumn{8}{r}{\textit{continued}}\\
\endfoot
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
\insertTableNotes
\endlastfoot
2015 02 11.83985 & (279038) & xyz & RA & Dec & 20.3 V & 026 – Obscode & abc \\
\end{longtable}
\end{ThreePartTable}
\end{document}
답변2
\documentclass[a4paper,oneside,abstracton]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{threeparttable}
\usepackage{longtable}
\usepackage[a4paper,bottom=3.1cm]{geometry}
\usepackage{booktabs}
\begin{document}
%\begin{table}[!htb]
%\centering
%\tiny
\small
% \begin{threeparttable}
\begin{longtable}{@{}llllllll@{}}
\caption{Accepted positions.\label{Table:accepted}}\\
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
\endfirsthead
Date (UT) & Object & Type\tnote{a} & J2000 RA & J2000 Dec & Magn & Location\tnote{b} & Ref \\
\midrule
\endhead
2015 02 11.83985 & (279038) & xyz & RA & Dec & 20.3 V & 026 – Obscode & abc \\
\cmidrule{1-8} \morecmidrules \cmidrule{1-8}
\end{longtable}
\begin{enumerate}
\item [a] Note number 1
\item [b] Note number 2
\end{enumerate}
% \end{threeparttable}
%\end{table}
\end{document}