7

I have a quite wide table in my document, that I would like to display "rotated". Everything seems fine, but apparently there is some problem towards the end: when I try to print out (print to file) I get the rotated page upside down.

Is there a way to solve the issue?

(Latex->dvi2ps->ps2pdf->View PDF (I use Texmaker))

\documentclass[twoside,openright]{report}
\usepackage[]{rotating}
\usepackage[]{fancyhdr}

\fancyhead[RE,LO]{\fancyplain{}{\textbf{\textit{\leftmark}}}}
\fancyhead[LE,RO]{\fancyplain{}{\textbf{\thepage}}}
\fancyfoot[]{}

\pagestyle{fancyplain}

\begin{document}
Normal page.
\clearpage
\begin{sidewaystable}
\begin{tabular}{|c|c|c|c|}
\hline \textbf{Bla Bla Bla} & 01/01/2009 & 01/01/2010 & \\ 
\hline \textbf{Abcd efc} & Something something & Little bit longer description for something.\\ 
\hline 
\end{tabular} 
\caption{Something.}
\end{sidewaystable}
\clearpage
Another normal page.

\end{document}
Danilo
  • 359
  • It is standard for the sidewaystable to rotate the table by 90 degrees. However, it could be a setting on your printer when duplexing? If you create a 3-page document without the sidewaystable, does the second page still get printed upside down? I say printer, but I think it would be the same if you were to "save to file." – Werner Oct 15 '11 at 15:50
  • Thanks for your answer. If I try a "print to file" operation on any other three pages of my document, I get them with the correct orientation. In some way the page is like a landscape in PDF and this creates some problems. Is there a way to rotate only the table, while keeping the page with its normal, portrait orientation? Since I will not be there when they print it, I don't want my "book" to have an upside down page :) – Danilo Oct 15 '11 at 16:01
  • You should compile your document directly to PDF using pdflatex, as opposed to latex -> dvips -> ps2pdf. Does this solve your problem? – Werner Oct 15 '11 at 17:17
  • something.\\ misses a & : something. & \\
  • Directly pdflatex-ing your code (TeXLive 2011) does not rotate the page. Could you try that?
  • – Stephen Oct 15 '11 at 17:26
  • I guess it would work, since already two of you suggested it! Anyway I modified the ps2pdf call as suggested by Werner since I have many eps files. Thanks! – Danilo Oct 16 '11 at 08:37