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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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