Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question is related to this one: How to repeat top rows (column headings) on every page

But I want to repeat the header row of a table using supertabular and not long table.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

According to the manual of supertabular, declare

\tablehead{<the code you want for the common headings>}
\tablefirsthead{<the code for the first heading>}
\tabletail{<the code for the common bottoms>}
\tablelasttail{<the code for the last table bottom>}

just before starting the supertabular.

Pay attention: the supertabular environment and those declarations are to be enclosed in a group (the center environment, for instance). Otherwise you'll get the same heads and tails in all supertabular tables until you change the value of them.

share|improve this answer
add comment

In the documentation you can find:

The command \tablefirsthead takes one argument, it defines the contents of the first occurence of the tabular head. The use of this command is optional. Don’t forget to close the head by a \\.

The command \tablehead takes one argument, it defines the contents of all subsequent ocurrences of the tabular head. Don’t forget to close the head by a \\

An example is presented is the documentation on page 3f.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.