X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/fcc208c558816bbbf9df27f21b007c3f50dcdef5..80ed3c35148702b339ffd77d5a058ea4c693dcef:/texinice.tex

diff --git a/texinice.tex b/texinice.tex
index 27b84cf2..b4d84de8 100644
--- a/texinice.tex
+++ b/texinice.tex
@@ -43,8 +43,12 @@
   \global\outervsize=\vsize
   \global\advance\outervsize by 0.6in
 
-  \global\pagewidth=\hsize
-  \global\pageheight=\vsize
+  \ifx\txipagewidth\xxundefined
+    \global\let\txipagewidth=\pagewidth
+    \global\let\txipageheight=\pageheight
+  \fi
+  \global\txipagewidth=\hsize
+  \global\txipageheight=\vsize
 }
 
 \global\contentsrightmargin = 0pt
