Graphics, Figures & TablesLandscape format with table notes over two pages

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Landscape format with table notes over two pages

Post by Wooldridge1 »

Hello,

I would like to construct a table in landscape format with table notes that can be printed on more than one page.

I also created a code but it does not work:

Code: Select all

\begin{sidewaystable}
\centering
\caption{Table Landscape}
\label{Table Landscape}
\begin{threeparttable}
\begin{tabular}{p{2cm}p{4.5cm}p{2.5cm}p{2cm}p{2cm}p{2cm}p{2cm}p{6cm}}
\toprule
& \multicolumn{7}{c}{Columns}                                           \\
\cmidrule(lr){2-8}
H\tnote{1} & G & F & E & D & C & B & A \\
\cmidrule(r){1-1}
\cmidrule(r){2-2}
\cmidrule(r){3-3}
\cmidrule(r){4-4}
\cmidrule(r){5-5}
\cmidrule(r){6-6}
\cmidrule(r){7-7}
\cmidrule(r){8-8}
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item [1] XXX
\end{tablenotes}
\end{threeparttable}
\end{sidewaystable}
I hope you can help me. :)

Best regards & many thanks in advance! :-)

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Landscape format with table notes over two pages

Post by Stefan Kottwitz »

And what is the problem here? It's a landscape table with table notes and no error.

Perhaps split your table manually into several parts with nodes. Doing it automatically may require some work anyway. For multi-page tables, use the longtable package. Combine with pdflscape for landscape. Such as:

Code: Select all

\documentclass{article}
\usepackage{pdflscape}
\usepackage{longtable}
\begin{document}
  \begin{landscape}
    \begin{longtable}
      ...
    \end{longtable}
  \end{landscape}
\end{document}
But then the next challenge is adding table notes.

Stefan
LaTeX.org admin
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Landscape format with table notes over two pages

Post by Wooldridge1 »

Thank you so much, Stefan! :-)

Greetings
Post Reply