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.

6 comments:

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

    ReplyDelete
  2. LaTeX/Packages/Installing Extra Packages

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

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

    ReplyDelete
  4. thanks! love those blogs!

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

    ReplyDelete
  6. 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