3

I have two wide tables. What I want to do is rotate the two tables and put them on the same page, one above the other.

What I have now:

enter image description here

What I want:

enter image description here

Thanks.

2

1 Answer 1

2

Since you've set the rotating tag, I would assume that you're loading the package with that name and are employing one or more sidewaystable environments.

If this assumption is correct, just place both \caption statements and both tabular-like environments inside the same sidewaystable environment.

enter image description here

Here's the code that generated the preceding screenshot (note that I rotated the screenshot, to make it take up less space):

\documentclass{article} 
\usepackage{rotating}
\usepackage[skip=0.333\baselineskip]{caption} % optional
\begin{document} 

\begin{sidewaystable}
\centering

\caption{AAA}
\begin{tabular}{|*{16}{l|}}
\hline
aaaa & bbbb & cccc & dddd & eeee & ffff & gggg & hhhh & 
kkkk & mmmm & nnnn & oooo & pppp & qqqq & rrrr & zzzz \\
aaaa & bbbb & cccc & dddd & eeee & ffff & gggg & hhhh & 
kkkk & mmmm & nnnn & oooo & pppp & qqqq & rrrr & zzzz \\
\hline
\end{tabular}

\vspace{0.5in}  % induce some vertical separation 

\caption{ZZZ}
\begin{tabular}{|*{16}{l|}}
\hline
aaaa & bbbb & cccc & dddd & eeee & ffff & gggg & hhhh & 
kkkk & mmmm & nnnn & oooo & pppp & qqqq & rrrr & zzzz \\
aaaa & bbbb & cccc & dddd & eeee & ffff & gggg & hhhh & 
kkkk & mmmm & nnnn & oooo & pppp & qqqq & rrrr & zzzz \\
\hline
\end{tabular}

\end{sidewaystable}
\end{document} 
2
  • @SongXiaojia - You're very welcome!
    – Mico
    Sep 19, 2018 at 16:59
  • 2
    @Song Xiaojia, you should upvote and accept answer (by click on up-pen and check mark at top left side of the answer). it solve your problem on very elegant way (+1 from me).
    – Zarko
    Dec 18, 2018 at 10:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .