From 6ceb4d18bbf61e8c0416f823d345423af2084387 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 11 Dec 2018 15:18:14 +0100 Subject: [PATCH] Fixed building with LuaTeX \newdimen is \outer, so it cannot be used a skipped branch of \if. --- ucwmac2.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ucwmac2.tex b/ucwmac2.tex index 6fd3f59..cb713d9 100644 --- a/ucwmac2.tex +++ b/ucwmac2.tex @@ -24,7 +24,7 @@ \pdfpkresolution=600 % Provide a reasonable default \fi\fi -\ifx\directlua\undefined\else +\ifx\luatexversion\undefined\else % In LuaTeX \pdfpkresolution is not enough \directlua{kpse.init_prog("luatex", 600, "ljfour")} \fi @@ -66,8 +66,9 @@ % If you modify these registers, call \setuppage afterwards \ifx\luatexversion\undefined % In LuaTeX, \pagewidth and \pageheight are primitive - \newdimen\pagewidth - \newdimen\pageheight + % (also, we need \csname here, because \newdimen is \outer) + \csname newdimen\endcsname\pagewidth + \csname newdimen\endcsname\pageheight \fi \newdimen\leftmargin \newdimen\rightmargin -- 2.39.2