0

I have a very long table (multiple pages) in a paper that I'm writing, which contains +20 tables. The problem occurs when I use both landscape and longtable together - namely, the last page of the table is no longer landscape but portrait, so half of the data is cut off. I have tried using both lscape and pdflscape and neither make much of a difference. At the bottom is a screenshot of what I see between the last and second-to-last pages.

Additionally, there is an extra blank page at the beginning of the table and I do not see a table header at the top, for example "Table 1." I'm using TeXShop 3.58 on a Mac. Any help is appreciated.

\documentclass[12pt,preprint,revtex4]{emulateapj}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{pdflscape}
\usepackage{amsmath}
\usepackage{xcolor}

\begin{document}

\begin{center}\tiny  
\begin{landscape}
\begin{longtable} {|p{2.0cm}|p{4.0cm}|p{1.0cm}|p{1.0cm}|p{1.5cm}|p{1.6cm}|p{1.7cm}|p{2.0cm}|p{2.0cm}|p{1.0cm}|p{1.0cm}|}
\hline
\bf{Stuff 1} & \bf{Stuff 2} & \bf{Stuff 3} & \bf{Stuff 4} & \bf{Stuff 5} &     \bf{Stuff 6} & \bf{Stuff 7} & \bf{Stuff 8} & \bf{Stuff 9} & \bf{Stuff 10}  & \bf{Stuff 11}\\
\hline
\hline
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\
A & A & A & A & A & A & A & A & A & A & A \\

\end{longtable}
\end{landscape}
\end{center}

\end{document}

enter image description here

  • 1
    Add \clearpage before \end{landscape} – John Kormylo Dec 10 '15 at 20:45
  • @JohnKormylo Thanks! That helped with the rotation issue. However, I'm still not seeing the table header and there is an extra blank page at the top. Any thoughts? – cosmosis Dec 10 '15 at 20:47
  • Add \endhead at the end of the part to be repeated. It wouldn't hurt to read the manual. It should have been downloaded with the package, somewhere. – John Kormylo Dec 10 '15 at 20:53
  • 1
    also don't put longtable in a center environment, it has no effect on its horizontal alignment, just adds spurious vertical space – David Carlisle Dec 10 '15 at 21:04
  • @JohnKormylo that shouldn't be needed though (the definition of \end[landscape} already starts with \clearpage – David Carlisle Dec 10 '15 at 21:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.