X-Git-Url: https://git.distorted.org.uk/~mdw/doc/ips/blobdiff_plain/754df4fbcb15f30cfa7bb5a0a1e72384568ef743..014f5211bd99f07f2bc962adb9edfded92d31b2b:/ips.cls

diff --git a/ips.cls b/ips.cls
index d25e634..b336a26 100644
--- a/ips.cls
+++ b/ips.cls
@@ -29,15 +29,17 @@
 \RequirePackage[within=section]{exercise}
 \RequirePackage{url}
 
-\ifx\pdfoutput\@@undefined
+\if0\ifx\pdfoutput\@@undefined0\else\the\pdfoutput\fi
   \PassOptionsToPackage{dvips}{xy}
 \else
   \ifarticle
     \pdfpagewidth\paperwidth
     \pdfpageheight\paperheight
   \else
-    \pdfpagewidth\paperheight
-    \pdfpageheight\paperwidth
+    \setslidelength{\pdfpagewidth}{\paperheight}
+    \setslidelength{\pdfpageheight}{\paperwidth}
+    \pdfhorigin=1 true in
+    \pdfvorigin=1 true in
   \fi
 \fi
 \RequirePackage[all]{xy}
