From: Martin Mares Date: Thu, 31 May 2018 14:20:19 +0000 (+0200) Subject: Do not redefine LuaTeX's primitive \pagewidth and \pageheight X-Git-Tag: v1.99~1^2~44 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e1ddf1d855a55c9bfd06614e210205e128da08a5;p=ucwmac.git Do not redefine LuaTeX's primitive \pagewidth and \pageheight --- 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 }