Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
1  
Welcome to TeX.sx! This question is very similar to tex.stackexchange.com/questions/7286/…. Please take a look at it as the information there might help you. If so, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find answers quickly. If not, please edit your question here to explain why so that people can better focus their attention to help you. –  doncherry Feb 27 '12 at 16:22
1  
Hello, I need to orient the entire object(table and figure) vertically not just vertically centered ! Thanks for the link anyway ! –  pravinkenator Feb 27 '12 at 16:26

1 Answer 1

up vote 6 down vote accepted

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}
share|improve this answer
    
Thanks for the tip. I tried using sideways figure I get the following error ! LaTeX Error: Not in outer par mode. Can you help me on this ? –  pravinkenator Feb 27 '12 at 16:45
    
That means you have used a figure or table environment inside a minipage or parbox. Presumably you don't get that error if you run the code in the answer posted? –  David Carlisle Feb 27 '12 at 16:48
    
I have not used the figure inside a minibox or parbox ! I did not get the error if I run the code posted. –  pravinkenator Feb 27 '12 at 16:52
    
LaTeX thinks you did:-), can you post a small example that shows the error (just edit it in to your question) –  David Carlisle Feb 27 '12 at 16:57
    
I got the mistake. I used the figure package within the sideways figure which was creating the problem. Thanks for you help ! –  pravinkenator Feb 27 '12 at 16:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.