From: Martin Mares Date: Tue, 11 Dec 2018 14:18:14 +0000 (+0100) Subject: Fixed building with LuaTeX X-Git-Tag: v1.99.1~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6ceb4d18bbf61e8c0416f823d345423af2084387;p=ucwmac.git Fixed building with LuaTeX \newdimen is \outer, so it cannot be used a skipped branch of \if. --- 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