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.

In LyX I've created a longtable. In LyX the caption is below the table but in the PDF it is shown above the table. Is there a way to force the caption to be below the table in the PDF without converting the table to LaTeX code?

Thanks.

share|improve this question
1  
A longtable is a table that might span several pages. A caption at the end means the reader would have to read pages before he knows what the purpose or the table is. –  Heiko Oberdiek Sep 14 '12 at 14:03
    
That's a fair point, and I agree - but it will still break the style consistency with the rest of the document (hence it will just get returned to me with a comment as such). I may leave it at the top for now, but I'd be interested to know if any one has ideas on how to do this. –  thom Sep 14 '12 at 14:14

1 Answer 1

A longtable is a table that might span several pages. A caption at the end means the reader would have to read pages before he knows what the purpose or the table is.

Nevertheless there are several ways to put the caption at the end of the table:

\documentclass{article}
\usepackage{longtable}
\begin{document}
\begin{longtable}{l}
a\\
b\\
\caption{Table caption}
\end{longtable}

\begin{longtable}{l}
\caption{Table caption}
\endlastfoot
a\\
b\\
\end{longtable}
\end{document}

Result

(I am not familiar with LyX, therefore I can only provide LaTeX code.)

The same caption can be repeated on each page by using \endfoot instead of \endlastfoot in the latter example.

It is also possible to set the caption in the first foot and the other captions have some text added like "continued", see Caption at foot of long tables.

share|improve this answer

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.