I have a (auto-generated) list, that can span multiple pages (I think I will take a longtable-environment).
What I want to achive is, when TeX decides to insert a page break, I want to have a small box below some of the columns, that prints a known value, and print this box also on the next page.
And I want to print some values at bottom of the tabular
I have no idea how to address this problem.
col1 col2
100 200 <- known 100 and 200
300 400 <- known 400 and 600
--------- <- LaTeX decides to page break
500 600 <- known 900 and 1200
It should do
col1 col2
100 200
300 400
[400][600] <- use known
-----------
[400][600]
500 600
{900}{1200}
{sum}
EDITH: I thought I coud use \endfirsthead and so, but, the values will not be changed dynamically. Maybe there is a trick
\documentclass[a4paper]{scrartcl}
\usepackage{longtable}
\begin{document}
\newcommand{\uebertraga}{0}
\newcommand{\uebertragb}{0}
\newcommand{\summe}{0}
\begin{longtable}{cc}
col1 & col2\\\endfirsthead
col1 & col2\\
Übertrag: \uebertraga & \uebertragb\\\endhead %<- dynamic binding?
Übertrag: \uebertraga & \uebertragb\\\endfoot
gesamt: \uebertraga & \uebertragb\\
Summe: \summe\\\endlastfoot
\renewcommand{\uebertraga}{100}
\renewcommand{\uebertragb}{200}
\renewcommand{\summe}{300}
100 & 200 \\\newpage
\renewcommand{\uebertraga}{400}
\renewcommand{\uebertragb}{600}
\renewcommand{\summe}{1000}
300 & 400 \\
\end{longtable}
\end{document}
EDITH 2: Question
Is it possible to access f.e. the box-variable \LT@foot from the longtable-package outside the package?