[luatex] Confirm change in TL 2016-pretest vs. TL 2015 behavior: dvilualatex fails because of pdfpageheight

David Carlisle d.p.carlisle at gmail.com
Tue May 17 01:44:35 CEST 2016


no the pure luatex syntax (from 0.85 on is)

\pageheight\paperheight
\pagewidth\paperwidth

as (in these cases) the primitives have simply been renamed dropping
the pdf prefix

but in general adding

\RequirePackage{luatex85}

at the top of the file will fix most of the incompatibilities, in
particular luatex85.sty has

\let\pdfpagewidth        \pagewidth
\let\pdfpageheight       \pageheight

which means that if you load that package \pdfpagewidth   and
\pagewidth may be used interchangeably for the same primitive length
register.

David


On 17 May 2016 at 00:29, Scott Kostyshak <skostysh at lyx.org> wrote:
> Thanks for the quick reply, David.
>
> So to make sure I understand, it is not expected that the example I sent
> will compile successfully in the future (because it does not fall into
> the situation you mentioned of "packages are updated to use the new
> forms"). Did I get that right?
>
> I looked at the manual and I see in 10.1 Primitives overlap that
> \pdfpagewidth is an alias of \pagewidth. So I suppose the solution in
> the example I gave is to just remove the following two lines:
>
> \pdfpageheight\paperheight
> \pdfpagewidth\paperwidth
>
> If I remove those two lines will the behavior (imagine more complex
> documents) be the same for newer luatex compared to using an older
> luatex with those two lines included? Will it be the same as without
> those two lines for older luatex (i.e. were those two lines always
> useless)?
>
> As you could probably guess, I don't know much about luatex. But LyX
> exports LuaTeX so I'm trying to figure out exactly what we need to
> change.
>
> Thanks for your help on this,
>
> Scott
>
> On Mon, May 16, 2016 at 11:33:20PM +0100, David Carlisle wrote:
>> you will see the same in lualatex whether writing to pdf or dvi.
>>
>> The new luatex does not define most of the \pdfxxxx commands coming
>> from pdftex, see the luatex manual.
>>
>> The luatex85 package is available to alias most of the old names back
>> as a quick fix until documents and packages are updated to use the new
>> forms.
>>
>> David
>>
>>
>> On 16 May 2016 at 23:27, Scott Kostyshak <skostysh at lyx.org> wrote:
>> > Hi,
>> >
>> > I expect this change was on purpose and it makes sense (because we are
>> > exporting to DVI so perhaps \pdf* commands are meaningless?), but I just
>> > wanted to confirm.
>> >
>> > Using the dvilualatex command, the following example compiled
>> > successfully with up-to-date TL 2015, but fails with TL 2016 pretest.
>> >
>> > ---------------------
>> > \documentclass[a4paper,english]{article}
>> > \usepackage[T1]{fontenc}
>> > \usepackage[latin9]{luainputenc}
>> >
>> > \makeatletter
>> >
>> > \pdfpageheight\paperheight
>> > \pdfpagewidth\paperwidth
>> >
>> >
>> > \makeatother
>> >
>> > \usepackage{babel}
>> > \begin{document}
>> > abc
>> > \end{document}
>> > ---------------------
>> >
>> > Attached is the .log file.
>> >
>> > Can someone confirm that this change was indeed intended and that it
>> > is not expected to change back?
>> >
>> > Scott
>>
>>
>>
>> --
>> http://dpcarlisle.blogspot.com/



-- 
http://dpcarlisle.blogspot.com/


More information about the luatex mailing list