0

This is rather a question of understanding than a problem:

In a thesis, when a table spans over multiple pages, the standard behaviour should, in my opinion be:

  • same header/footer, except for the caption, which is appended with "(continued)"
  • One entry in the List of tables

In my case, I did it manually with \endfirsthead and \endhead (twice the same "head" except for the word (continued) ) then I had to remove one entry in the list of tables.

This worked but is a lot of work and creates code duplicates, is there a very simple way (e.g. an option) that creates the same result?

3
  • Shortly: no (as far as I know). Note, LaTeX is mark-up language, so you need to define first head, head, foot and last foot. This should not be a problem ...
    – Zarko
    Commented Feb 5, 2017 at 17:48
  • You can define your own macro which fulfils your requirements Commented Feb 5, 2017 at 18:00
  • you can use \caption[]{...} so there should not be any need to adjust the table of contents Commented Feb 5, 2017 at 18:01

1 Answer 1

1

For a three column table you can define

\newcommand\ltheadthree[4]{%
\caption{#1}\\
\textbf{#2}&\textbf{#3}&\textbf{#4}
\endfirsthead
\caption[]{#1 (continued)}\\
\textbf{#2}&\textbf{#3}&\textbf{#4}
\endhead}

then

\begin{longtable}{lcr}
\ltheadthree
{the caption}
{head 1}
{head 2}
{head 3}
...

should do more or less what you ask.

Obviously similar commands could be defined for different numbers of columns. Or you could add centering or anything else you wanted for table head formatting.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .