Graphics, Figures & Tableslongtable | Determine last Row of a Table on a Page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gonandriy
Posts: 4
Joined: Wed Dec 14, 2011 7:17 pm

longtable | Determine last Row of a Table on a Page

Post by gonandriy »

Is there any way of determination last row of each page in multi-page tables. For example if I want add double line on end of each page, or some special content of cells in last row. I use longtable package.

Here should be considered, that last rows on pages can be changes, I mean that last row can become the first on the next page, when some additional content will be added to before table.


Thanks.

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

longtable | Determine last Row of a Table on a Page

Post by Stefan Kottwitz »

As an information for the reader, to be aware of possibly already existing solutions, the same question has been posted to TeX.SE.

gonandriy, generally please inform with a link when you post the same question to several sites. It's only fair, to prevent unnecessary work if there would appear solutions at one site.

Stefan
LaTeX.org admin
gonandriy
Posts: 4
Joined: Wed Dec 14, 2011 7:17 pm

Re: longtable | Determine last Row of a Table on a Page

Post by gonandriy »

Thanks, Stefan.
I promise I will do so henceforward
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

longtable | Determine last Row of a Table on a Page

Post by Stefan Kottwitz »

Thanks! Now we can see on TeX.SX, there's a solution, for adding the double line at the end of a page, by David Carlisle, for completeness:

Code: Select all

\begin{longtable}{ccc}
 \hline\hline
\endfoot
 data&goes&here
...
\end{longtable}
Stefan
LaTeX.org admin
Post Reply