cen466p@vaxc.cc.monash.edu.au (02/04/91)
Hi netters. At last with some valuable suggestions and experimentations I got
the solution to rotating a table or figure along with its captions. I also
managed to center the table using \begin{center} and \begin{minipage} commands.
Use of \vspace will center the table vertically. I tried only with \rotl and I
am sure it should work for other cases also. Feel free to make it more elegant.
TaS for the following TeXperts, for giving valuable suggestions.
rpe@planet.bt.co.uk (Roy Everett), kuebeler@chopin.udel.edu (Mark Kuebeler)
aci10@eng.cambridge.ac.uk (A.C. Innes) ! suggestion on \vbox
ascott@gara.une.oz.au (Tony Scott) ! "
I am appending a sample format below. It hope it is valid for Figures too. TRY
UR LUCK. Please post further modifications.
Parthasarathy S. | cen466p@vaxc.cc.monash.edu.au
Department of Chem Engg | partha@vaxc.cc.monash.edu.au
Monash University |
Australia |
-----------------------Sample Table Format for Landscape ------------------
% This format should rotate the table or figure as well as its caption.
% rotate.tex is available with Tom Rokicki's DVIPS. Put the full table including
% caption inside \vbox. Though not an elegant solution, using minipage and
% \begin{center} centers the table horizontally and using \vspace it can be
% centered vertically (in landscape mode). The minipage width should be equal to
% the \textheight. LaTeX the document (IGNORE the warning message regarding
% Overfull \hbox) and create .ps using Rokicki's DVIPS.
\documentstyle[12pt]{article}
\begin{document}
\input rotate.tex
\begin{table}
\setbox0=\vbox{
\begin{minipage}{10in} % xx=10, Give the actual textheight in portrait mode
\begin{center}
\caption{Give any Caption}
\begin{tabular}{|c|c|}
Counter & Number \\ \hline
1 & 10 \\ \hline
2 & 15 \\ \hline
\end{tabular}
\end{center}
\end{minipage} }\rotl{0}
\end{table}
\end{document}