Professional Documents
Culture Documents
This file shows three examples of defining of last head and foot before last of long table.
They are printed in different sizes just to check work of page counting algorithm.
The common settings:
\floatsetup[longtable]{font={small,sf},LTcapwidth=table,
margins=centering,captionskip=5pt}
\captionsetup[longtable]{font=small}
Here table font family settings are different from caption. The version 3.1 of caption
package solves this problem. But for the version 3.0q you ought restore Roman family
settings —rm—.
1.1 Variant I
For the first variant the following label format was defined:
\DeclareCaptionLabelFormat{labelcontI}%
{\rightline{\bothIfFirst{#1}{ }#2 (\emph{continued})}}
\DeclareCaptionLabelFormat{labelfinI}%
{\rightline{\bothIfFirst{#1}{ }#2 (\emph{finished})}}
The body of long table is written in following way:
\begin{longtable}{@{}lll}
\caption{The ISOGRK3 entity set and more more more more more more
more more more more more more more more more more more text}\\
\bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\
\hline
\endfirsthead
\captionsetup{labelformat=labelcontI}\caption[]{}\\
\bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\
1
2 CHAPTER 1. HEADS AND FOOTS IN LONGTABLE
\hline
\endhead
\captionsetup{labelformat=labelfinI}\caption[]{}\\
\bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\
\hline
\endlasthead
\hline \multicolumn{3}{@{}r@{}}{\emph{Continued on next page}}
\endfoot
\hline \multicolumn{3}{@{}r@{}}{\emph{Finished on next page}}
\endprelastfoot
\hline
\endlastfoot
Table 1.1
The ISOGRK3 entity set and more more more more more more more more more more more more
more more more more more more text
1.2 Variant II
You may see that usage of labelformat key here is unnecessary. And preamble of the
longtable looks like:
\begin{longtable}{@{}lll}
\caption{The ISOGRK3 entity set and more more more more more more
more more more more more more more more more more more text}\\
\bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\
\hline
\endfirsthead
\caption[]{\emph{Continued}}\\
\bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\
\hline
\endhead
\caption[]{\emph{Finished}}\\
\bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\
\hline
\endlasthead
\hline \multicolumn{3}{@{}r@{}}{\emph{Continued on next page}}
\endfoot
\hline \multicolumn{3}{@{}r@{}}{\emph{Finished on next page}}
\endprelastfoot
\hline
\endlastfoot
10 CHAPTER 1. HEADS AND FOOTS IN LONGTABLE
1.1 The ISOGRK3 entity set and more more more more more more more
more more more more more more more more more more more text . . . . 2
11