]> mj.ucw.cz Git - ucwmac.git/commitdiff
Do not redefine LuaTeX's primitive \pagewidth and \pageheight
authorMartin Mares <mj@ucw.cz>
Thu, 31 May 2018 14:20:19 +0000 (16:20 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 31 May 2018 14:20:19 +0000 (16:20 +0200)
ucwmac.tex

index 57cce2b57c9eb09a16293f06b29f11fb3223cb95..3d6ba8198a82dd134ab5ad2ecd26f8caf006e025 100644 (file)
 %%% 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
        \ifpdf
                \pdfhorigin=1truein
                \pdfvorigin=1truein
-               \pdfpagewidth=\pagewidth
-               \pdfpageheight=\pageheight
+               \ifx\luatexversion\undefined
+                       \pdfpagewidth=\pagewidth
+                       \pdfpageheight=\pageheight
+               \fi
        \fi
 }