[Tex/LaTex] Two sideways tables on one page

rotatingtables

I want to put two sideways tables next to eachother. For landscape this is possible by putting the two tabulars in one landscape (How to put two tables in one landscape page). Is something like this also possible for sidewaystables?

Both tables are a page length wide, but not so long, so I want to put them horizontally next to each other.

Best Answer

The sidewaystable environment doesn't limit you to one table per page. As long as the tabular (or tabular*, etc.) environments fit in a single (rotated) page, you can have more than one of these environments on a page typeset in a sidewaystable construct.

For instance, the following code places two simple tabular* environments one below the other (or, if you will, side by side...) on one page. Note that they can be given captions and be cross-referenced like any other tabular construct.

\documentclass{article}
\usepackage{rotating,booktabs}
\begin{document}
Cross-references to tables \ref{tab:1} and \ref{tab:2}.
\begin{sidewaystable}
\caption{First table} \label{tab:1}

\smallskip
\begin{tabular*}{\textwidth}{c @{\extracolsep{\fill}} *{9}{c}}
\toprule
a & b & c & d & e & f & g & h & i & j \\
\bottomrule
\end{tabular*}

\bigskip\bigskip  % provide some separation between the two tables
\caption{Second table} \label{tab:2}

\smallskip
\begin{tabular*}{\textwidth}{c @{\extracolsep{\fill}} *{9}{c}}
\toprule
a & b & c & d & e & f & g & h & i & j \\
\bottomrule
\end{tabular*}
\end{sidewaystable}
\end{document}