I have to create a rotated 90* table in a document. I've tried lscape but the problem is that it introduces a lot of whitespace before the table -- the rotated table is on a new page, but the next section in my document doesn't start right after the previous section, but only after this rotated page.
Here's an MWE:
Code: Select all
\documentclass{report}
%\usepackage{lscape}
\usepackage{pdflscape}
\usepackage{rotating}
\begin{document}
\chapter{Chapter 1}
% PAGE 1
\section{A}
Some text
% A LOT OF FREE SPACE HERE
% PAGE 2 -- landscaped
\begin{center}
\begin{landscape}
\begin{table}[t] % no matter what i put in [] -- h,t,b,p -- the next section always starts on a new page
\centering
\begin{tabular}{lll}
A & B & C \tabularnewline
A & B & C \tabularnewline
A & B & C \tabularnewline
A & B & C \tabularnewline
\end{tabular}
\end{table}
\end{landscape}
\end{center}
% PAGE 3
\section{B}
Some text
\end{document}
I use LEd (MikTeX). The strange thing is that using two different compile methods, compile output in LEd is different, but finally PDF always has 3 pages:
LaTeX -> DVI (F9, says '3 pages') -> PDF (really 3 pages), using lscape (pdflscape produces compile error).
LaTeX -> PDF (PDFLaTex, F7) says 'Compile result: 2 pages' but PDF has 3 pages (using either lscape or pdflscape).
Regards and thanks in advance for your responses.