[Tex/LaTex] How to put two tables in one landscape page

landscapetables

I have two consecutive tables and since they are wide I want to have them in a landscape page. But it doesn't show both of them in one page. here is the code I'm using:

\begin{landscape}
\begin{table}[htb]
\caption{}\label{sup1}
\begin{tabular}
...
\end{tabular}
\end{table}
\begin{table}[htb]
\caption{}\label{sup2}
\begin{center}
\begin{tabular}
...
\end{tabular}
\end{center}
\end{table}
\end{landscape}

Best Answer

if both tables really do fit on one page, then just include them in a single float.

if you put a blank line and some vertical space, say \medskip, between the first \end{tabular} and the second \begin{tabular} they should be set one above the other, not side by side.

you'll need to force them to start on a new page. this can be done by

\usepackage{afterpage,lscape}
...
\afterpage{\clearpage % begin landscape tables
   \begin{landscape}
   ... [tables]
   \end{landscape}
} % end landscape tables

within this scope, if you have more than one page of tables, you can use \newpage. in fact, you can even use longtable (provided you \usepackage{longtable}).