From e1ddf1d855a55c9bfd06614e210205e128da08a5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 31 May 2018 16:20:19 +0200 Subject: [PATCH] Do not redefine LuaTeX's primitive \pagewidth and \pageheight --- ucwmac.tex | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ucwmac.tex b/ucwmac.tex index 57cce2b..3d6ba81 100644 --- a/ucwmac.tex +++ b/ucwmac.tex @@ -25,8 +25,11 @@ %%% Page size and margins %%% % If you modify these registers, call \setuppage afterwards -\newdimen\pagewidth -\newdimen\pageheight +\ifx\luatexversion\undefined + % In LuaTeX, \pagewidth and \pageheight are primitive + \newdimen\pagewidth + \newdimen\pageheight +\fi \newdimen\leftmargin \newdimen\rightmargin \newdimen\topmargin @@ -47,8 +50,10 @@ \ifpdf \pdfhorigin=1truein \pdfvorigin=1truein - \pdfpagewidth=\pagewidth - \pdfpageheight=\pageheight + \ifx\luatexversion\undefined + \pdfpagewidth=\pagewidth + \pdfpageheight=\pageheight + \fi \fi } -- 2.39.2