Document ClassesRotating and pdf

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
hyndman
Posts: 2
Joined: Sat Nov 17, 2007 2:07 pm

Rotating and pdf

Post by hyndman »

I'm trying to create a pdf file with a table rotated to fit on a single page. The rotating package does the job using \begin{sidewaystable}\end{sidewaystable} except that in the pdf, the whole page appears in landscape while all other pages are portrait. Is there any way of keeping all pages in portrait?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Rotating and pdf

Post by gmedina »

That's not the standard behavior. The following code doesn't produce any landscape pages

Code: Select all

\documentclass{article}
\usepackage[english]{babel}
\usepackage{rotating}
\usepackage{blindtext}

\begin{document}

\Blindtext

\begin{sidewaystable}
 \centering
 \begin{tabular}{ccc}
  a & b & c \\
 \end{tabular}
\end{sidewaystable}

\Blindtext

\end{document}
So, please post a minimal working example of your problem.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
hyndman
Posts: 2
Joined: Sat Nov 17, 2007 2:07 pm

Re: Rotating and pdf

Post by hyndman »

Your example exhibits the problematic behaviour if you use latex - dvips - ps2pdf.
It is fine if pdflatex is used, or if dvipdf is used, but I can't use either of those because I need some postscript-specific options.
Is there any to avoid the rotated page while using the dvips-ps2pdf route?
Post Reply