ips.cls: Fix the page size of the PDF output.
[doc/ips] / ips.cls
diff --git a/ips.cls b/ips.cls
index 67fa4a0..b336a26 100644 (file)
--- a/ips.cls
+++ b/ips.cls
 
 \RequirePackage[palatino, helvetica, courier, maths=cmr]{mdwfonts}
 \RequirePackage[T1]{fontenc}
+\RequirePackage{amssymb}
 \RequirePackage{mdwtab, mathenv, crypto, mdwthm, mdwmath}
 \RequirePackage[within=section]{exercise}
-\RequirePackage{amssymb}
 \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}