GeneralLongtable and captions

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ganda97
Posts: 13
Joined: Fri Mar 14, 2008 12:34 am

Longtable and captions

Post by ganda97 »

I need help with captions using longtables. The format I have to follow needs to have the captions at the bottom of the table. I would like to have the caption on each part of the table, with the second caption having some indication that it is a continuation of the table, and the same table number. All the references I found mention the caption on top of the table. My experience with Latex is very limited. Basically, I'm a trained monkey: Push button/get cookie.
Thanks
A

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

k.m.
Posts: 3
Joined: Fri Mar 28, 2008 11:10 am

Re: Longtable and captions

Post by k.m. »

Your current code should look about like this:


\caption{erste Zeile}
Indicators by project &Range& Value\\
\endfirsthead

\caption{(...continued)}\\
Indicators by project & Range & Value\\
\endhead

{...}continues on next page \\
\endfoot

Sources: Own presentation\\
\endlastfoot


now you need to write the \caption thing above \endlastfoot (for the footing of the the last part of the tabel) and above \endfoot for the other parts of the table.
This should solve the problem

it should look like this:

Indicators by project &Range& Value\\
\endfirsthead

\\
Indicators by project & Range & Value\\
\endhead

caption{erste Zeile}\\
\endfoot
\caption{(...continued)}\\
\endlastfoot
ganda97
Posts: 13
Joined: Fri Mar 14, 2008 12:34 am

Re: Longtable and captions

Post by ganda97 »

Thanks. That seems to work.
Post Reply