How to rotate tables in latex? 

Newsgroups: comp.text.tex
Date: 1991-10-14 16:26:26 PST

Recently, somebody posted a rotate style file. I've tried to use it on a table, with the following lines in the latex file:

% sideways is one of the environments defined in the style file.
\begin{sideways}
\begin{table}[hp]
\caption{Symmetry Operations of the Point Group $T_d$
of the Zincblende Lattice.}
\label{t:zb-pg}
\vspace{0.2in}
\centering
\begin{tabular}{|c|c|c|} \hline\hline
...... % here's the actual table

I got the following:

LaTeX error.  See LaTeX manual for explanation.
              Type  H <return>  for immediate help.
! Not in outer par mode.
\@latexerr ...for immediate help.}\errmessage {#1}
\@xfloat ...ef \@captype {#1}\ifinner \@parmoderr
                                                  \@floatpenalty \z@ \else \...
l.80 \begin{table}[hp]

Can anybody explain to me what's going on, and if one is not allowed to use a table environment inside the sideways one, how could i get to rotate a table?

the style file i used started with the following lines:

%% LaTeX Macros for PostScript rotation of text
%% Sebastian Rahtz, Dept. of Computer Science, Southampton University
%% Paul Barton-Davis, Dept. of Computer Science, University of Washington
%% 10-sep-91 pad -      added code supplied by Peter Bloomfield from
%%                      Tom Rockiki's dvips to eliminate dependence
%%                      on the prologue.
%%
%% 13-Mar-89 pad -  ...

How to rotate tables in latex? 

> how could i get to rotate a table?

You want to rotate the contents of the `table' environment (i.e., the caption, tabular, etc.). To do this you should better write

\begin{table}[hp]
\begin{sideways}
% etc.
\end{sideways}
\end{table}

bernd