Graphics, Figures & TablesTable spanning multiple pages in landscape, caption not showing up

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
DuncanWilliam
Posts: 6
Joined: Wed Aug 12, 2020 12:41 pm

Table spanning multiple pages in landscape, caption not showing up

Post by DuncanWilliam »

Hi all,

I have a table that spans over multiple pages in the landscape environment. The caption shows up but isn't linked to the list of table nor does it assign a table number. Below is the code.

Code: Select all

\begin{landscape}

\centering
\caption{Subject matter experts and their expertise.}
\begin{longtable}[t]{ l  p{4cm}  p{4cm}  p{10cm} }
\toprule
ID & Organisation & Area of expertise & Justification of expertise \\
\midrule
\endhead

... & ... & ... & ... \\

\bottomrule
\end{longtable}
\label{tab:SME1}
\end{landscape}
Ive tried to use the sidewaystable package but cant get it to continue on the next page. Am I using the correct packages and am I using them correctly?

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

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Table spanning multiple pages in landscape, caption not showing up

Post by Bartman »

The documentation of the longtable package explains, where the \caption command should be and which optional arguments may be passed to the environment.

After reading the second note you'll also understand, why you can omit the \centering command.

Depending on your margin settings (which a Infominimal working example could have shown us), the xltabular package could be useful for you.
Post Reply