X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucwmac2.tex;h=cb713d962067386d8c7bbe5594187e56eb8426d9;hb=cb229f3c185750bb8f5f7831331696e457b7ee12;hp=6fd3f596c2875552a80eb9e14191ce412a4540c0;hpb=7a9147eb495e5b30b02fa19e5a90fccc8c775a29;p=ucwmac.git 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