# [Tex/LaTex] Inserting table and figure vertically in a full page

floatsrotatingtables

I have a table with large number of columns and few rows. I need to insert this table vertically in one single page. How to do. I need to do the same with a figure also, wherein I need to insert a figure in a single page

You can use the package rotating, which provides the environment sidewaystable. Your code should look as follows. Notice that the table takes one whole page (page 2). There is analogous environment sidewaysfigure.

\documentclass{article}

\usepackage{rotating} % <-- HERE

\begin{document}

blabla dummy text

\begin{sidewaystable} % <-- HERE
\centering
\begin{tabular}{cccccccc}\hline
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\\hline
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\\hline
\end{tabular}
\caption{Some caption to the table.}
\end{sidewaystable} % <-- HERE

\end{document}