GeneralRotate page when viewed on screen

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Rotate page when viewed on screen

Post by php1ic »

Hello,
I have rotated a figure containing two subfigures as required within a large document using the method below.

Code: Select all

\documentclass[a4paper]{article}

\usepackage{graphicx,rotating}
\usepackage{subfig}

\begin{document}

fs ajfkaljff dafasfj kdfjkaj fkdsa l fjkd slf fjkafew fc ewrfewfwcj rfew qfjwea nfwe af feawp fjaewf aenfnsfef fjksalfj

\begin{sidewaysfigure}[htb]
\centering
\subfloat[a]{\includegraphics[width=0.45\textwidth]{windmill.eps}}
\subfloat[b]{\includegraphics[width=0.45\textwidth]{windmill.eps}}
\caption{fdsafdsfasdaf dasf saf dsaf ds f afdsa f}
\end{sidewaysfigure}

fsjafklsafj fsdaf fdsa fsa f wef ewaf afc ewf weaf ewaf ewafeaw fewaf awef ewaf eaf 

\end{document}
As the figure takes up an entire page, I would like to make it so that when the whole document is view on screen (eg with acrobat reader or xpdf) the page is automatically rotated so the figures and caption are orientated correctly. Does anybody know how to do this?

To make the pdf I use Latex then do dvi->ps->pdf.

Thanks in advance.

Recommended reading 2024:

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

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Rotate page when viewed on screen

Post by php1ic »

I've figures it out, and I don't understand the reason at all.

I wrote a script to save time which converts tex to pdf. Here are the exact commands I use:

Code: Select all

latex file.tex
dvips -Ppdf -ta4 file.dvi
ps2pdf14 -dPDFSETTINGS=/printer -sPAPERSIZE=a4 file.ps
running this, the page with the sideways figure isn't rotated when viewed on screen. However if I run the commands individually, it is?!

As I say I have absolutely no idea why this would be so, but my problem is solved. If anybody has any explanation or thoughts about this behaviour please post.

Thanks

EDIT: It seems I was wrong in blaming the script, it is the option -dPDFSETTINGS=/printer that stops the rotation on screen.
Post Reply