I am using the rotating package for creating a landscape table. The sample code I am using is as follows:
Code: Select all
\begin{sidewaystable}{htbp}
\centering
\begin{tabular}{|c|c|}
\hline
col 1 & col 2 \\
\hline
end{tabular}
\caption{Table XYZ}
\label{tablexyz}
\end{sidewaystable}
When I remove the command "\caption{Table XYZ}" from the above code, LaTex does generate the table. However, half the table is outside the page. Even by changing margins I could not bring the table on top of the page in the landscape mode.
However, I have been able to print landscape pictures and portrait pictures/tables in the same document. The problem seems to be with the landscape table.
For the reference, I am attaching a copy of the table. May I get some inputs in resolving this problem?
Thank you,
Omkar