I am using the rotating package for creating a landscape table. The sample code I am using is as follows:
Code: Select all
Code, edit and compile here:
\begin{sidewaystable}{htbp}\centering\begin{tabular}{|c|c|}\hlinecol 1 & col 2 \\\hlineend{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