2

How can I break my TableNotes in ThreePartTable (it is a landscape table)?

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, right=2.975cm]{geometry}
\usepackage{blindtext}
\usepackage{booktabs}
\usepackage{lscape}
\usepackage{longtable}
\usepackage[referable]{threeparttablex}
\usepackage{hyperref}


\begin{document}

\begin{landscape}
\begin{center}
\begin{ThreePartTable}
\begin{TableNotes}
\item[a]\label{tn:a} \blindtext
\item[b]\label{tn:b} \blindtext
\item[c]\label{tn:c} Test.
\item[d]\label{tn:d} Test.
\item[e]\label{tn:e} Test.
\item[f]\label{tn:f} Test.
\item[g]\label{tn:g} \blindtext
\end{TableNotes}

\begin{longtable}{lcc}
\caption{A Test Table} \\
\toprule
First Column & Second Column & Third Column \\
\midrule
\endhead
\multicolumn{3}{r}{\textit{Continued on next page}} \\
\endfoot
\bottomrule
\insertTableNotes \\
\endlastfoot
Test & Test & Test \\
Test & Test & Test \\
Test & Test & Test \\
Test & Test & Test
\end{longtable}
\end{ThreePartTable}
\end{center}
\end{landscape}

\newpage
\blindtext

\blindtext

\end{document}  

As you can see, the notes exceed the margin (in the example, notes e, f, and g should be on a new page).

Thanks so much for your help.

  • Welcome! How do you want to break them exactly? The example you've given does not, I think, exceed a page, so it isn't clear what the context of your question is exactly. By the way, don't use \it in LaTeX. Is is 20+ years deprecated. Use \itshape or \textit{} instead. – cfr Jul 14 '15 at 1:25
  • OK, I edited the example: defined margins and added some tablenotes. I would like to break them so that everything is within the margins. – Dan Jul 14 '15 at 1:43
  • Actually, I think I missed the text in the notes before. Sorry about that. But I still wasn't sure what you meant by wanting to break them. – cfr Jul 14 '15 at 1:51
  • 1
    @Dan I don't think you can do that. As I understand the manual (I've not read the code), the notes are typeset in a special \multicolumn.... So they are a single cell and cannot be broken across pages. I am not sure why they don't all get moved to the next page, though. – cfr Jul 14 '15 at 2:21
  • 1
    @Dan - By providing table-related footnotes that -- taken together -- are so voluminous as to require a page break, you may be mis-using the entire longtableand threeparttablex machinery. In general, footnotes work best if they're (a) short and (b) contain mainly ancillary information. If the information provided in the footnotes is truly so important as to require the footnotes to be quite voluminous, do examine carefully whether there's a better way than footnotes to convey the ancillary/supplemental information you believe you need to convey. – Mico Jul 14 '15 at 2:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.