Tuesday, March 13, 2007

Rotate tables in Latex

If a table is too wide, it does not look elegant. The best is to rotate it.
Add \usepackage{rotating} in the preamble, and use

\begin{sidewaystable}

\end{
sidewaystable}

instead of

\begin{table}

\end{table}

Refer to the rotating package document to rotate figures and texts.

8 comments:

  1. thanks a lot

    ReplyDelete
  2. how do i install the rotating package? The README for it is pretty confusing. Thanks!

    ReplyDelete
  3. LaTeX/Packages/Installing Extra Packages

    http://en.wikibooks.org/wiki/LaTeX/Packages/Installing_Extra_Packages

    ReplyDelete
  4. thanks heaps! It's verystraightforward and works well...

    ReplyDelete
  5. thanks! love those blogs!

    ReplyDelete
  6. it works however, rotation is to reverse direction, how i can provide to rotate the table always counterclockwise?

    ReplyDelete
  7. I have a problem here. I am using the aforementioned LaTeX commands and the output in the ps file is okay. But the output gets distorted in the generated pdf. Specifically, the whole page comes out to be of landscape type.

    ReplyDelete