Tentei converter esta tabela em longtable, mas não tive sucesso e espero que você possa ajudar. O pacote longtable já está carregado.
\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}
Eu tentei o seguinte:
\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}
Não está funcionando. Qual é a solução. Sem longtable - a primeira sintaxe - funciona perfeitamente.
Responder1
Para isso está threeparttablex
feito: trazer as funcionalidades threeparttable
do longtable
. Ele define ambientes a ThreePartTable
e a TableNotes
. Este último deve ser declarado no beginning
ambiente ThreePartTable, antes de longtable
. É inserido com um \insertTableNotes
comando, onde você quiser. As notas da tabela podem ser consultadas. Veja detalhes na documentação do pacote.
\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}
Responder2
\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}