I'd like to place a table on a new page with landscape orientation. To do so, I use
\usepackage{pdflscape}
...
\pagestyle{empty}
\begin{landscape}
\begin{table}[htbp]
\begin{center}
\begin{tabular}{llll}
...
\end{tabular}
\end{center}
\end{table}
\end{landscape}
\pagestyle{plain}
However, this clears the current page, places the table on the next page with landscape orientation, and restarts typesetting in a new page with portrait orientation.
Question I'd like to place the table on a new page (as it is currently done) but to avoid to clear the current page. Is that possible?
Thanks!
Best Answer
Similar like my answer to How to wrap text around landscape page I would use
\afterpage
from theafterpage
package to place the table at the next page of where it was declared. Here a non-floating replacement oftable
is used instead, e.g. the\captionof{table}{...}
is used (capt-of
orcaption
) package.One issue are potential other
table
s which should be flushed beforehand. Otherwise the non-floatingtable
replacement might appear earlier.