Document ClassesProblem with threeparttable and long tables

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
acrocephalus
Posts: 1
Joined: Wed Apr 16, 2008 11:48 am

Problem with threeparttable and long tables

Post by acrocephalus »

Hello,
I have made a very long table using threeparttable, as I need to add table notes. However, the table should spand over two pages, but it goes out the limits of the first page and it does not continue on the second page. How can I solve it? I provide you the code I am using:

\begin{center}
\begin{threeparttable}
\caption[Resum del classificador promig i encert del millor classificador per a MM, GBM i LGG]{
Resum del classificador promig i encert del millor classificador per a MM, GBM i LGG}
\begin{tabular}{m{4.5cm}m{1cm}m{1cm}m{2.5cm}m{2cm}m{1cm}}
\textbf{Seqüència}&\textbf{T\superscript{a}(\degreecelsius)}&\textbf{LOO\tnote{a}}&\textbf{Independent\tnote{b}}&\textbf{p-value\tnote{c}}&\textbf{Millor\tnote{d}}\\\toprule
\textbf{Pols-adquisició}&0&73.5&$71.4\pm8.4$&$1.15\exp{-11}$\superscript{***}&86.4\\
&37&63.2&$59.5\pm9.3$&&81.8\\
\hline
\textbf{Spin eco sense modulació J TE 30ms}&0&91.2&$83.2\pm8.0$&$6.75\exp{-01}$&100\\
&37&85.3&$84.7\pm6.4$&&95.5\\
\hline
\textbf{Spin eco sense modulació J TE 144ms}&0&86.8&$82.6\pm7.3$&$5.65\exp{-03}\superscript{**}$&100\\
&37&88.2&$86.0\pm6.6$&&95.5\\
\hline
\textbf{Spin eco amb modulació J TE 30ms}&0&70.6&$70.2\pm9.3$&$1.56\exp{-02}\superscript{*}$&90.1\\
&37&80.9&$74.1\pm8.7$&&90.9\\
\hline
\textbf{Spin eco amb modulació J TE 136ms}&0&77.2&$76.3\pm8.5$&$2.54\exp{-03}\superscript{**}$&100\\
&37&83.2&$80.4\pm7.2$&&100\\
\hline
\textbf{Spin eco sense modulació J TE 30ms + TE 144ms}&0&81.2&$79.9\pm7.8$&$1.64\exp{-02}\superscript{*}$&95.5\\
&37&84.2&$82.9\pm6.2$&&95.5\\
\hline
\textbf{Spin eco amb modulació J TE 30ms + TE 136ms}&0&77.9&$76.9\pm8.3$&$1.86\exp{-02}\superscript{*}$&95.5\\
&37&85.3&$80.4\pm8.7$&&95.5\\
\hline
\textbf{Pols-adquisició + Spin eco sense modulació J TE 30ms}&0&80.9&$70.3\pm9.2$&$1.05\exp{-04}\superscript{***}$&86.4\\
&37&60.3&$56.5\pm9.3$&&81.8\\
\hline
\textbf{Pols-adquisició + Spin eco sense modulació J TE 144ms}&0&76.5&$71.0\pm9.1$&$2.20\exp{-016}\superscript{***}$&90.9\\
&37&86.2&$85.5\pm5.5$&&95.5\\
\hline
\end{tabular}
\begin{tablenotes}
\item[a]{Percentatge d'encert en la validació del classificador per \textit{leave-one-out crossvalidation}}
\item{Encert promig de totes les classificacions fetes durant el procés de \textit{bootstrapping} i \textit{re-sampling}}
\item[c]{Valor de $p$ per a la diferència entre els percentatges d'encert dels classificadors promig a 0\degreecelsius i 37\degreecelsius}
\item[d]{Encert del millor classificador}\end{tablenotes}\label{table:PCA3}
\end{threeparttable}
\end{center}

Best,

Dani

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Problem with threeparttable and long tables

Post by Stefan Kottwitz »

Hi acrocephalus,

welcome to the board!
As I know threeparttable cannot span over more than one page. There are packages designed for typesetting long tables, see here. I used to work with the longtable package. Adding footnotes could then be done in another way.

Stefan
Post Reply