[texhax] Rotating tables in pdf

Tom Schneider toms at ncifcrf.gov
Tue Nov 6 07:25:28 CET 2007

> I have two tables that I'm displaying in landscape format. For this I 
> use \usepackage[dvips]{graphicx} and \usepackage[dvips]{rotating} in the 
> preamble and the sidewaystable environment for the tables themselves. 
> The output looks fine in ps format. In pdf format, however, the tables 
> are placed correctly on the pages, but the pages themselves are shown in 
> the landscape orientation (they stick out, so to speak).
> What could I do to fix this? As I'm using pstricks commands elsewhere, I 
> think I may need to keep the [dvips]-option in the packages above, but 
> perhaps you know better how to make everything work.

I don't know a complete solution, but it seems to be that Adobe is
trying to make their display 'smart'.  It detects the rotate
PostScript command and rotates the image.  The way I got around it in
my PostScript code was by changing

   90 rotate


   45 rotate 45 rotate

as their 'smart' program isn't SO smart as to add the two rotations
...  and this solved the problem for me!

A solution would be to ask Adobe to not be so darn 'smart'.


  Dr. Thomas D. Schneider
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research Nanobiology Program
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  toms at ncifcrf.gov
  permanent email: toms at alum.mit.edu

More information about the texhax mailing list