Graphics, Figures & TablesRotating a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
darkflame
Posts: 1
Joined: Fri Sep 21, 2012 6:04 pm

Rotating a table

Post by darkflame »

Hi all,
I'm trying to rotate a table by 90 degrees in my document. However, the sidewaystable environment doesn't quite do what I'm looking for. I need the table to be displayed in its rotated 90 degrees position, on a portrait-oriented page when compiled using latex -> ps -> pdf. This is for a journal submission, and the journal insists that all documents, which it generated from your tex file, appear on a portrait-oriented page.

Any help would be much apprectiated. Can I put the table in a box environment and rotate the box by 90 degrees?

Here's the minimal code

Code: Select all

\documentclass{article}
\usepackage{supertabular,caption,rotating}

\begin{document}
...
\begin{table}[htp]
\begin{center}
\caption{a description}
\begin{tabular}{c c c c c}
first col & second & third & fourth & fifth \\
\end{tabular}
\end{center}
\end{table}
...
\end{document}
Last edited by Stefan Kottwitz on Fri Sep 21, 2012 6:27 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Rotating a table

Post by localghost »

darkflame wrote:[…] I need the table to be displayed in its rotated 90 degrees position, on a portrait-oriented page when compiled using latex -> ps -> pdf. […]
Is there a special reason why not to compile with PDFLaTeX directly?


Best regards and welcome to the board
Thorsten
Post Reply